GPT Image

Generates and edits images with OpenAI's GPT Image 2 and 2.5 models through a ready-made command-line tool and a gallery of about 160 example prompts.

AI Images & Photosimage generationgpt imagephoto editingpromptsby wuyoscar6kGitHub

What it is

GPT Image is a playbook that lets your agent create and edit pictures with OpenAI's GPT Image models: Image 2, plus two 2.5 versions, Flare for fast everyday work and Sunburst for precise edits. It suits anyone with an OpenAI API key who makes posters, typography, product shots, interface mockups, infographics, research figures or edits to existing photos. The agent runs a packaged command-line tool instead of writing its own code, and the finished images are saved as files on your computer.

Its main habit is care with model choice and cost. If you say something vague like 'GPT 2.5', the agent asks which of the three models you mean instead of guessing. It makes one image unless you ask for more, and checks before extra paid variants or higher quality. For Image 2 it borrows from a matching category in a gallery of roughly 160 prompts across 31 categories, from anime and pixel art to tattoo design and research paper figures. For 2.5 it uses short guides on generation, layout and text, and editing. It supports edits from reference images and masked inpainting, where only a marked area changes.

You get the file path, the key settings used and, when useful, one suggestion for refining the image. Every call is billed to your own OpenAI account. Errors such as missing model access, quota limits or policy refusals are reported to you rather than retried with another model. If your agent already has its own image tool and you prefer it, the skill uses that instead.

What it can do

  • Creates images from text, edits images using one or more references, and repaints only a masked area.
  • Asks you to choose between Image 2, 2.5 Flare and 2.5 Sunburst whenever the model is unclear.
  • Draws on a gallery of about 160 example prompts in 31 categories for Image 2 work.
  • Offers size presets for square, portrait, landscape, print and widescreen, plus transparent backgrounds on 2.5.
  • Sets quality from cheap drafts to the 2.5-only xhigh and max levels, discussing cost before going higher.
  • Reports saved file paths and passes on API errors instead of quietly repeating billable requests.

When to use it

  • You need a poster with an exact headline and want the agent to handle the text carefully.
  • You have a product photo and want the background replaced while the product stays the same.
  • You are drafting a figure for a research paper and want to start from a proven example prompt.
  • You want a couple of cheap low-quality drafts before paying for one high-quality final image.

How it works

  1. 1Classifies your request as a new image, an edit, a masked edit or a multi-reference job, and settles which model to use.
  2. 2Loads one relevant gallery category or guide, only when your brief needs it.
  3. 3For costly or ambiguous jobs, proposes one to three directions with the planned size and quality.
  4. 4Checks that the gpt-image command or the uv runner is available and that your OpenAI key is set, without writing any secrets.
  5. 5Runs the command-line tool with the chosen model and reports where the images were saved.

Try asking

“Generate a minimalist jazz festival poster with GPT Image 2.5 Flare.”
“Edit photo.png so the sofa is dark green, using Sunburst.”
“Make a graphical abstract for my paper with GPT Image 2.”
“Create a sticker-style logo with a transparent background.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/wuyoscar/GPT-Image2-Skill/tree/main/skills/gpt-image
pnpm
pnpm dlx skills add https://github.com/wuyoscar/GPT-Image2-Skill/tree/main/skills/gpt-image

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add wuyoscar/GPT-Image2-Skill
/plugin install gpt-image@wuyoscar-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the gpt-image folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/wuyoscar/GPT-Image2-Skill.git
mkdir -p ~/.claude/skills
cp -r GPT-Image2-Skill/skills/gpt-image ~/.claude/skills/gpt-image

Then just ask in plain language, for example: “Generate a minimalist jazz festival poster with GPT Image 2.5 Flare.”