Image
GPT Image 2.5
Utiliser GPT Image 2.5 pour des images fidèles aux instructions, au texte et aux références.
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
Studio product photograph for a small design brand.A single matte cobalt-blue insulated water bottle with a brushed stainless-steelcap 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, finepowder-coated texture and restrained reflections on the cap. Leave the leftthird empty for headline copy added later. No text, no logo, no extra bottles,no decorative props.



Create a finished editorial poster in a portrait composition.Warm ivory background. At the top, large crisp dark-navy uppercase typographyreads 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 restson a simple pale pedestal. Place the small footer "STUDIO NOTES / 01" at thebottom left. Strong alignment, generous margins, subtle paper texture and onesoft directional shadow. The poster itself fills the image: no frame, no wall,no mockup perspective. Render only the three specified text elements, withno additional words, letters, logos or watermarks.

Wide editorial illustration for an article about reusable packaging.Build the scene as a tactile cut-paper collage: one cobalt-blue water bottlesurrounded 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 theleft third quiet for a headline added later. The artwork fills the image.No text, letters, numbers, logos, photographs or watermarks.

Edit the supplied product photograph. Replace only the warm ivorybackground 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 directionof the light and the contact shadow. Keep the left third empty. Do not addtext, labels, logos, props or another bottle.

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"}}'
curl "https://api.api-stock.com/api/v1/task/status/$TASK_ID" \-H "Authorization: Bearer $API_STOCK_KEY"
{"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"}}
Essayez avec votre propre clé
Tous les modèles de ce guide sont disponibles dans le catalogue API Stock — une clé d’API, un solde prépayé, aucune inscription séparée par fournisseur.