Seedance 2.0 Fast API-integratie
Gebruik Seedance 2.0 Fast via Rivya Public API v1 met model-id seedance-2-fast, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.
seedance-2-fast
text, file
Vereist voor referentiemodi
per_input_and_output_second · 480p_with_video=6.8 · 480p_without_video=11.7 · 720p_with_video=15 · 720p_without_video=24.8 · ⌈total⌉
Video
METERED
20000 tekens
Requestcontract
Stuur de model-id op topniveau. Modelspecifieke controles horen in params.
| Key | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| model | string | Ja | seedance-2-fast | Gebruik de API-model-id seedance-2-fast. |
| prompt | string | Ja | - | Maximaal 20000 tekens voor dit model. |
| params | object | Nee | - | Modelspecifiek parameterobject. Gebruik de rijen hieronder voor toegestane keys. |
| client_request_id | string | Nee | - | Optionele client-side id voor requesttracing in je systeem. |
Modelparameters
| Key | Type | Vereist | Standaard | Bereik | Opties | Beschrijving |
|---|---|---|---|---|---|---|
| seedance_scene | select | Nee | text | - | text, frames, reference | Selecteert welk Seedance 2-pad wordt uitgevoerd: pure tekst-naar-video, sturing via eerste frame / eerste-laatste-frame of multimodale referentiegeneratie. |
| resolution | select | Nee | 720p | - | 480p, 720p | Resolutie |
| aspect_ratio | select | Nee | 16:9 | - | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive | Beeldverhouding |
| duration | number | Nee | 5 | min 4 / max 15 | - | Duur |
| generate_audio | select | Nee | true | - | true, false | Audio genereren |
| return_last_frame | select | Nee | false | - | false, true | Geeft ook het eindframe terug als stilstaand beeld, handig voor covers, vervolgruns of latere bewerking. |
| web_search | select | Nee | false | - | false, true | Webzoekfunctie |
| nsfw_checker | select | Nee | false | - | false, true | NSFW-checker |
Uploadbeleid
Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.
Multimodale referentie: Frames: 1–2 signed images. Reference: up to 9 JPEG/PNG/WebP/BMP/TIFF/GIF images under 30 MB each, 3 MP4/MOV videos of 2–15 seconds under 50 MB each, and 3 MP3/WAV audio clips of 2–15 seconds under 15 MB each. Video and audio each have a separate 15-second total limit.
15
image, video, audio
Video- en audioreferenties moeten durationToken uit /api/v1/files bevatten wanneer duurverificatie vereist is.
| kind | Max. grootte | MIME-types |
|---|---|---|
| image | 30 MB | image/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff |
| video | 50 MB | video/mp4, video/quicktime |
| audio | 15 MB | audio/mpeg, audio/wav, audio/x-wav |
Minimale request
{
"model": "seedance-2-fast",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "text",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false",
"nsfw_checker": "false"
}
}Request met referentiebestand
{
"model": "seedance-2-fast",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "reference",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false",
"nsfw_checker": "false",
"seedance_reference_videos": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_from_files_api",
"sizeBytes": 8388608,
"mimeType": "video/mp4"
}
],
"videoMetadata": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"token": "video_metadata_token_from_files_api",
"sizeBytes": 8388608
}
]
}
}Create-response
Het create-endpoint geeft een publieke taak-id terug. Poll het statusendpoint totdat de taak slaagt of mislukt.
{
"id": "task_seedance_2_fast_example",
"status": "queued",
"model": "seedance-2-fast",
"reserved_credits": 124,
"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
}Veelvoorkomende fouten
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Sommige modi vereisen referentie-uploads via Files API.
