Skills image-gen

Generate images via Fuel proxy. No API key needed on Pro plans.

install
source · Clone the upstream repo
git clone https://github.com/openclaw-rocks/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw-rocks/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/image-gen" ~/.claude/skills/openclaw-rocks-skills-image-gen && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw-rocks/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/image-gen" ~/.openclaw/skills/openclaw-rocks-skills-image-gen && rm -rf "$T"
manifest: image-gen/SKILL.md
source content

Image Generation

Generate images using the Fuel proxy.

Usage

Run

scripts/generate.py
with a text prompt describing the image you want to create.

python3 scripts/generate.py "a sunset over the ocean with vibrant colors"

The script outputs a

MEDIA:<path>
line pointing to the generated image file.

Requirements

  • python3
    (bundled in the OpenClaw container)
  • FUEL_API_KEY
    environment variable (set automatically on Pro instances)

How it works

  1. Sends a chat completion request to the Fuel proxy with
    model: "image-gen"
    and
    modalities: ["image", "text"]
  2. Fuel proxy routes to the configured image generation model
  3. Parses the base64-encoded image from the response
  4. Saves the image to a temporary file and prints the
    MEDIA:
    path