Integrasi API Seedream 5.0 Pro
Gunakan Seedream 5.0 Pro melalui Rivya Public API v1 dengan id model seedream-5-pro, input yang didukung, parameter, aturan Files API, kredit, dan contoh response.
seedream-5-pro
text, file
Diperlukan untuk mode referensi
per_image_plus_reference_image · basic=7 · high=14 · additional_input_image=0.5 · ⌈total⌉
Gambar
FIXED
5000 karakter
Kontrak request
Kirim id model di level atas. Kontrol khusus model berada di params.
| Key | Tipe | Wajib | Default | Deskripsi |
|---|---|---|---|---|
| model | string | Ya | seedream-5-pro | Gunakan seedream-5-pro sebagai id model API. |
| prompt | string | Ya | - | Maksimum 5000 karakter untuk model ini. |
| params | object | Tidak | - | Objek parameter khusus model. Gunakan baris di bawah untuk key yang diizinkan. |
| client_request_id | string | Tidak | - | ID sisi klien opsional untuk melacak request di sistem Anda. |
Parameter model
| Key | Tipe | Wajib | Default | Rentang | Opsi | Deskripsi |
|---|---|---|---|---|---|---|
| aspect_ratio | select | Tidak | 1:1 | - | 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9 | Rasio aspek |
| quality | select | Tidak | basic | - | basic, high | Kualitas |
| output_format | select | Tidak | png | - | png, jpeg | Format keluaran |
| nsfw_checker | select | Tidak | false | - | false, true | Aktifkan filter konten opsional pada model. Tidak ada filter otomatis yang dapat menjamin cakupan sepenuhnya. |
Kebijakan unggahan
Unggah file referensi terlebih dahulu, lalu tempatkan URL dan duration token yang dikembalikan ke dalam params.referenceMediaItems.
Gambar referensi: Unggah hingga 10 gambar JPEG, PNG, atau WebP, masing-masing tidak lebih dari 10 MB.
10
image
Referensi video dan audio harus membawa durationToken dari /api/v1/files saat verifikasi durasi diperlukan.
| kind | Ukuran maksimum | Tipe MIME |
|---|---|---|
| image | 10 MB | image/jpeg, image/png, image/webp |
Request minimal
{
"model": "seedream-5-pro",
"prompt": "A clean editorial product image on a soft studio background",
"params": {
"aspect_ratio": "1:1",
"quality": "basic",
"output_format": "png",
"nsfw_checker": "false"
}
}Request file referensi
{
"model": "seedream-5-pro",
"prompt": "A clean editorial product image on a soft studio background",
"params": {
"aspect_ratio": "1:1",
"quality": "basic",
"output_format": "png",
"nsfw_checker": "false",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Response create
Endpoint create mengembalikan public task id. Poll endpoint status sampai tugas berhasil atau gagal.
{
"id": "task_seedream_5_pro_example",
"status": "queued",
"model": "seedream-5-pro",
"reserved_credits": 7,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Error umum
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Beberapa mode membutuhkan unggahan referensi Files API.