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
Security Assessment
About gpt-image
The gpt-image skill generates and edits images using OpenAI's GPT-Image-2 model through the inference.sh CLI (belt). It gives users a single model that handles text-to-image generation, image editing with reference images, and mask-based inpainting, solving the need to produce product mockups, marketing visuals, concept art, and photo manipulations from the command line. After belt login, all work is done with belt app run openai/gpt-image-2 and a JSON --input payload.
Capabilities documented include text-to-image, image editing using reference images passed in an images array, mask-based inpainting via a mask image, batch generation of up to 10 images at once (n parameter), multiple output formats (PNG, JPEG, WebP), and flexible resolution at any size in 32px increments from 256 to 4096. Parameters include prompt (required), images, mask, n (1-10), quality (low, medium, or high), width and height (256-4096, multiples of 32), output_format (png, jpeg, or webp), and output_compression (0-100 for jpeg/webp). Pricing is approximately $0.006 per low-quality image, $0.024 medium, and $0.21 high, with larger resolutions costing more; full pricing is available via belt app get openai/gpt-image-2.
The skill targets designers, marketers, and developers who want scripted image generation and editing. It requires the inference.sh CLI (belt), installable via npx skills add belt-sh/cli, and restricts its allowed tool to Bash(belt *). Related skills point to the full inference.sh platform skill, general image-generation models, FLUX models, and Pruna P-Image for faster, more economical generation.
FAQ
What can GPT-Image-2 do through this skill?
Text-to-image generation, image editing with reference images, and mask-based inpainting — all through a single model. It also supports batch generation of up to 10 images, PNG/JPEG/WebP output, and flexible resolution in 32px increments from 256 to 4096.
What is required to use it?
The inference.sh CLI called belt. Install it with npx skills add belt-sh/cli, run belt login, then use belt app run openai/gpt-image-2. The allowed tool is Bash(belt *).
How do I do inpainting?
Provide the source image in the images array and a mask image via the mask parameter, along with a prompt describing what should replace the masked region.
How is pricing structured?
Approximate per-image cost is $0.006 for low quality, $0.024 for medium, and $0.21 for high, and larger resolutions cost more. Run belt app get openai/gpt-image-2 for full pricing details.
Can I generate multiple images in one call?
Yes. Set the n parameter to generate between 1 and 10 images at once.
Install gpt-image
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
101-skills/skills