imagesarraywajib
The URLs of the images to use for image-to-image generation or image editing.
openai/gpt-image-2.6-sunburst/editGPT Image 2.6 Sunburst Edit prioritizes precision and consistency across successive edits for complex image editing workflows.
Coba model ini
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/input/fb945b36-6bf2-41c8-abd4-9b3be9279570.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/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/789202c7-4d63-478e-975e-cba99f1718b3.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d6dd73cb-70d8-4cff-ba22-1d3c0e88638a.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d619ca4a-c2d5-45b5-af16-4ade3898330e.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/caedb740-34aa-4950-94c1-1cf2531236cb.png"
],
"output_format": "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"
}GPT Image 2.6 Sunburst edit: precise edits and multi-image composition that stay consistent across rounds of revision. Send images with an instruction; untouched areas, faces, and text stay as they were.
| 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-flare/edit, openai/gpt-image-2.6-sunburst, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst.
Mulai membangun
Kirim model ini melalui 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-sunburst/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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
imagesarraywajibThe URLs of the images to use for image-to-image generation or image editing.
promptstringwajibThe text prompt to generate an image from.
Default: "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.
Default: "high"
Nilai yang mungkin: "low", "medium", "high"
resolutionstringThe resolution of the generated image. Leave unset to preserve the provider's standard dimensions.
Nilai yang mungkin: "1k", "2k", "4k"
aspect_ratiostringThe aspect ratio of the generated image.
Nilai yang mungkin: "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.
Default: "png"
Nilai yang mungkin: "jpeg", "png", "webp"
{
"model": "openai/gpt-image-2.6-sunburst/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 yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"url": "https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/output/19700ba3-20a7-4941-969b-48014312c73a.png"
}
]