New: Nano Banana 2.1Try the model
API Stock

Gambar

GPT Image 2.5: prompt, teks dalam gambar, dan referensi

Menggunakan GPT Image 2.5 untuk gambar yang mengikuti instruksi, teks, dan referensi.

Baca 2 menit2 bagian

GPT Image 2.5 sangat berguna saat teks terlihat, konsistensi merek, atau kepatuhan pada instruksi rinci penting. Jelaskan hasil dan unsur yang harus dipertahankan.

Prinsip praktis

Pilih model berdasarkan prioritas — kecepatan, kesetiaan, resolusi, atau kontrol — lalu simpan parameter dan versi setiap hasil. gpt-image-2.5-flare, gpt-image-2.5-sunburst and gpt-image-2 — GPT Image 2.5.

Ubah satu hal dalam setiap percobaan. Hasil yang baik menjadi referensi dan titik awal paling andal untuk iterasi berikutnya.

Perlakukan finished dan failed sebagai status akhir. Gunakan polling atau webhook, simpan kesalahan mentah di server, dan tampilkan pesan aman kepada pengguna.

Prompt dan contoh 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.

Jalankan dengan kunci Anda sendiri

Pilih model di katalog API Stock, periksa harganya, lalu coba melalui browser atau API.

Lanjut membaca