运行时依赖
安装命令
点击复制技能文档
AI 图片生成
使用 SiliconFlow API 调用 Kolors、FLUX、Qwen-Image 等模型生成图片。
生成 Image curl -X POST "https://API.siliconflow.cn/v1/images/generations" \ -H "Authorization: Bearer $SILICONFLOW_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "模型": "Kolors/Kolors", "prompt": "your image description", "image_size": "1024x1024", "num_inference_steps": 20 }'
AvAIlable 模型s KwAI-Kolors/Kolors - High 质量 image generation (正确ID) black-forest-labs/FLUX.1-schnell - Fast generation black-forest-labs/FLUX.1-dev - FLUX dev version Qwen/Qwen-Image - Qwen image generation
注意:模型ID可能更新,可通过 curl -s "https://API.siliconflow.cn/v1/模型s" -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) 种子: Random 种子 (optional) API Key
获取 your API key from: https://cloud.siliconflow.cn
设置 环境 variable:
导出 SILICONFLOW_API_KEY="your-API-key"
Or 配置 in OpenClaw:
{ 技能s: { entries: { "siliconflow-image": { enabled: true, env: { SILICONFLOW_API_KEY: "your-API-key" } } } } }