English
  • 中文
  • English
English
  • 中文
  • English
官网
服务状态
English
  • 中文
  • English
  1. Videos
  • Quickstart & Conventions
  • Images
    • GPT Image 2 / 2.5 / 2.6 Generation & Editing
    • Nano Banana Image Generation
    • Gemini Native Sync Image Generation
    • Seedream 5.0 Pro / 5.5 Image Generation
    • Midjourney Image Generation
  • Videos
    • Seedance 2 Video Generation
    • Omni Video Generation
    • Seedance 2.5 Video Generation
    • MiniMax H3 Video Generation
    • WAN 3.0 Video Generation
    • Muse Video Generation
    • Seedance Asset Registration
    • Gemini Omni 1.2 Flash Video Generation
    • Seedance Volcengine Native Video Generation
    • MAGI-2 Video Generation
  • Text Models
    • Claude Desktop (CC Switch) Setup Guide
    • Codex in ChatGPT Desktop Setup Guide
    • Gemini Text Models (Native Format)
    • Text & Chat APIs (OpenAI / Claude)
  • Audio
    • Gemini Text-to-Speech (TTS)
  1. Videos

Seedance 2 Video Generation

Create text-to-video, general multi-asset reference video, strict first-frame video, and strict first-and-last-frame video tasks with Seedance 2. Video generation runs asynchronously: create a task, save id, poll task status, and read the output video URL from metadata.url once completed.

Quickstart#

Authenticate all requests with a Bearer API key:
Send a JSON request body to create a task, then substitute id from the creation response into {task_id} when polling. Models on this page are visible to API keys in the Seedance 2.0 [按秒] or auto token groups; check GET /v1/models for the authoritative list available to your account.
Default aspect ratio: Seedance 2 defaults to 16:9 when aspect_ratio is omitted, whereas Seedance 2.5 defaults to 9:16. Specify aspect_ratio explicitly when migrating between versions.

Supported Models#

ModelDescriptionSupported Resolutions
seedance-2-0-miniMini variant sharing the exact request, asset, and async task contract of Seedance 2.480p, 720p
seedance-2-0-fastFaster generation speed suited for previews and batch production.480p, 720p
seedance-2-0Prioritizes visual quality, fine detail, and temporal stability.480p, 720p, 1080p, 4K

Request Parameters#

The platform automatically determines the generation mode from the contents, media types, and roles in ref.
ParameterTypeRequiredDefaultDescription
modelstringYes—seedance-2-0-mini, seedance-2-0-fast, or seedance-2-0.
promptstringYes—Video prompt. Reference general assets using literal @图片N, @视频N, and @音频N tags.
durationintegerYes—Output video duration; must be an integer from 4 to 15 seconds (4–15).
resolutionstringNo720pMini and Fast support 480p and 720p; seedance-2-0 additionally supports 1080p and 4K.
aspect_ratiostringNo16:9Supports 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
refobject[]By scenario—Unified reference asset array; omit for text-to-video.
Actual durations of reference video and audio clips are determined from the media files themselves.

ref Object#

FieldTypeRequiredDescription
urlstringYesPublicly readable direct HTTPS link to the media file (no login required).
typestringYesimage, video, or audio.
rolestringNoOptional for general reference assets; set first_frame for strict first frame or last_frame for strict last frame.
Mapping between type and role:
typeAllowed role ValuesWhen role Is Omitted
imagereference_image, first_frame, last_frameTreated as reference_image.
videoreference_videoTreated as reference_video.
audioreference_audioTreated as reference_audio.

Generation Modes & Combination Rules#

ref ContentsGeneration Mode
Omit refText-to-video
Only general reference_* assetsGeneral image or multi-asset reference video
One role=first_frame imageStrict first-frame video
One first_frame image and one last_frame imageStrict first-and-last-frame video
first_frame can be submitted alone; last_frame must be submitted together with first_frame.
Frame-control assets must have type set to image, with at most one first_frame and one last_frame in any array order.
Strict first-frame or first-and-last-frame assets cannot be mixed with general reference images, videos, or audio.
General reference requests must contain at least one image or one video; a video can serve as the sole reference, whereas audio cannot be the sole reference.
Placing a general image first in ref does not make it a strict first frame—you must explicitly set role=first_frame.

Asset Numbering#

General reference assets are numbered sequentially starting from 1 within each media type in the order they appear in ref: the first image is @图片1, the first video is @视频1, and the first audio clip is @音频1. @图片1, @视频1, and @音频1 (and @图片N, @视频N, @音频N) are literal syntax tokens parsed by the Seedance backend—keep them unchanged in English prompts and do not translate them to @image1, @video1, or @audio1. Asset types and numbers in prompt must match the actual assets in ref; never reference nonexistent indices.
Strict first-frame and first-and-last-frame generation are controlled by role and do not require asset tags in prompt.

Asset Limits#

Media TypeCountFormatsPer-File LimitAdditional Constraints
Image0–9JPEG, PNG, WebP≤ 30 MBWidth and height ≥ 300 px; long edge ≤ 4000 px; aspect ratio 0.4–2.5.
Video0–3MP4, MOV2–15 s, ≤ 50 MBCumulative duration ≤ 15 s; H.264/H.265 and 24–60 FPS recommended.
Audio0–3MP3, WAV2–15 s, ≤ 15 MBCumulative duration ≤ 15 s; cannot be the sole reference.
Total ref count must be 1–15; 9 images, 3 videos, and 3 audio clips represent full capacity rather than minimum requirements. The platform never pads missing items or silently truncates excess assets.
Asset URLs must be publicly accessible direct HTTPS file links: no login, cookies, or custom headers; not web pages, preview pages, or login screens; returning a MIME type matching type; and remaining valid until task completion (avoid short-lived signed URLs near expiration).

Request Examples#

Text-to-Video#

Omit ref for text-to-video:
{
  "model": "seedance-2-0-fast",
  "prompt": "A futuristic city street after rain, neon lights reflecting on the wet pavement, slow dolly-in camera movement",
  "duration": 5,
  "resolution": "720p",
  "aspect_ratio": "16:9"
}

General Mixed-Asset Reference#

Images, videos, and audio clips are numbered independently; neither cumulative reference video duration nor cumulative reference audio duration may exceed 15 seconds.
{
  "model": "seedance-2-0",
  "prompt": "Keep the character's face and outfit consistent with @图片1, follow the motion and camera pacing of @视频1, and match the speaking voice to @音频1.",
  "duration": 10,
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "ref": [
    { "url": "https://example.com/character.png", "type": "image" },
    { "url": "https://example.com/motion-6s.mp4", "type": "video" },
    { "url": "https://example.com/voice-6s.mp3", "type": "audio" }
  ]
}

Strict First and Last Frame#

Pass only first_frame for strict first-frame generation; when passing last_frame, first_frame is also required.
{
  "model": "seedance-2-0",
  "prompt": "Smooth transition from early morning to night as city neon lights illuminate one by one",
  "duration": 8,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "ref": [
    { "url": "https://example.com/morning.png", "type": "image", "role": "first_frame" },
    { "url": "https://example.com/night.png", "type": "image", "role": "last_frame" }
  ]
}

Video-Only Reference#

A video can be submitted alone as a general reference asset:
{
  "model": "seedance-2-0-fast",
  "prompt": "Generate a new video following the motion and camera pacing of @视频1",
  "duration": 4,
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "ref": [
    { "url": "https://example.com/source-video.mp4", "type": "video" }
  ]
}

Async Responses#

Create Task#

A successful creation response only indicates that the task has entered the queue. Save id and use it to poll task status:
{
  "id": "task_xxxxxxxxxxxxxxxxxxxxxxxx",
  "object": "video",
  "model": "seedance-2-0",
  "status": "queued",
  "progress": 0,
  "created_at": 1780682136
}

Poll Task Status#

Poll every 5–10 seconds:
Clients should rely only on the public status values below:
StatusDescription
queuedTask is queued for processing.
in_progressVideo is currently being generated.
completedVideo generation succeeded.
failedTask failed; inspect error.
Treat any status value outside the table above as non-terminal and continue polling.
Example completed response:
{
  "id": "task_xxxxxxxxxxxxxxxxxxxxxxxx",
  "status": "completed",
  "metadata": {
    "url": "https://example.com/result.mp4"
  },
  "result_url": "https://example.com/result.mp4"
}
Read the generated video URL from metadata.url upon completion; result_url carries the same URL as a fallback. Responses may also include auxiliary fields such as object, model, progress, or created_at whose presence may vary—do not depend on them. Result URLs expire, and expired tasks may omit the result URL on subsequent polls; download or persist the video immediately upon completion.
Example failed response:
{
  "id": "task_xxxxxxxxxxxxxxxxxxxxxxxx",
  "status": "failed",
  "error": {
    "code": "task_failed",
    "message": "Prompt failed content moderation"
  }
}

Error Handling#

Clients should check HTTP status codes, task status, and error.message.
HTTP StatusCommon Causes
400Invalid parameters, duration, resolution, aspect ratio, asset counts, or asset combinations; querying a nonexistent task also returns 400 with code set to task_not_exist
401Missing or invalid API key
403Insufficient balance/quota, or API key lacks permission for the model or token group
429Rate limit exceeded
503Service temporarily unavailable
500 / 502Transient server error
Common validation failures include: missing model, prompt, or duration; unsupported duration, resolution, or aspect ratio; incomplete ref objects; mismatched type and role; invalid first/last frame combinations; mixing general reference assets with strict frame assets; exceeding asset count, file size, dimension, duration, or aspect-ratio limits; submitting audio as the sole reference; referencing nonexistent or mismatched asset tags in prompt; unreachable or mismatched-MIME asset URLs; and prompts or assets triggering content moderation policies.
When an async task fails, status becomes failed with details in error.code and error.message. Do not pass chat completion fields such as messages, temperature, top_p, or stream to /v1/videos.
Modified at 2026-12-04 07:58:01
Previous
Midjourney Image Generation
Next
Omni Video Generation
Built with