New: Nano Banana 2.1Try the model
API Stock

图像

GPT Image 2.5:提示词、图中文字与参考图用法

使用 GPT Image 2.5 精确处理指令、文字和参考图。

阅读约 1 分钟2 个章节

当可见文字、品牌一致性或细致指令很重要时,GPT Image 2.5 尤其适用。请描述结果和必须保留的元素。

实操要点

按优先目标选择模型——速度、还原度、分辨率或控制能力——并保存每次结果的参数和版本。 gpt-image-2.5-flare, gpt-image-2.5-sunburst and gpt-image-2 — GPT Image 2.5.

每次尝试只改一件事。好的输出应保留为参考图,它是下一轮迭代最可靠的起点。

将 finished 和 failed 视为终态。使用 polling 或 webhook,在服务器保存原始错误,并向用户展示安全的信息。

提示词与 API 示例

text
Studio product photograph for a small design brand.
A single matte cobalt-blue insulated water bottle with a brushed stainless-steel
cap stands on a pale limestone block. Three-quarter view, bottle fully visible,
centered in the right half of a wide composition. Warm ivory seamless background,
soft window light from the upper left, a believable contact shadow, fine
powder-coated texture and restrained reflections on the cap. Leave the left
third empty for headline copy added later. No text, no logo, no extra bottles,
no decorative props.
GPT Image 2: a cobalt-blue bottle on limestone, 2048 × 1360 pixels.
GPT Image 2: a cobalt-blue bottle on limestone, 2048 × 1360 pixels.
GPT Image 2.5 Flare: a cobalt-blue bottle on limestone, 2304 × 1536 pixels.
GPT Image 2.5 Flare: a cobalt-blue bottle on limestone, 2304 × 1536 pixels.
GPT Image 2.5 Sunburst: a cobalt-blue bottle on limestone, 2304 × 1536 pixels.
GPT Image 2.5 Sunburst: a cobalt-blue bottle on limestone, 2304 × 1536 pixels.
text
Create a finished editorial poster in a portrait composition.
Warm ivory background. At the top, large crisp dark-navy uppercase typography
reads exactly "MAKE ROOM" on the first line and "FOR QUIET" on the second line.
In the lower right, a sculptural spiral made of matte cobalt-blue ceramic rests
on a simple pale pedestal. Place the small footer "STUDIO NOTES / 01" at the
bottom left. Strong alignment, generous margins, subtle paper texture and one
soft directional shadow. The poster itself fills the image: no frame, no wall,
no mockup perspective. Render only the three specified text elements, with
no additional words, letters, logos or watermarks.
GPT Image 2.5 Sunburst: the MAKE ROOM / FOR QUIET poster, 1536 × 2048 pixels (3:4), shown uncropped.
GPT Image 2.5 Sunburst: the MAKE ROOM / FOR QUIET poster, 1536 × 2048 pixels (3:4), shown uncropped.
text
Wide editorial illustration for an article about reusable packaging.
Build the scene as a tactile cut-paper collage: one cobalt-blue water bottle
surrounded by folded cream paper leaves and three simple circular ripples.
Use an off-white handmade-paper background and a restrained sage-green accent.
Show crisp cut edges, slight layering shadows and clean geometric silhouettes.
Keep the bottle and most of the collage in the right two thirds; leave the
left third quiet for a headline added later. The artwork fills the image.
No text, letters, numbers, logos, photographs or watermarks.
GPT Image 2.5 Flare: a paper-collage illustration with space for a headline, at 16:9 and 2K.
GPT Image 2.5 Flare: a paper-collage illustration with space for a headline, at 16:9 and 2K.
text
Edit the supplied product photograph. Replace only the warm ivory
background with a muted sage-green plaster wall with a very fine matte texture.
Keep the cobalt-blue bottle, its brushed steel cap, the pale limestone block,
the camera angle, crop and product placement unchanged. Preserve the direction
of the light and the contact shadow. Keep the left third empty. Do not add
text, labels, logos, props or another bottle.
GPT Image 2.5 Sunburst edits the Flare product image with a sage-green background, at 3:2 and 2K.
GPT Image 2.5 Sunburst edits the Flare product image with a sage-green background, at 3:2 and 2K.
sh
curl -X POST https://api.api-stock.com/api/v1/generation/create \
-H "Authorization: Bearer $API_STOCK_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-flare",
"input": {
"prompt": "Studio photograph of a matte cobalt-blue bottle on pale limestone, warm ivory background, soft light from the upper left, room for a headline on the left, no text or logo.",
"size": "3:2",
"resolution": "2k"
}
}'
sh
curl "https://api.api-stock.com/api/v1/task/status/$TASK_ID" \
-H "Authorization: Bearer $API_STOCK_KEY"
json
{
"model": "gpt-image-2.5-sunburst",
"input": {
"prompt": "Replace only the background with a muted sage-green wall. Keep the bottle, cap, block, framing and lighting unchanged.",
"urls": ["https://example.com/your-approved-product-photo.png"],
"size": "3:2",
"resolution": "2k"
}
}

OpenAI's Flare model page.

OpenAI's Sunburst model page.

Sunburst reference or Flare reference.

OpenAI image-generation limitations.

用你自己的密钥跑一遍

在 API Stock 目录中选择模型、查看价格,再通过浏览器或 API 试用。

继续阅读