Image gen

From ericwang915/PythonClaw · View interactive version

Image gen is an AI agent skill from the GitHub repository ericwang915/PythonClaw. Generate images via OpenAI Images API (DALL-E 3, GPT-image). Use when: user asks to generate, create, draw, or design an image, illustration, logo, or artwork. NOT for: editing existing images, image format conversion, or screenshots.

How to use this skill

Skill file

Image Generation

Generate images via the OpenAI Images API.

When to Use

✅ USE this skill when:

When NOT to Use

❌ DON'T use this skill when:

Setup

Requires an OpenAI API key with Images API access.

Configure in pythonclaw.json:

"skills": {
  "image_gen": {
    "apiKey": "sk-your-openai-key"
  }
}

Or set OPENAI_API_KEY environment variable.

Commands

Generate an image

python {skill_path}/generate.py "a serene mountain lake at sunset, watercolor style"

Options

# Specific model
python {skill_path}/generate.py "prompt" --model dall-e-3

# Size options
python {skill_path}/generate.py "prompt" --size 1792x1024

# Quality
python {skill_path}/generate.py "prompt" --quality hd

# Style (dall-e-3 only)
python {skill_path}/generate.py "prompt" --style vivid

# Output directory
python {skill_path}/generate.py "prompt" --output ./images/

Model-Specific Parameters

DALL-E 3:

DALL-E 2:

Notes

Resources

| File | Description |

|------|-------------|

| generate.py | OpenAI Images API wrapper |

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.