Generate product background fusion images via LiblibAI ComfyUI app API using signed AccessKey/SecretKey requests. Use when user asks for Liblib Comfy app generation, Feishu image + fusion, local or URL image input, task polling with generateUuid, or Feishu message URL extraction.
Generate images with LiblibAI ComfyUI App API (template-based workflow). Supports public image URL or local file.
For local files from Feishu, the recommended flow is:
LoadImage inputimageUrl as MEDIA:https://... so Feishu displays it directlyEnvironment variables must be set:
LIB_ACCESS_KEY — API access keyLIB_SECRET_KEY — API secret keyRun the CLI at scripts/liblib_client.py:
# Public URL input
python3 scripts/liblib_client.py run --image-url "https://example.com/input.jpg"
# Local file (Feishu inbound attachment) → upload to R2 → use public URL
python3 scripts/liblib_client.py run --local-image "/path/to/input.png" --basename "product-fusion"
# Local file (advanced): embed as data URI (only if Liblib accepts it)
python3 scripts/liblib_client.py run --local-image "/path/to/input.png" --local-image-mode data-uri
# Parse URL from Feishu message text
python3 scripts/liblib_client.py run --feishu-text "请处理这个图 https://example.com/input.jpg"
# Submit only (no poll)
python3 scripts/liblib_client.py run --local-image "./input.jpg" --no-poll
# Query task status
python3 scripts/liblib_client.py status <generateUuid>
generateStatus=5), the script downloads images[].imageUrl into workspace/outputs/images/YYYY-MM-DD/<basename>.(png|jpg|...) (override with --output-dir).MEDIA:./outputs/images/YYYY-MM-DD/<file> (relative to workspace/). Use this with OpenClaw Feishu channel so the image appears in the current chat without extra API calls.MEDIA: is not supported in your channel, use feishu-uploader with --receive-id-type chat_id and the group chat_id, or --open-id for DM.| Flag | Meaning |
|---|---|
--local-image | Local path; takes priority over URL. Default mode uploads to R2 and uses public URL. |
--local-image-mode | r2 (default) or data-uri. |
--image-url | Public URL the Liblib servers can fetch. |
--feishu-text / FEISHU_TEXT | Extract first http(s) URL from text. |
--output-dir | Default: <workspace>/outputs/images. |
--basename | Filename stem (default liblib-fusion). |
--no-download | Skip downloading result files. |
--no-print-media | Do not print MEDIA: line; stdout prints absolute path of first saved file instead. |
POST /api/generate/comfyui/appPOST /api/generate/comfy/statusAccessKey, Signature, Timestamp, SignatureNonceuriPath & Timestamp & SignatureNonceHMAC-SHA1(secretKey, content)=generateUuidgenerateStatus is 5 (success) or 6 (failed)images[].imageUrl when successfulboto3.