Stable diffusion generate

From bidewio/better-openclaw · View interactive version

Stable diffusion generate is an AI agent skill from the GitHub repository bidewio/better-openclaw. Generate images from text prompts using Stable Diffusion at {{SD_HOST}}:{{SD_PORT}}.

How to use this skill

Skill file

Stable Diffusion Image Generation

Stable Diffusion is available at http://{{SD_HOST}}:{{SD_PORT}} within the Docker network.

Generate an Image

curl -X POST "http://{{SD_HOST}}:{{SD_PORT}}/sdapi/v1/txt2img" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a futuristic city at sunset, detailed, 8k",
    "negative_prompt": "blurry, low quality",
    "steps": 30,
    "width": 1024,
    "height": 1024,
    "cfg_scale": 7
  }'

Image-to-Image

curl -X POST "http://{{SD_HOST}}:{{SD_PORT}}/sdapi/v1/img2img" \
  -H "Content-Type: application/json" \
  -d '{"init_images": ["base64_encoded_image"], "prompt": "oil painting style", "denoising_strength": 0.7}'

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.