---
title: "How to make AI images with GPT Image 2 in Claude Code — AI video prompts for prompts by model, with examples"
description: "Two agent skills and a CLI for GPT Image 2/2.5: generate and edit images, and pull the prompt out of a reference image. Install in Claude Code, Codex and Grok with one command."
url: https://varg.ai/how-to/skills/gpt-image-2-skill-wuyoscar
updated: 2026-10-29
---

# How to make AI images with GPT Image 2 in Claude Code — prompt skill for prompts by model

> **For AI agents:** find the right skill in one call — `curl -s "https://varg.ai/how-to/api/search?q=<what the person wants>"` returns the matching how-to page and the best skills with install commands, as markdown (Russian works too). Full index: https://varg.ai/how-to/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the how-to page.

Two agent skills and a CLI for GPT Image 2/2.5: generate and edit images, and pull the prompt out of a reference image.

- **Type:** [Prompt](https://varg.ai/how-to/prompts.md) · [Prompts by model](https://varg.ai/how-to/browse/skills/prompting.md)
- **Slug:** `gpt-image-2-skill-wuyoscar`
- **Status:** beta
- **Publisher:** Wuyoscar (community)
- **License:** MIT
- **Source:** https://github.com/wuyoscar/GPT-Image2-Skill
- **Works in:** Claude Code, Codex
- **Requires:** OpenAI API key, uv, Python 3.11+
- **Cost:** Free skill; image generation is billed by your OpenAI key (or in varg credits via varg)

## What it does

Make and edit AI images with GPT Image 2 or 2.5 from Claude Code, Codex or any skill-capable agent: ask in plain words ("generate the Boston Spring poster from the skill gallery") or call `gpt-image --model <model> -p "…"`. The repo ships a 163-entry prompt gallery across 31 categories with reference images, the `gpt-image` skill for generating and editing, and `get-prompt-from-image` for extracting a prompt from a reference. Needs an OpenAI API key and uv. Via varg, run the same models as gpt_image_2 and gpt_image_2_5 without your own key.

## Use when

- how to make AI images with GPT Image 2 in Claude Code
- GPT Image 2 skill for coding agents
- how to edit an image with GPT Image 2 from the command line
- GPT Image 2 prompt gallery with examples
- how to extract a prompt from a reference image
- GPT Image 2.5 prompts for posters and thumbnails
- install a GPT Image skill in Claude Code or Codex
- gpt-image CLI for generating and editing images

## Install

- Claude Code: `/plugin marketplace add wuyoscar/gpt_image_2_skill, then /plugin install gpt-image@wuyoscar-skills`

**Models it drives:** gpt_image_2, gpt_image_2_5

## More prompts by model skills

- [fal Prompting](https://varg.ai/how-to/skills/fal-prompting.md): Prompt specific model families well: Kling, GPT Image 2 and Happy Horse guides, loaded only when needed.
- [Replicate Prompt Images](https://varg.ai/how-to/skills/replicate-prompt-images.md): Write better image prompts and edits: photographic language, lighting, text rendering, consistent characters.
- [Replicate Prompt Videos](https://varg.ai/how-to/skills/replicate-prompt-videos.md): Prompt video models like a director: shots, camera motion, four audio layers, dialogue, time-coded beats.
- [Video Prompting Guide](https://varg.ai/how-to/skills/inference-sh-video-prompting-guide.md): Write prompts that video models follow: shot types, camera moves and per-model tips from Veo to Sora.
- [FLUX 3 Prompt Doctor](https://varg.ai/how-to/skills/flux-3-prompt-doctor.md): Diagnose a FLUX 3 video brief before spending: resolve missing, conflicting or schema-changing asks.
- [FLUX Image Best Practices](https://varg.ai/how-to/skills/flux-image-best-practices.md): Prompt FLUX image models well: structure, JSON prompts, hex colors, typography and multi-reference edits.
