RelayDanceRelayDance
HomeModelsPricingDocsGuides
Get API Key →

Docs / Video Generation

Video Generation

RelayDance generates video asynchronously: you submit a task, then poll it until it finishes, or set a webhook callback and never poll at all. Two HTTP calls (or one, with a webhook) take you from prompt to finished mp4.

Per-model pricing, limits and quick starts: Seedance 2.5 API and Seedance 2.0 API.

#The task flow

  1. Submit: POST /v1/video/generations returns { "task_id": "...", "status": "queued" } immediately.
  2. Poll: GET /v1/videos/{task_id} until status is completed (metadata.url holds the clip) or failed.
  3. Or webhook: set metadata.callback_url at submit time and the final task state is POSTed to your URL when the task finishes.

#Submit a task

terminalbash
curl https://relaydance.com/v1/video/generations \
  -H "Authorization: Bearer $RELAYDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-2-0-1080p",
    "prompt": "A dancer spins in golden hour light, cinematic",
    "seconds": "10",
    "metadata": {
      "ratio": "16:9",
      "resolution": "1080p",
      "generate_audio": true,
      "callback_url": "https://your-server.example.com/webhook"
    }
  }'
response.jsonjson
{
  "id": "task_abc123",
  "task_id": "task_abc123",
  "object": "video",
  "model": "doubao-seedance-2-0-1080p",
  "status": "queued",
  "progress": 0,
  "created_at": 1794682482
}

Request parameters

ParameterTypeDescription
modelstringVideo model ID (see the list below)
promptstringText description of the clip. With reference images, cite them as @image1 to @imageN
secondsstringClip length in seconds, as a string (e.g. "5", "10"); maximum depends on the model
metadataobjectVendor parameters: everything model-specific goes in here

metadata fields

FieldTypeDescription
ratiostringAspect ratio, e.g. "16:9", "9:16", "1:1"
resolutionstring"480p" | "720p" | "1080p" | "4k" (model-dependent; native 4K is Seedance 2.0 Pro only)
generate_audiobooleanGenerate a soundtrack (supported on Seedance 2.0 models)
callback_urlstringWebhook URL: final task state is POSTed here when the task finishes
contentarrayReference media entries (images, videos, audio), see below
callback_url always goes inside metadata, never at the top level of the request body.

#Poll the task

terminalbash
curl https://relaydance.com/v1/videos/task_abc123 \
  -H "Authorization: Bearer $RELAYDANCE_API_KEY"
response.jsonjson
{
  "id": "task_abc123",
  "object": "video",
  "model": "doubao-seedance-2-0-1080p",
  "status": "completed",
  "progress": 100,
  "created_at": 1794682482,
  "completed_at": 1794682613,
  "metadata": { "url": "https://...mp4" }
}
StatusMeaning
queuedTask accepted and queued
in_progressGeneration in progress; progress counts up to 100
completedDone: download the clip from metadata.url
failedGeneration failed, the reason is in error.message; failed tasks are not billed

#Webhook callback

If you set metadata.callback_url when submitting, polling becomes unnecessary: when the task reaches a final state, RelayDance POSTs the same task JSON shown above to your URL, with retries on delivery failure.

Webhooks are the recommended pattern for production: no polling loops, no wasted requests, and your server reacts the moment a clip is ready.

#Reference media and @imageN

Reference media guides the generation: keep a product faithful, reuse a character, match a motion or a soundtrack. Pass entries in metadata.content[]:

content.jsonjson
{
  "model": "doubao-seedance-2-0-720p",
  "prompt": "@image1 slowly turns its head toward the camera, soft studio light",
  "seconds": "5",
  "metadata": {
    "ratio": "16:9",
    "resolution": "720p",
    "content": [
      {
        "type": "image_url",
        "image_url": { "url": "https://example.com/cat.jpg" },
        "role": "reference_image"
      }
    ]
  }
}
typePayload fieldroleLimit
image_urlimage_url.urlreference_imageUp to 9 images per request
video_urlvideo_url.urlreference_videoUp to 3 videos per request
audio_urlaudio_url.urlreference_audioUp to 3 audio tracks per request

In the prompt, cite reference images as @image1 to @imageN following their order in content[]: @image1 is the first entry, @image2 the second, and so on.

Reference images are mutually exclusive with first/last-frame mode: use one or the other in a single request. Local files can be hosted via Upload Files first.

#Video models

Model IDFamilyNotes
doubao-seedance-2-5-1080pSeedance 2.5Newest flagship, 1080p output (added 2026-10-10)
doubao-seedance-2-5-720pSeedance 2.5Newest flagship: up to 30s, up to 30 reference images
doubao-seedance-2-5-480pSeedance 2.5Newest flagship, 480p output
doubao-seedance-2-0-1080pSeedance 2.0Flagship quality, 1080p output
doubao-seedance-2-0-720pSeedance 2.0720p output
doubao-seedance-2-0-fast-260128Seedance 2.0Faster generation
doubao-seedance-2-0-720pSeedance 1.5Generated audio included
seedance-1-5-pro-no-audioSeedance 1.5Silent output
minimax-h3-768pMiniMax H3Native stereo audio, 768P, 4 to 15s, billed per second
minimax-h3-2kMiniMax H3Native stereo audio, 2K, 4 to 15s, billed per second
wan-3.0-uncensored-1080pWan 3.01080p, 2 to 15s, native stereo audio, billed per second
wan-3.0-uncensored-720pWan 3.0720p, 2 to 15s, text-to-video or one first-frame image
wan-3.0-uncensored-480pWan 3.0480p, 2 to 15s, lowest cost
kling-v4KlingKling 4.0, 720p, 3 to 30s, native audio, optional reference video (1.2 times the price), billed per second
kling-v4-proKlingKling 4.0, 1080p tier, native audio, optional reference video (1.2 times the price)
kling-v3-omniKlingKling 3.0 Omni, 720p, 3 to 15s, first-frame image optional, billed per second
kling-v3-omni-proKlingKling 3.0 Omni, 1080p tier
kling-v3KlingKling 3.0, 720p, 3 to 15s
kling-v3-proKlingKling 3.0, 1080p tier
kling-v2-6KlingKling 2.6, 720p, 5 or 10s, lowest cost
kling-v2-6-proKlingKling 2.6, 1080p tier
grok-video-1.5Grok VideoTemporarily unavailable; image-to-video only, 720p, 6 to 15s
grok-image-videoGrok VideoTemporarily unavailable; lighter image-to-video tier, 720p
happyhorse-1.0-t2vHappyHorseText-to-video
happyhorse-1.0-i2vHappyHorseImage-to-video
happyhorse-1.0-r2vHappyHorseReference-to-video
happyhorse-1.0-video-editHappyHorseVideo editing

Seedance 2.5 is the newest flagship: clips up to 30 seconds and up to 30 reference images, at 480p, 720p or 1080p. Seedance 2.0 covers 480p, 720p, 1080p and native 4K, plus Fast and Mini variants. MiniMax H3 generates native stereo audio with every clip (768P or 2K, 4 to 15 seconds, billed per second). Wan 3.0 also returns native stereo audio, at 480p, 720p or 1080p for 2 to 15 seconds, billed per second. Supported durations, ratios and resolutions vary by model; see the Models page for per-model details and pricing.

Tasks start immediately with no queue, no BytePlus account or KYC is required, and face and portrait generation is supported. RelayDance also exposes special SKUs that are not available on the official platform. Failed requests are not billed.
Already have a clip and want 4K without regenerating from scratch? Super-resolution upscales an existing clip to native 4K with a second, separate API call. The console's video generation screen can trigger this automatically right after a successful generation.

#Next steps

Related guides