New: Nano Banana 2.1Try the model
API Stock

Image

GPT Image 2.5 : prompts, texte dans l'image et références

Utiliser GPT Image 2.5 pour des images fidèles aux instructions, au texte et aux références.

2 min de lecture2 sections

GPT Image 2.5 est particulièrement utile quand le texte visible, la cohérence de marque ou le respect détaillé d’une consigne sont importants. Décrivez le résultat et les éléments à préserver.

Principes pratiques

Choisissez le modèle selon la priorité — vitesse, fidélité, résolution ou contrôle — puis conservez les paramètres et la version utilisés pour chaque résultat. gpt-image-2.5-flare, gpt-image-2.5-sunburst and gpt-image-2 — GPT Image 2.5.

Faites une modification par essai. Gardez les sorties satisfaisantes comme références : elles deviennent le point de départ le plus fiable pour l’itération suivante.

Traitez finished et failed comme des états finaux. Pour une intégration robuste, utilisez le polling ou un webhook, conservez les erreurs brutes côté serveur et montrez un message sûr à l’utilisateur.

Prompts et exemples d’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.

Essayez avec votre propre clé

Choisissez un modèle dans le catalogue API Stock, vérifiez son prix et testez-le dans le navigateur ou par API.

À lire ensuite