Install
openclaw skills install jpeng-image-generatorAI image generation skill using DALL-E, Stable Diffusion, or Midjourney API. Generate, edit, and vary images from text prompts.
openclaw skills install jpeng-image-generatorGenerate AI images using DALL-E, Stable Diffusion, or other providers.
# OpenAI DALL-E
export OPENAI_API_KEY="sk-xxx"
# Stability AI
export STABILITY_API_KEY="sk-xxx"
# Replicate (for SDXL, etc.)
export REPLICATE_API_TOKEN="r8_xxx"
python3 scripts/generate_image.py \
--prompt "A serene mountain landscape at sunset" \
--size "1024x1024" \
--output "./output.png"
python3 scripts/generate_image.py \
--vary "./input.png" \
--count 4 \
--output-dir "./variations"
python3 scripts/generate_image.py \
--edit "./input.png" \
--mask "./mask.png" \
--prompt "Add a rainbow in the sky"
python3 scripts/generate_image.py \
--prompt "A futuristic city" \
--style "cyberpunk" \
--negative "blurry, low quality"
{
"success": true,
"image_path": "./output.png",
"revised_prompt": "A serene mountain landscape..."
}