/install gen-image
AI 图片生成
使用 SiliconFlow API 调用 Kolors、FLUX、Qwen-Image 等模型生成图片。
Generate Image
curl -X POST "https://api.siliconflow.cn/v1/images/generations" \
-H "Authorization: Bearer $SILICONFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Kolors/Kolors",
"prompt": "your image description",
"image_size": "1024x1024",
"num_inference_steps": 20
}'
Available Models
Kwai-Kolors/Kolors- High quality image generation (正确ID)black-forest-labs/FLUX.1-schnell- Fast generationblack-forest-labs/FLUX.1-dev- FLUX dev versionQwen/Qwen-Image- Qwen image generation
注意:模型ID可能更新,可通过
curl -s "https://api.siliconflow.cn/v1/models" -H "Authorization: Bearer $SILICONFLOW_API_KEY" | jq '.data[].id'查询最新列表
Parameters
prompt: Image description (required)image_size:1024x1024,1024x1792,1792x1024(default: 1024x1024)num_inference_steps: 1-50 (default: 20)negative_prompt: Things to avoid (optional)seed: Random seed (optional)
API Key
Get your API key from: https://cloud.siliconflow.cn
Set environment variable:
export SILICONFLOW_API_KEY="your-api-key"
Or configure in OpenClaw:
{
skills: {
entries: {
"siliconflow-image": {
enabled: true,
env: {
SILICONFLOW_API_KEY: "your-api-key"
}
}
}
}
}
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gen-image - After installation, invoke the skill by name or use
/gen-image - Provide required inputs per the skill's parameter spec and get structured output
What is AI图片生成?
AI生成图片,支持Kolors/FLUX/Qwen-Image等模型(需SiliconFlow API). It is an AI Agent Skill for Claude Code / OpenClaw, with 473 downloads so far.
How do I install AI图片生成?
Run "/install gen-image" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AI图片生成 free?
Yes, AI图片生成 is completely free (open-source). You can download, install and use it at no cost.
Which platforms does AI图片生成 support?
AI图片生成 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AI图片生成?
It is built and maintained by asdas (@duyiliu); the current version is v1.0.0.