计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
gpt-image【效率与协作】Generate or edit product, editorial, photographic and typography images with GPT Image 2.5. Sunburst favors quality; Flare favors speed. Automatically use the other variant on rate limits.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use Sunburst by default for final artwork, product and jewelry marketing, pet reference assets, covers, typography, and fidelity-sensitive edits. Use Flare for quick previews, drafts and interactive iteration. The other 2.5 variant is the fallback on HTTP 429, in either direction. Other errors surface without switching models. Generation and edits follow the same routing.
~/.claude/skills/gpt-image/generate.py "<prompt>" [options]
# Fast preview, with Sunburst fallback on rate limits:
~/.claude/skills/gpt-image/generate.py "<prompt>" --variant flare
# Final edit, with Flare fallback on rate limits:
~/.claude/skills/gpt-image/generate.py "<prompt>" --edit source.png --variant sunburst
The executable uses uv and its inline OpenAI dependency. Allow up to ten
minutes per image; Sunburst is slower than Flare. Do not reuse old image-model
latency or cost estimates as current measurements.
--quality low|medium|high|xhigh|max|auto: optional; omitted means API auto.
Keep the actual application setting when comparing models.--variant sunburst|flare: CLI wins over GPT_IMAGE_VARIANT; default Sunburst.--provider auto|azure|newapi: auto uses configured Azure, then NewAPI.--azure-retries N: optional 429 retries per variant, default zero so the
alternate deployment is tried immediately. Both rate limited: fail visibly.--edit PATH: repeat for multiple references; inputs reopen on every retry.--size WxH: default 1024x1024. Conservatively clamps to multiples of 16,
long edge 3840 and 8,294,400 pixels. These are inherited bounds, not a claim
that the new model's maximum dimensions have been measured.--n N, --concurrency N: image count and parallel workers (default 1 / 5).--format jpg|jpeg|png|webp: default JPG; PNG for transparency or crisp assets.--output DIR, --name NAME: output location and basename. Each saved path
is printed to stdout. Use project scratch for temporary review images.Credentials come from environment or ~/.config/gpt-image/credentials (the
local compatibility path points into ~/creds/). Never commit keys.
AZURE_OPENAI_ENDPOINT=https://<resource>.cognitiveservices.azure.com
AZURE_OPENAI_API_KEY=<key-for-that-resource>
AZURE_OPENAI_API_VERSION=2025-04-01-preview
# Optional NewAPI provider; base URL includes /v1:
NEWAPI_BASE_URL=https://<your-gateway>/v1
NEWAPI_API_KEY=<gateway-key>
GPT_IMAGE_VARIANT=sunburst
Azure needs deployments named gpt-image-2.5-sunburst and
gpt-image-2.5-flare on the same resource. Each deployment/model is selected
explicitly; obsolete AZURE_OPENAI_DEPLOYMENT, AZURE_OPENAI_MODEL, and
OPENAI_IMAGE_MODEL no longer override the routing. The generic Foundry v1
API version is ignored in favor of the classic image API version above.
NewAPI uses those same two model aliases. There is no silent fallback to an
older image model or an unrelated OpenAI direct account.
GPT Image is strongest when you give it:
text reading "URBAN EXPLORER" at the top, bold, white, sans-serifFor typography/text integration, GPT Image is usually better than Gemini. For reference-image editing, use nanobanana instead.
Repaint over a draft, don't generate from text: for infographics, charts,
and diagrams, text-prompt-only generation is unreliable. Build the structure
first (matplotlib / hand-SVG / a rough render), pass it via --edit draft.png, and let GPT Image improve the presentation while preserving the
title and annotation text.
Any prompt that renders Chinese text MUST end with this suffix, appended
verbatim (prompt + SUFFIX — a hard invariant you concatenate every time,
never trust the model to remember it):
禁止:文字重叠、文字压在复杂图像上、伪汉字乱码、逐字竖排英文、
超过两种字体、页面四边贴字无留白、装饰元素盖过标题、每页超过 5 个信息块。
Migration evidence and application timings: references/image25-migration.md.