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

566stars88forksUpdated 6/26/2026

Security Assessment

Safe(100/100)
Security Score100/100

About gpt-image

A command-line workflow for generating and editing images with OpenAI's GPT-Image-2 model through the inference.sh platform, driven by the belt CLI. After installing the CLI and running belt login, images are produced with belt app run openai/gpt-image-2, passing a JSON --input payload that always includes a text prompt and optionally other parameters. The single model handles text-to-image generation, image editing with reference images, and mask-based inpainting, so one interface covers product mockups, marketing visuals, concept art, and photo manipulation.

The documented parameters include prompt (required), images (an array of reference image URLs for editing or multi-image composition), mask (an image URL for inpainting specific regions), n (1 to 10 images per run), quality (low, medium, or high), width and height (256 to 4096 in multiples of 32), output_format (png, jpeg, or webp), and output_compression (0 to 100 for jpeg/webp). Worked examples show studio product photos, multiple logo variations, background replacement via a reference image, combining two characters into one scene, masked object replacement, custom cinematic resolutions, and fast low-quality concept drafts.

Pricing is tiered by quality at roughly $0.006 per image for low, $0.024 for medium, and $0.21 for high, with larger resolutions costing more; full pricing is available via belt app get openai/gpt-image-2. The doc points to related inference.sh skills for the full platform, other image-generation model families such as FLUX and Pruna P-Image, and references on running apps and streaming real-time progress. Use it when you want scripted, repeatable image generation or editing from the terminal without writing direct API integration code.

FAQ

What do I need installed to use this skill?

The inference.sh CLI (belt). You install it via the belt CLI skill, then run belt login before invoking belt app run openai/gpt-image-2.

How many images can I generate in a single run?

Up to 10. Set the n parameter (1 to 10, default 1) in the JSON input to request batch generation.

Does it support inpainting or editing existing images?

Yes. Pass reference images via the images array for editing or multi-image composition, and add a mask URL for mask-based inpainting of specific regions.

What resolutions and output formats are available?

Width and height can be any value from 256 to 4096 in multiples of 32, and output_format can be png, jpeg, or webp, with optional output_compression (0 to 100) for jpeg and webp.

How much does each image cost?

Roughly $0.006 for low quality, $0.024 for medium, and $0.21 for high, with larger resolutions costing more. Run belt app get openai/gpt-image-2 for full pricing details.

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