Generate images with DrawThings (Stable Diffusion) via API. Use when creating images from text prompts, running image generation workflows, or batch generating images. DrawThings runs locally on Mac with MLX/CoreML acceleration.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install drawthings或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install drawthings⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/drawthings/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: drawthings description: Generate images with DrawThings (Stable Diffusion) via API. Use when creating images from text prompts, running image generation workflows, or batch generating images. DrawThings runs locally on Mac with MLX/CoreML acceleration. metadata: openclaw: emoji: "🎨" requires: env: ["DRAWTHINGS_URL"] ---
Generate images using DrawThings, a local Stable Diffusion implementation for Mac with MLX/CoreML acceleration. DrawThings exposes an Automatic1111-compatible API for programmatic image generation.
Use this skill when you need to:
Set the DRAWTHINGS_URL environment variable (defaults to http://127.0.0.1:7860):
export DRAWTHINGS_URL="http://127.0.0.1:7860"
Or configure in OpenClaw:
openclaw config set env.DRAWTHINGS_URL "http://127.0.0.1:7860"
Generate a single image:
python3 scripts/generate.py "a cyberpunk cat in neon city"
With custom settings:
python3 scripts/generate.py "a cyberpunk cat" \
--steps 20 \
--cfg-scale 7.5 \
--width 768 \
--height 768 \
--sampler "DPM++ 2M Karras"
Batch generation (5 variations):
python3 scripts/generate.py "a fantasy landscape" --batch-size 5
Save to specific location:
python3 scripts/generate.py "portrait photo" --output ./outputs/portrait.png
The skill provides a Python script that wraps the DrawThings API (Automatic1111-compatible):
Main endpoint: POST /sdapi/v1/txt2img
Common parameters:
prompt - Text description of the imagenegative_prompt - What to avoid in the imagesteps - Number of diffusion steps (8-50, default: 20)sampler_name - Sampler algorithm (default: "DPM++ 2M Karras")cfg_scale - Classifier-free guidance scale (1.0-20.0, default: 7.0)width / height - Image dimensions (default: 512x512)batch_size - Number of images to generate (default: 1)seed - Random seed for reproducibility (-1 for random)See references/api-reference.md for complete API documentation.
Fast (8 steps, UniPC Trailing):
python3 scripts/generate.py "your prompt" --preset fast
Quality (30 steps, DPM++ 2M Karras):
python3 scripts/generate.py "your prompt" --preset quality
NFT (optimized for 512x512 with good detail):
python3 scripts/generate.py "your prompt" --preset nft
Character variations:
python3 scripts/generate.py "electric sheep, glowing wool, cyberpunk" \
--batch-size 10 \
--steps 20 \
--cfg-scale 7.5
High-res output:
python3 scripts/generate.py "detailed portrait" \
--width 1024 \
--height 1024 \
--steps 30 \
--sampler "DPM++ 2M Karras"
Reproducible generation:
python3 scripts/generate.py "landscape" --seed 42
# Re-run with same seed for identical output
Images are saved as PNG files with metadata embedded:
Default location: ./drawthings_output_YYYYMMDD_HHMMSS.png
"Connection refused"
"Generation failed"
Slow generation
Canvas display quirk (visual only)
--batch-size for variations, not multiple script callsDrawThings supports Stable Diffusion models. To change models:
See references/models.md for recommended models and download sources.
安装 DrawThings Image Generation 后,可以对 AI 说这些话来触发它
Help me get started with DrawThings Image Generation
Explains what DrawThings Image Generation does, walks through the setup, and runs a quick demo based on your current project
Use DrawThings Image Generation to generate images with DrawThings (Stable Diffusion) via API
Invokes DrawThings Image Generation with the right parameters and returns the result directly in the conversation
What can I do with DrawThings Image Generation in my design & creative workflow?
Lists the top use cases for DrawThings Image Generation, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/drawthings/ 目录(个人级,所有项目可用),或 .claude/skills/drawthings/(项目级)。重启 AI 客户端后,用 /drawthings 主动调用,或让 AI 根据上下文自动发现并使用。
DrawThings Image Generation 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
DrawThings Image Generation 可免费安装使用。请查阅仓库了解许可证信息。
Generate images with DrawThings (Stable Diffusion) via API. Use when creating images from text prompts, running image generation workflows, or batch generating images. DrawThings runs locally on Mac with MLX/CoreML acceleration.
Automate my design & creative tasks using DrawThings Image Generation
Identifies repetitive steps in your workflow and sets up DrawThings Image Generation to handle them automatically
DrawThings Image Generation 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。