Rivya AI दस्तावेज़
मॉडल API पेज

Seedance 2.0 Fast API इंटीग्रेशन

Rivya Public API v1 के जरिए मॉडल ID seedance-2-fast, समर्थित इनपुट, पैरामीटर, Files API नियम, क्रेडिट और रिस्पॉन्स उदाहरणों के साथ Seedance 2.0 Fast का उपयोग करें।

API से उपलब्धटेक्स्ट या URL तैयार; संदर्भ मोड में Files API का उपयोग होता हैवीडियो
API मॉडल ID

seedance-2-fast

इनपुट

text, file

Files API

संदर्भ मोड के लिए जरूरी

बेस क्रेडिट

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` में रखें।

कुंजीप्रकारजरूरीडिफॉल्टविवरण
modelstringहांseedance-2-fastseedance-2-fast API मॉडल ID का उपयोग करें।
promptstringहां-इस मॉडल के लिए अधिकतम 20000 अक्षर।
paramsobjectनहीं-मॉडल के लिए खास पैरामीटर ऑब्जेक्ट। अनुमत कुंजियों के लिए नीचे दी गई पंक्तियां देखें।
client_request_idstringनहीं-अपने सिस्टम में रिक्वेस्ट ट्रेस करने के लिए वैकल्पिक क्लाइंट-साइड ID।

मॉडल पैरामीटर

कुंजीप्रकारजरूरीडिफॉल्टसीमाविकल्पविवरण
seedance_sceneselectनहींtext-text, frames, referenceकौन सा Seedance 2 path run करना है, यह चुनता है: pure text-to-video, first-frame / first-last-frame guidance, या multimodal reference generation।
resolutionselectनहीं720p-480p, 720pरिजॉल्यूशन
aspect_ratioselectनहीं16:9-1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptiveआस्पेक्ट रेशियो
durationnumberनहीं5min 4 / max 15-अवधि
generate_audioselectनहींtrue-true, falseAudio generate करें
return_last_frameselectनहींfalse-false, trueFinal frame को still image के रूप में भी लौटाता है, जो covers, follow-up runs या later editing के लिए useful है।
web_searchselectनहींfalse-false, trueWeb search नियंत्रण
nsfw_checkerselectनहींfalse-false, trueNSFW 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

`durationToken`

अवधि सत्यापन जरूरी होने पर वीडियो और ऑडियो संदर्भों में /api/v1/files से मिला `durationToken` होना चाहिए।

kindअधिकतम आकारMIME प्रकार
image30 MBimage/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff
video50 MBvideo/mp4, video/quicktime
audio15 MBaudio/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 संदर्भ अपलोड जरूरी हैं।