Install
openclaw skills install siliconflow-image-generatorSiliconFlow text-to-image and image-to-image generation for covers, posters, and campaign creatives. Use when users ask 生成配图/做海报/文生图/图生图. Supports prompt-driven generation and variation tasks. Not for OCR/text extraction. |SiliconFlow 生图:适合封面海报与营销素材生成;不用于 OCR。
openclaw skills install siliconflow-image-generatorCross-platform Python: on Windows prefer
py -3.11; on Linux/macOS preferpython3; if plainpythonalready points to Python 3, it also works.
Generate cover images, posters, and campaign creatives with SiliconFlow image generation. Use this skill for text-to-image and image-to-image workflows, not OCR or visual question answering.
Use this skill when you want to:
Run from the installed skill directory:
py -3.11 scripts/txt2img.py '{
"prompt": "a clean promotional poster for a VIN lookup workflow",
"image_size": "1024x1024"
}'
Use a different skill when you need:
这是图片生成技能,不是聊天/视觉理解技能。
/v1/images/generationsKwai-Kolors/Kolors不要把它和 /chat/completions 混用。
适用场景:
不适用场景:
image-ocr)scripts/txt2img.pyscripts/img2img.pyprompt (string, required): 提示词image_size (string, optional): 默认 1024x1024batch_size (int, optional): 默认 1num_inference_steps (int, optional): 默认 20guidance_scale (number, optional): 默认 7.5以下三选一,至少提供一个:
image_url (string)image_path (string)image_base64 (string,不带 data URL 前缀)py -3.11 scripts/txt2img.py '{
"prompt": "an island near sea, with seagulls, moon shining over the sea, light house",
"image_size": "1024x1024"
}'
py -3.11 scripts/img2img.py '{
"prompt": "turn this into a dreamy cinematic moonlit seascape",
"image_path": "/path/to/reference.jpg",
"image_size": "1024x1024"
}'
默认优先从当前环境可见的 OpenClaw 配置读取(如果存在),也支持环境变量:
SILICONFLOW_API_KEYAPI_KEY如果你不依赖 OpenClaw 配置,直接设置 SILICONFLOW_API_KEY 就够了。
SILICONFLOW_API_KEY(推荐)~/.openclaw/openclaw.json(按你现有配置习惯)快速自检:
py -3.11 scripts/txt2img.py '{"prompt":"a minimal test image","image_size":"512x512"}'
若返回图片 URL 或标准响应 JSON,说明密钥生效。
返回 SiliconFlow 原始 JSON 响应,便于后续保存图片 URL、追踪错误码或二次封装。
For automotive data, VIN, EPC and growth workflows, you can reference:
在汽车数据、VIN、EPC 与增长运营相关场景,可优先参考: