imagesarrayआवश्यक
The URLs of the images to use for image-to-image generation or image editing.
openai/gpt-image-2.6-flare/editGPT Image 2.6 Flare Edit is optimized for fast, high-quality image editing and multi-image composition.
model को आज़माएँ
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/0de9d081-6109-4bf2-908c-fce8cad00373/input/4da5ba0b-d3ae-435c-846b-690644bf60b7.png"
],
"prompt": "Create a realistic billboard mockup of the shampoo on a highway scene during sunset.\nBillboard text (EXACT, verbatim, no extra characters):\n\"Fresh and clean\"\nTypography: bold sans-serif, high contrast, centered, clean kerning.\nEnsure text appears once and is perfectly legible.\nNo watermarks, no logos."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/bd4060f1-4491-4c59-98f9-54943cbe6191/input/f147bed3-d4a2-43ef-a94a-2ef397df66b7.png",
"https://static.sandbase.ai/examples/bd4060f1-4491-4c59-98f9-54943cbe6191/input/e4f27c7b-b3e3-45a3-88a1-1e19aa705c2f.png",
"https://static.sandbase.ai/examples/bd4060f1-4491-4c59-98f9-54943cbe6191/input/0c2449a1-164a-4300-bbc6-745840d19b5c.png",
"https://static.sandbase.ai/examples/bd4060f1-4491-4c59-98f9-54943cbe6191/input/db5daf91-c1fc-4106-a72b-118050d34c53.png"
],
"output_format": "png",
"prompt": "Create a premium photorealistic spa bathroom scene using all four products from the reference images.\n\nArrange the body lotion, artisan soap, incense burner, and bath bomb together on a natural stone vanity beside a softly steaming bathtub. Add neatly folded white towels, a small eucalyptus branch, warm candlelight, and subtle morning sunlight coming through a frosted window.\n\nPreserve the recognizable shape, material, color, proportions, and visible label details of every referenced product. Each of the four products must appear exactly once and remain clearly visible.\n\nUse an elegant editorial product-photography composition with realistic reflections, soft shadows, shallow depth of field, and refined neutral colors. The result should feel luxurious, calm, cohesive, and suitable for a premium wellness campaign.\n\nDo not use a gift basket, gift box, ribbon, or additional branded products. Do not duplicate, merge, deform, or obscure any referenced item. No extra text, no watermark, and no unrelated logos.",
"quality": "high"
}GPT Image 2.6 Flare edit: fast edits and multi-image composition with GPT Image 2.6.
| Field | Type | Default | Notes |
|---|---|---|---|
images | image URL[], required | — | Images to edit or combine, Image 1, Image 2, … |
prompt | string, required | — | Up to 32,000 characters. |
quality | low / medium / high | 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 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 9:21 / 21:9 | — | Omit to follow the first input image. |
output_format | jpeg / png / webp | png | Output file format. |
Price depends on quality and resolution, per output image, plus $0.015 for each input image after the first:
| Quality, 1 input | 1k | 2k | 4k |
|---|---|---|---|
| low | $0.025 | $0.035 | $0.045 |
| medium | $0.039 | $0.055 | $0.085 |
| high (default) | $0.105 | $0.165 | $0.285 |
Failed runs are not charged.
Other GPT Image endpoints: openai/gpt-image-2.6-flare, openai/gpt-image-2.6-sunburst, openai/gpt-image-2.6-sunburst/edit, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst.
बिल्डिंग शुरू करें
इस model को SandBase Unified Run API के माध्यम से सबमिट करें।
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "openai/gpt-image-2.6-flare/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}
SANDBASE_JSON
)
printf '%s\n' "$result"एक 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 का संकेत नहीं मिलता।
imagesarrayआवश्यकThe URLs of the images to use for image-to-image generation or image editing.
promptstringआवश्यकThe text prompt to generate an image from.
डिफ़ॉल्ट: "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures."
qualitystringRendering quality. Higher quality adds detail at higher latency and cost.
डिफ़ॉल्ट: "high"
संभावित मान: "low", "medium", "high"
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:2", "2: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.6-flare/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"url": "https://static.sandbase.ai/examples/0de9d081-6109-4bf2-908c-fce8cad00373/output/c277c298-0c00-42d1-896e-18a3e2994809.png"
}
]