Seedance video generation guide

Advanced Seedance parameters for first and last frames, reference videos and images, audio generation, Draft mode, and reproducibility with a seed.

POST /v1/videos/generations

Auth: {'type': 'bearer', 'prefix': 'sk-', 'description': 'Pass your API key in the `Authorization: Bearer sk-xxx` header.'}

## Complete parameter reference for the Seedance series BytePlus-native video generation — **BytePlus native usage**, consistent with official documentation 100% > ✦ **Protocol Transparency**: Our endpoint directly transmits the original BytePlus body + returns the response unchanged to the client, without modifying 0 field or performing 0 protocol conversion. All field semantics / default values / error codes are referenced from the [BytePlus official documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680). [Seedance 2.5 (latest version) official documentation 🚀](https://docs.byteplus.com/en/docs/ModelArk/2607688) [Seedance 2.0 official documentation 🚀](https://docs.byteplus.com/en/docs/ModelArk/2291680) ## Model matrix Video duration uniformly supports 4-15 seconds. Actual limits vary slightly by model (exceeds upstream 400): | Model | Typical use cases | Resolution | Audio | Draft | V2V | |---|---|---|---|---|---| | `dreamina-seedance-2-0-260128` | Top quality + Video continuation | 480 / 720 / 1080p | ✅ | ❌ | ✅ | | `dreamina-seedance-2-0-fast-260128` | Fast generation | 480 / 720p | ✅ | ❌ | ❌ | | `dreamina-seedance-2-0-mini-260615` | Lightweight and economical | 480 / 720p | ✅ | ❌ | ✅ | | `seedance-1-5-pro-251215` | Draft preview + refinement | 480 / 720 / 1080p | ✅ | ✅ | ❌ | | `seedance-1-0-pro-250528` | Flagship balance | 480 / 720 / 1080p | ❌ | ❌ | ❌ | | `seedance-1-0-pro-fast-251015` | Economical and fast | 480 / 720p | ❌ | ❌ | ❌ | Specific duration limits / supported ratios / audio bitrate parameters for each model see [BytePlus Official Documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680). ## Input method — content[] array BytePlus native `content` array supports 5 types of block, flexible combinations to achieve T2V / I2V / V2V / A2V / Draft: ```json "content": [ { "type": "text", "text": "一只猫在海边奔跑, 慢镜头, 黄昏光" }, { "type": "image_url", "image_url": { "url": "https://...", "role": "first_frame" } }, { "type": "image_url", "image_url": { "url": "https://...", "role": "last_frame" } }, { "type": "video_url", "video_url": { "url": "https://...", "role": "reference_video" } }, { "type": "audio_url", "audio_url": { "url": "https://..." } }, { "type": "draft_task","draft_task":{ "task_id": "gt_xxx" } } ] ``` | Block | Usage | Applicable models | |---|---|---| | `text` | Text prompt (required for T2V) | All models | | `image_url` role=`first_frame` / `last_frame` / `reference_image` | Image-to-video / first and last frames / reference image | Supported across all models | | `video_url` role=`reference_video` | V2V video continuation | Seedance 2.0 | | `audio_url` | A2V audio-to-video | Seedance 2.0 | | `draft_task` task_id | Draft continuation (based on previous task) | Seedance 1.5 Pro | ## Asynchronous call flow ``` 1. POST /v1/videos/generations → 立即返 { id: "gt_xxx", status: "processing" } 2. GET /v1/videos/generations/{id} → 轮询直到 status=succeeded 3. response.content[].video_url → 视频 URL (BytePlus 上游签名 URL) ``` ## Detailed field descriptions (aligned with BytePlus official documentation) The request body field table below is extracted from the core fields in the official documentation. **Complete field list / boundary conditions / error code list should be referenced from [BytePlus ModelArk Official Documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680)**.

Request body

modelstringrequiredSeedance model ID. All 5 variants: - dreamina-seedance-2.5 (latest 🚀) - dreamina-seedance-2-0-260128 (premium, supports V2V/A2V) - dreamina-seedance-2-0-fast-260128 (fast) - seedance-1-5-pro-251215 (Draft preview) - seedance-1-0-pro-250528 (premium balance) - seedance-1-0-pro-fast-251015 (economy fast) - dreamina-seedance-2-0-mini-260615 (lightweight economy, supports V2V)
contentarrayBytePlus native input array (recommended primary usage). 5 types (note that `role` and `type` are at the same level and should be placed outside the content item, not inside `image_url`/`video_url` subobjects): - text: `{ type:"text", text:"..." }` text prompt - image_url: `{ type:"image_url", image_url:{ url }, role:"first_frame"|"last_frame"|"reference_image" }` image-to-video - video_url: `{ type:"video_url", video_url:{ url }, role:"reference_video" }` video continuation (Seedance 2.0) - audio_url: `{ type:"audio_url", audio_url:{ url } }` Audio-to-Video (Seedance 2.0 A2V) - draft_task: `{ type:"draft_task", draft_task:{ task_id } }` Draft Continuation (Seedance 1.5 Pro). If not provided, the endpoint will use.
durationintegerVideo duration in seconds. The shared range is 4-15s, and individual models may have different upper limits. Values outside a model’s range return 400. See the [official BytePlus documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680).
resolutionstringResolution
ratiostringBytePlus native aspect ratio
generate_audiobooleanGenerate synchronized audio (BytePlus native field). Only supported by Seedance 2.0 / 2.0 Fast / 1.5 Pro
draftbooleanDraft Quick Preview Mode (BytePlus native field). Only supported by Seedance 1.5 Pro. After enabling, costs are reduced by ~30%, and a rough cut is generated for parameter validation
seedintegerRandom seed (0~2^32-1), fixed seeds allow for reproducible similar videos when paired with the same prompt
camera_fixedbooleanLens Lock (no panning), suitable for static subject scenes.
watermarkbooleanAdd platform watermark (default false)
return_last_framebooleanReturn the last frame image URL (used as the first frame for the next continuation)
framesintegerFrame count (BytePlus advanced parameter; usually auto-calculated from duration, no need to manually specify)
callback_urlstringBytePlus task final state callback URL. When the task succeeds or fails, BytePlus will **directly** POST to this URL (bypassing platform webhook). Customers must use HTTPS domain and handle signature verification themselves. See [BytePlus Official Documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680)
execution_expires_afterintegerTask expiration time (in seconds). Default 172800 (48 hours, aligned with BytePlus limit). After expiration, the task is automatically expired and the final state can still be queried normally
safety_identifierstringCustomer identifier (similar to OpenAI `user` field), used for content review backtrace in BytePlus. Recommended to pass the hash of internal user ID. Does not count toward billing and is for audit purposes only
prioritystringTask priority. BytePlus advanced parameter. Default is standard queue. See [Byte+ Official Documentation](https://docs.byteplus.com/en/docs/ModelArk/2291680)
waitbooleantrue=blocking mode (longest 60s for synchronous result), false=asynchronous immediate return task_id (recommended)

Responses

Example

curl -X POST https://api.router.ai/v1/videos/generations \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-0-260128",
    "content": [
      { "type": "text", "text": "@Image1, @Video1, 参考剧情和动作, 把人物换成猫" },
      { "type": "image_url", "image_url": { "url": "https://example.com/cat.jpg" }, "role": "reference_image" },
      { "type": "video_url", "video_url": { "url": "https://example.com/clip.mp4" }, "role": "reference_video" }
    ],
    "ratio": "adaptive",
    "duration": 10,
    "resolution": "720p",
    "generate_audio": true
  }'

## Error handling | HTTP status code | Error type | Description | |---|---|---| | 400 | `InvalidParameter` | Parameter error | | 400 | `InvalidParameter.MissingRequired` | Missing required fields (e.g. prompt / model / content[]) | | 400 | `InvalidParameter.NotInEnum` | Invalid enum value (resolution / aspect_ratio / role, etc.) | | 400 | `InvalidParameter.UnsupportedImageFormat` | Unsupported image format | | 400 | `InvalidParameter.UnsupportedVideoFormat` | Unsupported video format | | 400 | `InvalidParameter.UnsupportedAudioFormat` | Unsupported audio format | | 400 | `InvalidParameter.ImageSizeTooLarge` | Image volume exceeds upstream single-file size limit | | 400 | `InvalidParameter.VideoSizeTooLarge` | Input video volume exceeds limit | | 400 | `InvalidParameter.VideoDurationTooLong` | Input video duration exceeds upper limit | | 400 | `InvalidParameter.PromptTooLong` | Prompt character count exceeds model limit | | 400 | `InvalidParameter.UrlNotAccessible` | Upstream download of client-provided image_url/video_url fails | | 400 | `InvalidParameter.UrlInvalid` | Invalid URL format (not http(s) / character error) | | 400 | `InvalidParameter.AspectRatioMismatch` | aspect_ratio does not match the aspect ratio of input image | | 400 | `InvalidParameter.ResolutionNotSupported` | The model does not support specified resolution | | 400 | `InvalidParameter.DurationOutOfRange` | Duration exceeds model-supported range | | 400 | `InvalidParameter.ContentEmpty` | Prompt / content[] all empty | | 400 | `InvalidParameter.UnsupportedRole` | Invalid content[].role | | 400 | `InvalidParameter.DataInspectionFailed` | Input data specification check failed (different from content review dimension) | | 400 | `DataInspectionFailed` | Same as above, no prefix variants | | 400 | `InputImageSensitiveContentDetected` | Input image contains sensitive content (main category) | | 400 | `InputTextSensitiveContentDetected` | Prompt contains sensitive content (main category, subcategory same as Image) | | 400 | `InputVideoSensitiveContentDetected` | Input video contains sensitive content | | 400 | `InputAudioSensitiveContentDetected` | Input audio contains sensitive content | | 400 | `invalid_request_error` | Platform parameter validation failed (model type mismatch / missing required fields, etc.) | | 401 | `unauthorized` | Invalid or missing. Check Bearer sk-xxx header | | 402 | `insufficient_balance` | Insufficient balance. Top up and retry | | 403 | `permission_denied` | Model not authorized / Token banned / Token expired | | 404 | `model_not_found` | The model name is misspelled or the model has been removed. | | 404 | `ResourceNotFound` | Task ID does not exist or has been cleaned after exceeding BytePlus 7-8 day retention period | | 409 | `idempotency_conflict` | Request submitted repeatedly in a short time. Wait a few seconds and retry or modify parameters | | 429 | `rate_limit_exceeded` | RPM/TPM rate limited. See `Retry-After` header for backoff strategy | | 429 | `RateLimitExceeded` | Upstream rate limiting | | 429 | `Throttling` | Upstream rate limiting, same as RateLimitExceeded | | 429 | `ConcurrencyExceeded` | Concurrent requests per moment exceed max_concurrent. Reduce concurrency | | 500 | `internal_error` | Platform service error | | 500 | `InternalError` / `InternalServerError` | Upstream internal error, retry with same strategy as above | | 502 | `service_unavailable` | Upstream channel completely unavailable | | 502 | `BadGateway` | Upstream gateway error | | 503 | `ServiceUnavailable` | Upstream service temporarily unreachable | | 504 | `RequestTimeout` / `ModelTimeoutException` | Upstream inference timeout |

API reference