Docs / image / Seedream 5.0 Pro Text to Image
Seedream 5.0 Pro Text to Image online
ByteDance's high-precision text-to-image model. Dense detail, infographics, and accurate small text rendering.
Rp Mulai Rp570 / image
Rp1.210 −52.9%
seedream/5-pro-text-to-image 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://run.getcore.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/5-pro-text-to-image",
"input": {
"prompt": "Create a stylish lifestyle photo of a young woman wearing a soft beige oversized sweatshirt. The words “Seedream 5.0 Pro API Coming” are clearly printed on the front of the sweatshirt in bold clean typography, large and easy to read. She stands near a bright window in a modern apartment, soft daylight, warm neutral interior, natural makeup, loose hair, premium casual fashion photography, realistic fabric folds. No other readable text, no logo, no watermark",
"quality": "basic",
"aspect_ratio": "1:1",
"output_format": "png"
}
}'const res = await fetch('https://run.getcore.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-pro-text-to-image",
"input": {
"prompt": "Create a stylish lifestyle photo of a young woman wearing a soft beige oversized sweatshirt. The words “Seedream 5.0 Pro API Coming” are clearly printed on the front of the sweatshirt in bold clean typography, large and easy to read. She stands near a bright window in a modern apartment, soft daylight, warm neutral interior, natural makeup, loose hair, premium casual fashion photography, realistic fabric folds. No other readable text, no logo, no watermark",
"quality": "basic",
"aspect_ratio": "1:1",
"output_format": "png"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://run.getcore.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "seedream/5-pro-text-to-image",
"input": {
"prompt": "Create a stylish lifestyle photo of a young woman wearing a soft beige oversized sweatshirt. The words “Seedream 5.0 Pro API Coming” are clearly printed on the front of the sweatshirt in bold clean typography, large and easy to read. She stands near a bright window in a modern apartment, soft daylight, warm neutral interior, natural makeup, loose hair, premium casual fashion photography, realistic fabric folds. No other readable text, no logo, no watermark",
"quality": "basic",
"aspect_ratio": "1:1",
"output_format": "png"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
prompt |
string | Yes | A text description of the image you want to generate (max 5000 chars) | Create a stylish lifestyle photo of a young wo |
quality |
string | Yes | Basic outputs 1K images, while High outputs 2K images. Opsi: basic high |
basic |
aspect_ratio |
string | Yes | Width-height ratio of the image, determining its visual form. Opsi: 1:1 4:3 3:4 16:9 9:16 2:3 3:2 21:9 |
1:1 |
nsfw_checker |
boolean | No | A configurable parameter. Defaults to true in the Playground. | true |
output_format |
string | No | Format of the output image Opsi: png jpeg |
png |
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-pro-text-to-image",
"price": {
"currency": "IDR",
"estimated": 570,
"reserved": 570,
"final": 570
},
"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.
