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.6-sunburstGPT Image 2.6 Sunburst prioritizes detail and precision for complex image generation workflows.
ลองใช้โมเดล
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"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": "16:9",
"prompt": "Create a detailed Infographic of the functioning and flow of an automatic coffee machine like a Jura.\nFrom bean basket, to grinding, to scale, water tank, boiler, etc.\nI'd like to understand technically and visually the flow."
}GPT Image 2.6 Sunburst is the detail-first GPT Image 2.6 tier, for complex scenes, dense text, and precise layouts. Three quality levels and 1K to 4K output let you trade cost for detail.
| Field | Type | Default | Notes |
|---|---|---|---|
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 | 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 |
Failed runs are not charged.
low or medium, then rerun at high.Other GPT Image endpoints: openai/gpt-image-2.6-flare, openai/gpt-image-2.6-flare/edit, openai/gpt-image-2.6-sunburst/edit, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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.6-sunburst",
"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 และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
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. 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: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-sunburst",
"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 ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"url": "https://static.sandbase.ai/examples/9accd525-b30d-46b2-8a2c-97f0f5ba398b/output/7ee4fbb8-ab1e-4d17-beff-29ab9e91ec87.png"
}
]