promptstringआवश्यक
The text prompt to generate an image from.
डिफ़ॉल्ट: "Generate an image of gray tabby cat hugging an otter with an orange scarf"
openai/gpt-image-2.5-flareGPT Image 2.5 Flare is optimized for fast, high-quality image generation for everyday creative workflows.
model को आज़माएँ
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"aspect_ratio": "16:9",
"prompt": "Create a photorealistic candid photograph of an elderly sailor standing on a small fishing boat.\nHe has weathered skin with visible wrinkles, pores, and sun texture, and a few faded traditional sailor tattoos on his arms.\nHe is calmly adjusting a net while his dog sits nearby on the deck. Shot like a 35mm film photograph, medium close-up at eye level, using a 50mm lens.\nSoft coastal daylight, shallow depth of field, subtle film grain, natural color balance.\nThe image should feel honest and unposed, with real skin texture, worn materials, and everyday detail. No glamorization, no heavy retouching."
}{
"aspect_ratio": "4:3",
"output_format": "jpeg",
"prompt": "Observation car of a train with a curved glass ceiling at night, stars and a faint aurora above snowy peaks, a few empty seats in silhouette, deep blue and teal palette. Cinematic editorial photograph, natural light, fine film grain, restrained colour grade. No text, no letters, no logos, no signage, no watermarks, no recognisable faces.",
"quality": "medium",
"resolution": "1k"
}{
"aspect_ratio": "3:4",
"output_format": "jpeg",
"prompt": "Close-up of a brass railway lantern glowing amber, hanging on the side of a dark blue train carriage, frost on the metal, bokeh snow. Cinematic editorial photograph, natural light, fine film grain, restrained colour grade. No text, no letters, no logos, no signage, no watermarks, no recognisable faces.",
"quality": "medium",
"resolution": "1k"
}{
"aspect_ratio": "3:4",
"output_format": "jpeg",
"prompt": "A long stone viaduct over a deep frozen gorge at dusk, a small train with lit windows crossing it far away, mist in the valley. Cinematic editorial photograph, natural light, fine film grain, restrained colour grade. No text, no letters, no logos, no signage, no watermarks, no recognisable faces.",
"quality": "medium",
"resolution": "1k"
}{
"aspect_ratio": "3:4",
"output_format": "jpeg",
"prompt": "Narrow corridor of a vintage sleeper train, row of polished wooden cabin doors on the left, windows on the right with night snow outside, a long patterned runner carpet, warm lamps receding into the distance. Cinematic editorial photograph, natural light, fine film grain, restrained colour grade. No text, no letters, no logos, no signage, no watermarks, no recognisable faces.",
"quality": "medium",
"resolution": "1k"
}{
"aspect_ratio": "16:9",
"output_format": "jpeg",
"prompt": "A slender lakeside timber pavilion with a thin flat roof on fine steel columns, reflected in still water at morning, reeds in the foreground, pale mist, minimal architectural photography. Cinematic editorial photograph, natural light, fine film grain, restrained colour grade. No text, no letters, no logos, no signage, no watermarks, no recognisable faces.",
"quality": "medium",
"resolution": "2k"
}GPT Image 2.5 Flare is the fast GPT Image 2.5 tier for everyday creative work, with the same quality levels and 1K to 4K output as Sunburst.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
quality | low / medium / high / xhigh / max | high | Higher quality costs more; high is the default. |
resolution | 1k / 2k / 4k | — | Output size tier; omit for 1K. |
aspect_ratio | 1:1 / 1:2 / 2:1 / 1:3 / 3:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 9:21 / 21:9 | 1:1 | Output frame shape. |
output_format | jpeg / png / webp | png | Output file format. |
Price depends on quality and resolution, per image:
| Quality | 1k | 2k | 4k |
|---|---|---|---|
| low | $0.01 | $0.02 | $0.03 |
| medium | $0.024 | $0.04 | $0.07 |
| high (default) | $0.09 | $0.15 | $0.27 |
| xhigh | $0.16 | $0.27 | $0.48 |
| max | $0.36 | $0.60 | $1.00 |
Failed runs are not charged.
low or medium, then rerun at high.Other GPT Image endpoints: openai/gpt-image-2.5-sunburst, openai/gpt-image-2.5-sunburst/edit, openai/gpt-image-2.5-flare/edit, openai/gpt-image-2, openai/gpt-image-2/edit.
बिल्डिंग शुरू करें
इस model को SandBase Unified Run API के माध्यम से सबमिट करें।
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2.5-flare",
"prompt": "Generate an image of gray tabby cat hugging an otter with an orange scarf",
"quality": "high",
"aspect_ratio": "1:1",
"output_format": "png"
}'एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
promptstringआवश्यकThe text prompt to generate an image from.
डिफ़ॉल्ट: "Generate an image of gray tabby cat hugging an otter with an orange scarf"
qualitystringRendering quality. `xhigh` and `max` add detail at higher latency and cost.
डिफ़ॉल्ट: "high"
संभावित मान: "low", "medium", "high", "xhigh", "max"
resolutionstringThe resolution of the generated image. Leave unset to preserve the provider's standard dimensions.
संभावित मान: "1k", "2k", "4k"
aspect_ratiostringThe aspect ratio of the generated image.
डिफ़ॉल्ट: "1:1"
संभावित मान: "1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", "21:9"
output_formatstringThe format of the generated image.
डिफ़ॉल्ट: "png"
संभावित मान: "jpeg", "png", "webp"
{
"model": "openai/gpt-image-2.5-flare",
"prompt": "Generate an image of gray tabby cat hugging an otter with an orange scarf",
"quality": "high",
"aspect_ratio": "1:1",
"output_format": "png"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"source": "OpenAI Cookbook prompt (MIT)",
"source_url": "https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide",
"url": "https://static.sandbase.ai/examples/2f24d1cd-084b-4de4-a62d-48feec7bc289/output/6eaea130-4f71-47ae-8631-d74772f2b750.png"
}
]