使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/skills-shell/superpowers --skill gpt-image开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Install the belt CLI skill: npx skills add belt-sh/cliGPT-Image
Generate and edit images with OpenAI's GPT-Image-2.6 via inference.sh CLI.
Models
| Model | App ID | Pick it for |
|---|---|---|
| GPT-Image-2.6 Flare | openai/gpt-image-2-6-flare | Default. Fast iteration, text-to-image, edits, transparent PNG |
| GPT-Image-2.6 Sunburst | openai/gpt-image-2-6-sunburst | Premium edits: keeps subject and composition, tighter control across multi-turn edits |
Both share the same input schema, including xhigh and max quality tiers.
Quick Start
Requires inference.sh CLI (belt). Install instructionsbelt login
belt app run openai/gpt-image-2-6-flare --input '{"prompt": "a cat astronaut floating in space"}'Capabilities
Every GPT-Image app supports text-to-image generation, image editing with reference images, and mask-based inpainting through a single app.
| Feature | Description |
|---|---|
| Text-to-Image | Generate images from text prompts |
| Image Editing | Edit images using reference images |
| Inpainting | Mask-based editing of specific regions |
| Batch Generation | Generate up to 10 images at once |
| Multiple Formats | PNG, JPEG, WebP output |
| Transparent Background | Alpha-channel PNG/WebP output for stickers, icons, product cutouts |
| Flexible Resolution | Any size in 16px increments (256–3840), aspect ratio up to 3:1 |
Examples
Text-to-Image
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "professional product photo of sneakers on a white background, studio lighting",
"quality": "high"
}'Multiple Images
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "minimalist logo design for a coffee shop",
"n": 4,
"quality": "medium"
}'Image Editing with Reference
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "change the background to a beach at sunset",
"images": ["https://your-image.jpg"]
}'Precise Edit with Sunburst
Sunburst is built to change only what you ask for and preserve the rest.
belt app run openai/gpt-image-2-6-sunburst --input '{
"prompt": "change the jacket to red leather, keep the person, pose and background unchanged",
"images": ["https://your-photo.jpg"],
"quality": "high"
}'Maximum Detail
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "macro photo of a dragonfly wing, intricate veins, morning dew",
"quality": "max"
}'Multi-Image Reference
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "combine these two characters into one scene",
"images": ["https://character1.jpg", "https://character2.jpg"]
}'Inpainting with Mask
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "replace with a red sports car",
"images": ["https://street-scene.jpg"],
"mask": "https://car-mask.png"
}'Transparent Background
Prompt for an isolated subject — describing a scene or backdrop makes the model draw one. Requires png (default) or webp output.
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "a single red apple with a green leaf, isolated subject",
"background": "transparent"
}'Custom Resolution
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "wide cinematic landscape, mountains at golden hour",
"width": 1920,
"height": 1080,
"quality": "high"
}'Fast Drafts
belt app run openai/gpt-image-2-6-flare --input '{
"prompt": "quick concept sketch of a robot",
"quality": "low"
}'Pricing
Token-based pricing. Flare and Sunburst cost the same.
| Token type | Price per 1M tokens |
|---|---|
| Text input | $5.00 |
| Image input | $8.00 |
| Image output | $30.00 |
Higher quality and larger resolutions use more output tokens. Edits add image input tokens per reference image. See belt app pricing openai/gpt-image-2-6-flare for full pricing details.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt | string | required | Text prompt describing the image |
images | array | - | Reference image(s) for editing |
mask | string | - | Mask image for inpainting |
n | integer | 1 | Number of images (1–10) |
quality | string | auto | low, medium, high, xhigh, max |
width | integer | 1024 | Output width (256–3840, multiples of 16, ratio ≤ 3:1) |
height | integer | 1024 | Output height (256–3840, multiples of 16, ratio ≤ 3:1) |
output_format | string | png | png, jpeg, or webp |
output_compression | integer | - | Compression level for jpeg/webp (0–100) |
background | string | auto | auto, transparent, or opaque (transparent needs png/webp) |
Related Skills
# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli
# All image generation models
npx skills add inference-sh/skills@ai-image-generation
# FLUX models
npx skills add inference-sh/skills@flux-image
# Pruna P-Image (fast & economical)
npx skills add inference-sh/skills@p-imageBrowse all image apps: belt app list --category image
Documentation
- Running Apps - How to run apps via CLI
- Streaming Results - Real-time progress updates