Seedance Video Generation API Reference (face)
Overview
This service provides AI video generation with a request/response structure modeled on Volcengine Ark. Three generation modes are supported:
Quick Start
Authentication
All endpoints require your API Key in the request header:
Authorization: Bearer <your API Key>
⚠️ Keep your API Key safe and do not share it with anyone.
Basic Info
| Item | Value |
|---|---|
| Base URL | https://sd.boosterai.cn |
| API base path | /api/v3/contents/generations/tasks |
| Request / response format | application/json |
Billing & Balance
This service uses a prepaid balance model. Make sure your balance is sufficient before submitting tasks.
Billing rules
- Unit: credits.
Task cost = billed duration (seconds) × the model's unit price (credits/second).
Billed duration = generated video duration + total reference video duration × billing coefficient (video_urlitems incontent, probed server-side, each video floored to whole seconds; the coefficient is configured per customer by the admin, default 1 = full price).
Freeze & charge flow
- Freeze on submit: the estimated cost is frozen when a task is submitted.
- Charge on success: credits are actually charged only after the task succeeds.
- Release on failure: if the task fails / is cancelled / times out, the frozen amount is fully released — no charge.
Available balance
available balance = total balance − frozen amount
If your available balance is below the estimated cost at submission, the API returns 402 insufficient_balance and the task is not submitted.
Checking balance & top-up
- Balance: log in to the console with your API Key at https://sd.boosterai.cn/#bill for real-time balance, frozen amount, and consumption details — or use the Balance & Usage API below.
- Top-up: please contact your administrator. Top up in time, otherwise new tasks cannot be submitted.
Available Models
| Model | Resolution | Duration range | Supported ratios |
|---|---|---|---|
seedance-2 | 720p | 4–15 s | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
seedance-2-1080p | 1080p | 4–15 s | 16:9, 9:16, 1:1 |
seedance-2-fast | 720p | 4–15 s | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
seedance-2-mini | 720p | 4–15 s | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
seedance-2.5 | 720p | 4–30 s | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
Resolution is determined by the model and cannot be changed in the request. duration is required (no default) and must be within the model's range. Reference media (image/video/audio) are optional; every model accepts text-only generation (content containing only a text item).
API Reference
1. Submit a Video Generation Task
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model name, see the model list above |
content | array | Yes | Input content, see below; must contain exactly one type=text item as the prompt |
duration | int | Yes | Video duration (seconds), within the model's allowed range |
ratio | string | Yes | Aspect ratio, see the model list above |
Other Volcengine Ark fields (e.g. seed, watermark, generate_audio, return_last_frame, resolution, frames) are not supported by this service; they are ignored without error.
content item types
content is an array; each item is distinguished by type. Four types are supported:
| type | Field | seedance-2 / seedance-2-1080p / seedance-2-fast / seedance-2-mini | seedance-2.5 |
|---|---|---|---|
text | text | Prompt. Exactly one, length ≥ 1 | |
image_url | image_url.url | Up to 9 | Up to 30 |
video_url | video_url.url | Up to 3, total ≤ 15s | Up to 10, each 2–30 s, total ≤ 30s, each ≤ 50MB |
audio_url | audio_url.url | Up to 3, total ≤ 15s | Up to 10, each 2–30 s, total ≤ 30s, each ≤ 15MB |
| Combined image + video + audio limit | Up to 12 | Up to 50 | |
Full request examples
The examples below show multimodal requests with text + image + video + audio and can be run directly. For text-to-video or image-to-video, simply add or remove content items as needed (the text item is required; other reference media are optional).
Multimodal reference (seedance-2-fast, 9:16, 15s):
curl -X POST https://sd.boosterai.cn/api/v3/contents/generations/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-fast",
"content": [
{ "type": "text", "text": "Keep the motion and scene from the video, apply the character style from the image, and sync the pacing to the audio" },
{
"type": "image_url",
"image_url": { "url": "https://example.com/reference.jpg" }
},
{
"type": "video_url",
"video_url": { "url": "https://example.com/source.mp4" }
},
{
"type": "audio_url",
"audio_url": { "url": "https://example.com/beat.mp3" }
}
],
"duration": 15,
"ratio": "9:16"
}'
Multimodal reference (seedance-2.5, 9:16, 30s, more reference media allowed):
curl -X POST https://sd.boosterai.cn/api/v3/contents/generations/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5",
"content": [
{ "type": "text", "text": "Keep the motion and scene from the video, apply the character style from the image, and sync the pacing to the audio" },
{
"type": "image_url",
"image_url": { "url": "https://example.com/reference1.jpg" }
},
{
"type": "image_url",
"image_url": { "url": "https://example.com/reference2.jpg" }
},
{
"type": "video_url",
"video_url": { "url": "https://example.com/source.mp4" }
},
{
"type": "audio_url",
"audio_url": { "url": "https://example.com/beat.mp3" }
}
],
"duration": 30,
"ratio": "9:16"
}'
Response example
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2"
}
HTTP status codes
| Status | Description |
|---|---|
| 200 | Task submitted |
| 400 | Bad request (unknown model, missing prompt, unsupported ratio, duration out of range, pricing not configured, etc.) |
| 401 | Missing or invalid API Key |
| 402 | Insufficient balance (insufficient_balance); contact the administrator to top up |
| 500 | Internal server error |
| 502 | Upstream service error; retry later |
2. Get Task Status
Put the id returned at submission into the path.
Request example
curl https://sd.boosterai.cn/api/v3/contents/generations/tasks/task_01KWBW73D7WCN1PFZN9S1QQCK2 \
-H "Authorization: Bearer YOUR_API_KEY"
Response example (succeeded)
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2",
"model": "seedance-2",
"status": "succeeded",
"created_at": 1748900000,
"updated_at": 1748900120,
"content": {
"video_url": "https://cdn.example.com/output/video.mp4"
},
"duration": 10,
"resolution": "1080p",
"ratio": "16:9"
}
Response fields
| Field | Description |
|---|---|
id | Task ID |
model | Model used at submission |
status | Task status, see below |
created_at / updated_at | Created / updated time, Unix seconds (UTC+8) |
content.video_url | Download URL of the generated video (valid for 24 hours) |
duration | Video duration (seconds) |
resolution | Resolution, e.g. 720p / 1080p |
ratio | Aspect ratio, e.g. 16:9 |
error.message | Error description when failed |
Response example (failed)
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2",
"status": "failed",
"error": {
"message": "Model processing failed, please resubmit"
}
}
Task status
| Status | Description |
|---|---|
queued | Waiting in queue |
running | Generating |
succeeded | Done; video URL available |
failed | Generation failed |
expired | Task timed out |
cancelled | Cancelled |
HTTP status codes
| Status | Description |
|---|---|
| 200 | OK |
| 401 | Invalid API Key |
| 404 | Task not found |
3. List Tasks
Paginated. Returns all tasks under the current API Key, newest first.
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page_num | int | No | 1 | Page number (starts at 1) |
page_size | int | No | 10 | Items per page |
Request example
curl "https://sd.boosterai.cn/api/v3/contents/generations/tasks?page_num=1&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Response example
{
"total": 42,
"items": [
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2",
"model": "seedance-2",
"status": "succeeded",
"created_at": 1748900000,
"updated_at": 1748900120,
"content": {
"video_url": "https://cdn.example.com/output/video.mp4"
},
"duration": 10,
"resolution": "1080p",
"ratio": "16:9"
}
]
}
4. Query Balance & Usage
Returns the account balance, cumulative usage summary, and a paginated usage breakdown for the current API Key in one call. Only reconciliation-relevant fields are returned — suitable for scheduled programmatic polling.
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page_num | int | No | 1 | Usage page number (starts at 1) |
page_size | int | No | 20 | Usage items per page (max 50) |
Request example
curl "https://sd.boosterai.cn/billing/api/balance?page_num=1&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Response example
{
"customer_name": "Example Customer",
"balance": 1000.00,
"frozen_amount": 25.50,
"available_balance": 974.50,
"total_recharge": 5000.00,
"total_tasks_succeeded": 320,
"total_credits_used": 4025.50,
"usage": {
"total": 42,
"page_num": 1,
"page_size": 20,
"items": [
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2",
"model": "seedance-2",
"status": "SUCCEEDED",
"duration": 10,
"credits": 8.47,
"amount": 0.4235,
"billing_status": "SETTLED",
"created_at": "2026-11-17T12:03:27"
}
]
}
}
Response fields
| Field | Description |
|---|---|
balance | Total account balance (credits) |
frozen_amount | Frozen amount (estimated cost of in-flight tasks) |
available_balance | Available balance = balance − frozen_amount; used for submission checks |
total_recharge | Total top-up (credits): cumulative positive recharges; never decreases with consumption |
total_tasks_succeeded | Cumulative succeeded tasks (video + image; failed/refunded not counted) |
total_credits_used | Cumulative credits actually charged (settled tasks only) |
usage.total | Total number of usage records |
usage.items[].credits | Credits actually charged for the task (null when not charged, e.g. failed & refunded / still frozen) |
usage.items[].amount | CNY equivalent of the task's consumption, converted at your exchange rate |
usage.items[].billing_status | Billing status: SETTLED charged / FROZEN frozen / REFUNDED refunded |
usage.items[].duration | Billed duration (seconds), including reference video time weighted by its coefficient |
Error Codes
| Code | HTTP | Meaning | Suggestion |
|---|---|---|---|
invalid_api_key | 401 | API Key invalid or disabled | Check the Authorization header |
invalid_model | 400 | Model does not exist or is disabled | Use a valid model from the model list |
invalid_duration | 400 | Duration out of the model's range | Adjust duration to the allowed range |
invalid_ratio | 400 | Aspect ratio not supported by the model | See "Supported ratios" in the model list |
invalid_request | 400 | Bad request (e.g. missing prompt, multiple text items) | content must contain exactly one non-empty type=text item |
pricing_not_configured | 400 | Pricing not configured for the model | Contact the administrator |
insufficient_balance | 402 | Insufficient balance (available balance < estimated cost) | Top up and retry |
task_not_found | 404 | Task not found | Check the task id and that it belongs to your API Key |
bad_request | 400 | Missing required headers, etc. | Check request headers and body |
not_found | 404 | Unknown path | Check the request URL |
upstream_error | 502 | Upstream service error | Retry later; contact the administrator if it persists |
internal_error | 500 | Internal server error | Retry later; contact the administrator if it persists |