From openai-image-gen
This skill should be used when the user asks to "generate an image with OpenAI", "create an image using gpt-image", "make me a picture with OpenAI", "OpenAI image generation", "draw an image using gpt-image-1.5", "create artwork with OpenAI", "text to image with OpenAI", or requests generating or creating images via OpenAI's gpt-image-1.5 model. Covers text-to-image generation using the Images API (client.images.generate).
How this skill is triggered — by the user, by Claude, or both
Slash command
/openai-image-gen:openai-image-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate images from text prompts using OpenAI's `gpt-image-1.5` model via the Images API.
Generate images from text prompts using OpenAI's gpt-image-1.5 model via the Images API.
Before generating images, ensure:
export OPENAI_API_KEY="sk-..."pip install openaiIf the openai package is missing, install it before proceeding.
Run the generation script located at ${CLAUDE_PLUGIN_ROOT}/skills/openai-image-gen/scripts/generate_image.py:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/openai-image-gen/scripts/generate_image.py" \
"A sunset over a mountain range with purple clouds" \
-o output.png \
-s 1024x1024 \
-q auto
Arguments:
| Argument | Required | Default | Description |
|---|---|---|---|
prompt | Yes | - | Text description of the image |
-o, --output | No | generated_image.png | Output file path |
-s, --size | No | 1024x1024 | Image dimensions |
-q, --quality | No | auto | Image quality level |
1024x1024 - Square (default)1024x1536 - Portrait1536x1024 - Landscapeauto - Let the model decide (default)low - Faster, lower qualitymedium - Balancedhigh - Best quality, slowerFor direct API usage without the bundled script, see
${CLAUDE_PLUGIN_ROOT}/skills/openai-image-gen/references/api-usage.md.
When a user requests an image:
OPENAI_API_KEY environment variable is setopenai Python package is installed| Issue | Solution |
|---|---|
OPENAI_API_KEY not set | Run export OPENAI_API_KEY="sk-..." |
openai package not installed | Run pip install openai |
| No image in response | Check that the model name gpt-image-1.5 is correct and the API key has image generation access |
| Rate limit errors | Wait and retry, or check API usage limits |
npx claudepluginhub thejacedev/claude-code-skills --plugin openai-image-genGenerates or edits images using OpenAI GPT Image models (gpt-image-2, gpt-image-1, etc.) via bundled Python script with openai and Pillow. For AI image creation/editing requests.
Generates AI images via Gemini API for artwork, photos, banners, logos, thumbnails. Configures models and aspect ratios like 16:9 or 1:1. Requires GEMINI_API_KEY and Python 3.
Generates images via Google Gemini's API from text prompts or reference images, with configurable output size (1K/2K/4K). Useful for creating or editing visuals directly from prompts.