Seedance Video Generation
Seedance 2.0 video generation and asset library API reference.
Base URL & Authentication
All requests use the unified Base URL with your API key in the Authorization header.
Supported Models
The following Seedance 2.0 models are available via the video generation API:
Video Generation API
Video generation is a two-step process: submit a task and poll for results. Via the gateway, Seedance parameters go in metadata; prompt is auto-converted to a content text item.
Request Parameters
Via the OneKeyModel gateway, place parameters in metadata except model and prompt.
The gateway appends prompt as a type=text item in content. If metadata.content is provided, prompt is still appended as text.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name. Supports seedance2_0, seedance2_0_fast, seedance2_0_mini |
| prompt | string | Yes | Text prompt. Gateway auto-converts to type=text in content |
| metadata.content | array | No | Input content array for image, video, and audio assets |
| metadata.generate_audio | boolean | No | Whether to generate audio |
| metadata.bitrate_mode | string | No | Bitrate mode, e.g. standard, high |
| metadata.resolution | string | No | Output resolution, e.g. 480p, 720p, 1080p, 4k. Model-dependent |
| metadata.ratio | string | No | Aspect ratio. Common: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| metadata.duration | integer | No | Video duration, typically 4–15 seconds |
| metadata.watermark | boolean | No | Whether to include watermark |
content Array Elements
content is an array for image, video, and audio assets. Use asset:// URLs for library assets.
// Image
{ "type": "image_url", "image_url": { "url": "https://example.com/image.png" }, "role": "reference_image" }
// Video
{ "type": "video_url", "video_url": { "url": "https://example.com/video.mp4" }, "role": "reference_video" }
// Audio
{ "type": "audio_url", "audio_url": { "url": "https://example.com/audio.mp3" }, "role": "reference_audio" }
// Asset library
{ "type": "image_url", "image_url": { "url": "asset://Asset-2026xxxx" }, "role": "reference_image" }Common role Values
| role | Description |
|---|---|
| first_frame | First frame image |
| last_frame | Last frame image |
| reference_image | Reference image |
| reference_video | Reference video |
| reference_audio | Reference audio |
Task Status
| status | Description |
|---|---|
| QUEUED | Queued or submitted |
| IN_PROGRESS | In progress |
| SUCCESS | Succeeded |
| FAILURE | Failed |
Asset Library API
Unified endpoint with Action parameter. Version is optional, defaults to 2024-01-01.
Common Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Action | query | Yes | Asset operation name (query). Lowercase action also supported |
| Version | query | No | OpenAPI version, default 2024-01-01. Lowercase version also supported |
| ProjectName | body | No | Ark project name, optional (body) |
Supported Actions
Asset Status
| Status | Description |
|---|---|
| Active | Ready for video generation |
| Processing | Preprocessing, not yet usable |
| Failed | Processing failed |
Also supports GetAssetGroup, UpdateAssetGroup, UpdateAsset, DeleteAsset, DeleteAssetGroup.
Recommended Workflow
Typical flow combining asset library and video generation:
- 1. Create an asset group (CreateAssetGroup)
- 2. Upload assets (CreateAsset), wait for Active status, obtain Asset ID
- 3. Submit video task and poll until the final video URL is available