Back to Skills

gpt-image

Generate and edit images with OpenAI GPT-Image-2 via inference.sh CLI. Models: GPT-Image-2. Capabilities: text-to-image, image editing, inpainting, mask-based editing, multi-image reference, batch generation. Use for: product mockups, marketing visuals, image editing, concept art, inpainting, photo manipulation. Triggers: gpt image, gpt-image-2, openai image, chatgpt image, dall-e, dalle, openai image generation, gpt image edit, gpt inpainting, openai dall-e, gpt 4o image

7starsUpdated 8/14/2026

Security Assessment

Safe(94/100)
Security Score94/100

About gpt-image

gpt-image is a thin integration skill for generating and editing images with OpenAI's GPT-Image-2 model through the inference.sh CLI (the belt tool). It solves the task of driving a single model that handles text-to-image generation, reference-image editing, and mask-based inpainting from the command line, with batch generation and flexible output formats.

The skill documents the belt workflow: belt login to authenticate, then belt app run openai/gpt-image-2 with a JSON input payload. It provides worked examples for text-to-image with quality settings, generating multiple images at once (up to 10), editing with one or more reference images, multi-image composition, mask-based inpainting, custom resolutions in 32px increments from 256 to 4096, and fast low-quality drafts. A parameter table documents prompt, images, mask, n, quality, width, height, output_format, and output_compression, and a pricing table lists approximate per-image costs by quality tier. It also lists related inference.sh skills for other model families and points to platform documentation.

Target users are developers and creators who want scriptable access to GPT-Image-2 for product mockups, marketing visuals, concept art, photo manipulation, and inpainting. It depends on the external belt CLI (installed separately via npx skills add belt-sh/cli) and a paid inference.sh account. The skill is restricted to running the belt CLI and performs only image-generation operations against a hosted service — no destructive local operations, credential exfiltration, or unsafe execution.

FAQ

What model does this skill use?

OpenAI's GPT-Image-2, accessed through the inference.sh belt CLI, supporting text-to-image, reference-image editing, and mask-based inpainting.

What are the prerequisites?

The inference.sh belt CLI (installed via npx skills add belt-sh/cli) and an inference.sh account; you authenticate with belt login before running the model.

Can it generate multiple images at once?

Yes. The n parameter supports 1 to 10 images per run, and output can be PNG, JPEG, or WebP at resolutions from 256 to 4096 px in 32px increments.

How much does it cost?

The skill lists approximate per-image prices by quality tier (low, medium, high), with larger resolutions costing more; check belt app get for full pricing.

How do I do inpainting?

Provide a source image plus a mask image and a prompt describing what should fill the masked region, using the mask parameter.

Install gpt-image

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill