| name | imagegen-gpt-image |
| description | Generate images via OpenAI's gpt-image-2 (the SOTA OpenAI image model as of 2026).
Use when the user wants to create, generate, render, or produce an image with
OpenAI / GPT (e.g. "make me an image of...", "generate a logo with gpt-image",
"use openai image gen", "openai image 2"). Wraps the v1/images/generations API
in a small bash script.
|
| allowed-tools | ["Bash","Read"] |
imagegen-gpt-image — OpenAI gpt-image-2 from the CLI
Thin shell wrapper around POST https://api.openai.com/v1/images/generations
using gpt-image-2. Decodes the base64 response straight to a file.
Tool
~/.claude/skills/imagegen-gpt-image/bin/imagegen-gpt-image
Invoke with bash; no install step needed. Run with --help for the full flag
list. Common invocations:
~/.claude/skills/imagegen-gpt-image/bin/imagegen-gpt-image \
"a cat reading a newspaper"
~/.claude/skills/imagegen-gpt-image/bin/imagegen-gpt-image \
-o /tmp/coffee-shop.png \
-s 2048x2048 -q high \
"isometric coffee shop, soft pastel palette"
~/.claude/skills/imagegen-gpt-image/bin/imagegen-gpt-image \
-n 3 -o sketches.png "rough pencil sketch of a fox"
API key
Reads OPENAI_API_KEY in this order: