Docs / image / GPT Image 2.6 Sunburst Image to Image
GPT Image 2.6 Sunburst Image to Image online
GPT Image 2.6 hingga 4K, GIF animasi dan SVG. Ditagih sesuai kredit aktual; sisa reservasi otomatis kembali dan tagihan tidak melebihi batas yang ditampilkan.
Rp Sesuai pemakaian; batas reservasi mulai Rp10.000 / task
⏱ ±10–180 detik perkiraan waktu
gpt-image-2-6/sunburst-image-to-image model id
Up to 4KAnimated GIF 2–16 framesSVGUsage-based billing
1 · Create a task
Kirim permintaan untuk membuat tugas generasi image. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://getrun.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2-6/sunburst-image-to-image",
"input": {
"prompt": "A cinematic scene with natural light and gentle motion.",
"input_urls": [
"https://example.com/reference.jpg"
]
}
}'const res = await fetch('https://getrun.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "gpt-image-2-6/sunburst-image-to-image",
"input": {
"prompt": "A cinematic scene with natural light and gentle motion.",
"input_urls": [
"https://example.com/reference.jpg"
]
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://getrun.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "gpt-image-2-6/sunburst-image-to-image",
"input": {
"prompt": "A cinematic scene with natural light and gentle motion.",
"input_urls": [
"https://example.com/reference.jpg"
]
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
svg |
object | No | — | |
markup |
string | No | — | |
prompt |
string | Yes | (max 32000 chars) | A cinematic scene with natural light and gentl |
quality |
string | No | Opsi: low medium high xhigh max auto |
medium |
mask_url |
string | No | — | |
background |
string | No | Opsi: transparent opaque auto |
auto |
complexity |
string | No | Opsi: low medium high |
high |
input_urls |
array | Yes | https://example.com/reference.jpg |
|
moderation |
string | No | Opsi: auto low |
low |
resolution |
string | No | Opsi: 1K 2K 4K |
1K |
frame_count |
integer | No | Jumlah frame GIF 2–16. Default 9. (min 2, max 16) | 9 |
aspect_ratio |
string | No | Opsi: auto 1:1 3:2 2:3 4:3 3:4 5:4 4:5 16:9 9:16 2:1 1:2 21:9 9:21 3:1 1:3 |
auto |
output_format |
string | No | Opsi: png jpeg webp gif svg |
png |
frame_duration_ms |
integer | No | Durasi setiap frame GIF dalam ms, kelipatan 10. Default 200. (min 20, max 2000) | 200 |
output_compression |
integer | No | (min 0, max 100) | — |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "gpt-image-2-6/sunburst-image-to-image",
"price": {
"currency": "IDR",
"estimated": 10000,
"reserved": 10000,
"final": 10000
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.png"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
image/png, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
