# gpt-image

Skill that connects OpenAI GPT-Image-2 to your AI coding agent. Text-to-image, reference-based editing, mask inpainting via inference.sh CLI.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 12300 installs · ★ 15
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/tools/image/gpt-image/SKILL.md
- Updated: 2026-08-31
- HTML: https://affpapa.org/en/nevibecode/skills/gpt-image

## What it does

The skill gives your agent access to GPT-Image-2 from OpenAI — a model that generates images from text, edits them using reference images, and performs mask-based inpainting. You can generate up to 10 images at once, set any resolution in 32px increments (256 to 4096), choose quality (low, medium, high) and format (PNG, JPEG, WebP). For editing, pass a reference image and a prompt — the model changes background, objects or style. Inpainting requires a mask in PNG.

Runs through `belt`, the inference.sh CLI. Without `belt` installed, the skill will fail: the agent calls `belt app run openai/gpt-image-2` with JSON parameters, and if the command is missing, you get an error. Pricing depends on quality: low around $0.006 per image, medium $0.024, high $0.21. Larger resolutions cost more.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill gpt-image -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gpt-image/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gpt-image/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill gpt-image -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gpt-image/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill gpt-image -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gpt-image/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers gpt-image
```

2. **Manually: put the files in place**
- File: `.github/skills/gpt-image/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill gpt-image -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path tools/image/gpt-image
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gpt-image/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill gpt-image -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/tools/image/gpt-image/SKILL.md

## When to use it
- generate an image from a text description
- swap background or objects in a photo using a reference
- replace a region in an image using a mask
- create multiple visual variants in one request
- get an image at a custom resolution

## Example prompts
- Generate an image: sneakers on white background, studio lighting, high quality
- Change the background in this photo to a beach at sunset
- Create 4 logo variants for a coffee shop

## Similar
- [gpt-image-2](https://affpapa.org/en/nevibecode/skills/gpt-image-2.md) — skill · 84300 installs
- [gpt-image-1-5](https://affpapa.org/en/nevibecode/skills/gpt-image-1-5.md) — skill · 615 installs
- [gpt-image-2-skill](https://affpapa.org/en/nevibecode/skills/gpt-image-2-skill.md) — skill · 315 installs
- [gpt-image-2-style-library](https://affpapa.org/en/nevibecode/skills/gpt-image-2-style-library.md) — skill · 4000 installs
- [codex-gpt-image-2-5-flare](https://affpapa.org/en/nevibecode/skills/codex-gpt-image-2-5-flare.md) — skill · 475 installs
- [ppt-image-first-workflow](https://affpapa.org/en/nevibecode/skills/ppt-image-first-workflow.md) — skill · 325 installs

## Other versions with the same name
- [gpt-image · wuyoscar](https://affpapa.org/en/nevibecode/skills/wuyoscar-gpt-image.md) — 560 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 24 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
