Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gpt-image

Skill by wuyoscar

Generates and edits images with GPT Image 2, 2.5 and 2.6 models through a packaged CLI. Built for posters, typography, reference edits, inpainting and native GIFs.

  • Score 93
  • 6.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gpt-image

Built from the published package, never by AI.

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

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gpt-image in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The gpt-image skill is an agent runbook for generating and editing images with GPT Image 2, 2.5 and 2.6 models. It defaults to gpt-image-2.6-flare and routes requests through a packaged CLI instead of custom API code. The assistant classifies each request as generate, edit, inpaint or multi-reference, and resolves the model choice before any API call.

Calls go through the CLI with an explicit model flag. Text-to-image uses the generations endpoint, while reference edits and inpainting use the edits endpoint. The skill also covers native GIF output, sprite sheet to GIF conversion with a local animate command, and image-led websites. It suits users who want image generation from an AI assistant and who have an OpenAI API key. Successful API calls may incur OpenAI charges.

Written from the project's SKILL.md and checked against it.

What it can do

  • Image generationGenerates images from a prompt with the default 2.6 Flare model or a model the user picks.
  • Reference editsEdits images using one or more reference images through the edits endpoint.
  • InpaintingEdits a masked area of an image using a PNG alpha mask with a reference image.
  • Native GIF outputProduces animated GIFs directly with optional frame count and frame duration settings.
  • Sprite sheet to GIFSlices an existing sprite sheet grid into a looping GIF and preview player locally.
  • Model selectionResolves the model choice before generation and passes the exact model ID explicitly.
  • Size and quality controlChooses canvas size presets and quality levels, with notes on cost trade-offs.
  • Image-led websitesGuides building HTML, CSS and JS around generated visual assets, with testing steps.

What you need

  • Python 3.11+
  • gpt-image, uv, or uvx available
  • OpenAI API key set as OPENAI_API_KEY
  • OpenAI account billed for API calls

Try asking

  • Generate a poster with bold typography for a jazz night event
  • Edit this product photo to change the background to a beach
  • Inpaint the masked area of this image with a green plant

Good to know

  • Successful CLI and API calls may incur OpenAI API charges.
  • The animate step slices existing frames and does not create motion from a still image.
  • Invalid-model, access, quota or policy failures are reported without switching models.
  • Generates one image unless the user asks for more.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gpt-image/SKILL.md, skills/gpt-image/scripts/generate.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • agents/openai.yaml350 B
  • references/craft.md19 KB
  • references/gallery-anime-and-manga.md17 KB
  • references/gallery-architecture-and-interior.md10 KB
Show all 44 files
  • references/gallery-beauty-and-lifestyle.md2 KB
  • references/gallery-brand-systems-and-identity.md3 KB
  • references/gallery-character-design.md2 KB
  • references/gallery-cinematic-and-animation.md6 KB
  • references/gallery-cinematic-film-references.md7 KB
  • references/gallery-data-visualization.md6 KB
  • references/gallery-edit-endpoint-showcase.md3 KB
  • references/gallery-events-and-experience.md2 KB
  • references/gallery-fashion-editorial.md9 KB
  • references/gallery-fine-art-painting.md6 KB
  • references/gallery-gaming.md13 KB
  • references/gallery-illustration.md5 KB
  • references/gallery-infographics-and-field-guides.md17 KB
  • references/gallery-ink-and-chinese.md3 KB
  • references/gallery-isometric.md5 KB
  • references/gallery-more-illustration-styles.md7 KB
  • references/gallery-official-openai-cookbook-examples.md4 KB
  • references/gallery-photography.md9 KB
  • references/gallery-pixel-art.md2 KB
  • references/gallery-product-and-food.md6 KB
  • references/gallery-research-paper-figures.md28 KB
  • references/gallery-retro-and-cyberpunk.md5 KB
  • references/gallery-scientific-and-educational.md9 KB
  • references/gallery-screen-photography.md3 KB
  • references/gallery-tattoo-design.md4 KB

And 14 more files on GitHub.

Alternatives to gpt-image

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

gpt-image: common questions

Which model does gpt-image use by default?

It uses gpt-image-2.6-flare by default and passes the model ID explicitly through the --model flag. Users can pin gpt-image-2 or a 2.5 model to keep earlier behavior.

Does the skill need an OpenAI API key?

The CLI reads OPENAI_API_KEY from the environment, then .env or ~/.env. The sprite sheet animate step makes no API calls and needs no key.

Can it edit existing images?

Yes. Passing one or more reference images uses the edits endpoint, and adding a mask runs inpainting.

How do I install gpt-image?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gpt-image free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is gpt-image safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gpt-image?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

gpt-image Install

Add to stack

Loading.