Seedance 2.0 Fast API इंटीग्रेशन
Rivya Public API v1 के जरिए मॉडल ID seedance-2-fast, समर्थित इनपुट, पैरामीटर, Files API नियम, क्रेडिट और रिस्पॉन्स उदाहरणों के साथ Seedance 2.0 Fast का उपयोग करें।
seedance-2-fast
text, file
संदर्भ मोड के लिए जरूरी
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⌉
वीडियो
METERED
20000 अक्षर
रिक्वेस्ट संरचना
मॉडल ID को शीर्ष स्तर पर भेजें। मॉडल के लिए खास कंट्रोल `params` में रखें।
| कुंजी | प्रकार | जरूरी | डिफॉल्ट | विवरण |
|---|---|---|---|---|
| model | string | हां | seedance-2-fast | seedance-2-fast API मॉडल ID का उपयोग करें। |
| prompt | string | हां | - | इस मॉडल के लिए अधिकतम 20000 अक्षर। |
| params | object | नहीं | - | मॉडल के लिए खास पैरामीटर ऑब्जेक्ट। अनुमत कुंजियों के लिए नीचे दी गई पंक्तियां देखें। |
| client_request_id | string | नहीं | - | अपने सिस्टम में रिक्वेस्ट ट्रेस करने के लिए वैकल्पिक क्लाइंट-साइड ID। |
मॉडल पैरामीटर
| कुंजी | प्रकार | जरूरी | डिफॉल्ट | सीमा | विकल्प | विवरण |
|---|---|---|---|---|---|---|
| seedance_scene | select | नहीं | text | - | text, frames, reference | कौन सा Seedance 2 path run करना है, यह चुनता है: pure text-to-video, first-frame / first-last-frame guidance, या multimodal reference generation। |
| resolution | select | नहीं | 720p | - | 480p, 720p | रिजॉल्यूशन |
| aspect_ratio | select | नहीं | 16:9 | - | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive | आस्पेक्ट रेशियो |
| duration | number | नहीं | 5 | min 4 / max 15 | - | अवधि |
| generate_audio | select | नहीं | true | - | true, false | Audio generate करें |
| return_last_frame | select | नहीं | false | - | false, true | Final frame को still image के रूप में भी लौटाता है, जो covers, follow-up runs या later editing के लिए useful है। |
| web_search | select | नहीं | false | - | false, true | Web search नियंत्रण |
| nsfw_checker | select | नहीं | false | - | false, true | NSFW checker नियंत्रण |
अपलोड नीति
पहले संदर्भ फाइल अपलोड करें, फिर लौटे हुए URL और `durationToken` को `params.referenceMediaItems` में रखें।
Multimodal reference mode: 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
अवधि सत्यापन जरूरी होने पर वीडियो और ऑडियो संदर्भों में /api/v1/files से मिला `durationToken` होना चाहिए।
| kind | अधिकतम आकार | MIME प्रकार |
|---|---|---|
| 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 |
न्यूनतम रिक्वेस्ट
{
"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"
}
}संदर्भ फाइल रिक्वेस्ट
{
"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
}
]
}
}निर्माण की प्रतिक्रिया
कार्य बनाने वाला एंडपॉइंट सार्वजनिक टास्क ID लौटाता है। टास्क सफल या विफल होने तक स्टेटस एंडपॉइंट पोल करें।
{
"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
}सामान्य त्रुटियां
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
कुछ मोड में Files API संदर्भ अपलोड जरूरी हैं।
