Docs / image / Seedream 5.5 Layer Decomposition
Seedream 5.5 Layer Decomposition online
Pisahkan gambar menjadi gambar dasar dan layer transparan.
Rp Mulai Rp543 / task · tagihan sesuai pemakaian
Rp776 −30%
seedream/5-5-layer-decomposition model id
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": "seedream/5-5-layer-decomposition",
"input": {
"prompt": "A fishing boat at sunrise on Lake Toba.",
"image_url": "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": "seedream/5-5-layer-decomposition",
"input": {
"prompt": "A fishing boat at sunrise on Lake Toba.",
"image_url": "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": "seedream/5-5-layer-decomposition",
"input": {
"prompt": "A fishing boat at sunrise on Lake Toba.",
"image_url": "https://example.com/reference.jpg"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
size |
string | No | Opsi: auto 1K 1.5K 2K |
auto |
prompt |
string | No | (max 2000 chars) | A fishing boat at sunrise on Lake Toba. |
image_url |
string | Yes | https://example.com/reference.jpg |
|
max_images |
integer | No | (min 2, max 100) | 30 |
nsfw_checker |
boolean | No | true |
|
output_format |
string | No | Opsi: png jpeg |
png |
text_recognition |
boolean | No | false |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "seedream/5-5-layer-decomposition",
"price": {
"currency": "IDR",
"estimated": 543,
"reserved": 543,
"final": 543
},
"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.
