GPT Image 2 Skill — AI skill for Claude Code
Claude Code skill for generating and editing images with OpenAI's gpt-image-2.
How to install GPT Image 2 Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dshark3y/gpt-image-2-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What GPT Image 2 Skill does
Claude Code skill for generating and editing images with OpenAI's gpt-image-2.
Alternatives in AI
- CLI 代理 API — English 中文 一个为 CLI 提供 OpenAI/Gemini/Claude/Codex 兼容 API 接口的代理服务器 19k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Azure OpenAI .net — GPT-4, embeddings, DALL-E, and Whisper client 1.8k ★
README
GPT Image - Claude Code Skill
Claude can't reliably call OpenAI's image API from memory. The surface keeps moving, the size constraints are easy to get wrong, and more often than not Claude either guesses the signature or silently skips "generate me an image" tasks entirely. This skill fixes that.
Two CLI scripts wrapped as a [Claude Code](https://claude.com/claude-code) skill: `generate.py` for text-to-image with `gpt-image-2`, and `edit.py` for editing or compositing up to 10 reference images. Dependencies install on first run via `uv` and PEP 723 inline metadata. No glue code. No boilerplate.
Requirements
| Requirement | Purpose |
|---|---|
| uv | Runs the scripts and manages dependencies automatically. No pip install needed. |
| OpenAI API key | Must have access to gpt-image-2. Requires API organization verification. |
| Claude Code (optional) | Only needed if you want Claude to invoke the skill automatically. The scripts also work standalone. |
Installing uv
`uv` is a fast Python package manager from Astral. It replaces `pip` + `venv` + `pyenv` with a single tool that's roughly 10-100x faster. These scripts rely on `uv run` to fetch dependencies on first invocation, so it must be installed.
**macOS / Linux:**
curl -LsSf https://astral.sh/uv/install.sh | sh
**Windows (PowerShell):**
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
**Homebrew:**
brew install uv
**Verify the install:**
uv --version
If `uv` isn't on your PATH after install, restart your shell or follow the on-screen instructions from the installer. Full docs: .
Setup
**1. Clone or copy the skill into your Claude Code skills directory.**
# User-wide (recommended)
git clone https://github.com/dshark3y/gpt-image-2-skill.git ~/.
Related Skills
GPT Image Studio
Let your AI agent generate images with OpenAI gpt-image-2.5 — live web gallery, cost tracking, MCP, 5 language
Codex Image MCP
Generate images in Claude Code using the ChatGPT subscription you already pay for. An MCP server for OpenAI's
Design Buddy
Design Buddy: visual production Agent Skills for brand design systems, GPT-image-2 images, diagrams, infograph
GPT Image Skill
Generate GPT images from Codex or Claude Code using a ChatGPT subscription, without the Images API.
Vibeshot Candid GPT
Real-life candid portrait prompt studio for ChatGPT (GPT Image / Sora Images). Adapted from vibeshot-candid-ph
Image Use
Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae
Related Agents
Image Generator
Generates and edits images using the OpenAI Image API via the bundled CLI (scripts/image_gen.py). Use for conc
Thumb Designer
썸네일 디자이너. 리서치 결과를 바탕으로 썸네일 컨셉을 설계하고, OpenAI gpt-image-2 이미지 생성으로 실제 썸네일을 제작한다.
Image Craft Expert
Crafts optimized text-to-image prompts and generates images using Gemini (nano-banana) and/or ChatGPT (gpt-ima