GPT Image 2 API

Generate/edit images via any OpenAI-compatible gpt-image-2 endpoint, .env-configured.

Tested · Works

Test report

Verdict
Tested · Works
Score
9.2/10
Tested
Jul 16, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Aug 10, 2026 · 3842a0e

Ran the real 600-line script against a local mock OpenAI-compatible server: generation worked end-to-end (valid PNG saved), and an edit call correctly hit /images/edits with multipart form data and surfaced the mock's 404 verbatim, exactly as the docs promise ('report API errors exactly'). A naive from-scratch baseline only covers plain generation — no edit/mask/protocol-fallback/.env support.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 8/10
  • Docs & honesty 5/5

What GPT Image 2 API does

A CLI-driven skill that calls an OpenAI-compatible image API (generations and multipart edits, with mask/background/format/quality overrides) using OPENAI_API_KEY and OPENAI_BASE_URL from env or a local .env file. Triggers when the user asks to generate, edit, or produce visual assets/illustrations/variations through a configurable API endpoint.

How to install GPT Image 2 API

git clone https://github.com/BenedictKing/benedictking-skills
mkdir -p ~/.claude/skills
cp -r benedictking-skills/skills/gpt-image-2-api ~/.claude/skills/gpt-image-2-api

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger GPT Image 2 API

  • /gpt-image-2-api Generate/edit images via any OpenAI-compatible gpt-image-2 endpoint, .env-configured.

It also activates on plain-language prompts like these:

  • Generate a product illustration through my configured image API
  • Edit this photo's background using my OpenAI-compatible endpoint
  • Create a few logo variations by calling my image generation API

Frequently asked questions

Is the GPT Image 2 API skill free?
Yes. The skill itself is free from BenedictKing/benedictking-skills. SkillProof publishes the install command and an independent test verdict at no cost.
Does GPT Image 2 API work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 16, 2026. Verdict: Tested · Works. Ran the real 600-line script against a local mock OpenAI-compatible server: generation worked end-to-end (valid PNG saved), and an edit call correctly hit /images/edits with multipart form data and surfaced the mock's 404 verbatim, exactly as the docs promise ('report API errors exactly'). A naive from-scratch baseline only covers plain generation — no edit/mask/protocol-fallback/.env support.
What is the GPT Image 2 API SkillProof Score?
9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
How do I install GPT Image 2 API?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use GPT Image 2 API with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.