Seedance Video Generation API Reference (Baozhen)
Overview
This page documents the Baozhen edition: a model series focused on high-fidelity output, billed per token (the smallest billing unit of the model). The interface is identical to the "Official" edition: requests use the native Volcengine Ark content[] structure, and media items support the role field (first frame / last frame / reference image / reference video / reference audio).
- Parameters (resolution, ratio, duration, watermark, audio, seed, etc.) are passed through to the upstream model and validated there: invalid values are rejected with the upstream's error message; this service adds no extra constraints.
- Billing is based on
usage.total_tokens(total tokens used by the task), not on video seconds.
All editions share the same API endpoint and API Key; the edition is determined automatically by the model name. Your account must have the "Baozhen" flag enabled by the administrator before calling Baozhen models, otherwise the API returns 403 provider_disabled.
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 |
The endpoint is exactly the same as the face / Official editions — no separate domain or path. Use a Baozhen model name (ending in -bz) to route through the Baozhen pipeline.
Billing & Balance (per token)
Baozhen uses a prepaid balance model and shares one account balance (unit: credits) with all other editions.
Billing rules
- Unit: credits.
Cost =total_tokens ÷ 1,000,000 × the model's unit price (credits per million tokens).
Freeze & settle flow
- Freeze on submit: the estimated token cost is frozen at submission. Estimate:
estimated tokens = max pixel area of the resolution tier × frame rate (fps) × estimated seconds ÷ 1024(rounded up). With reference video input, the estimated seconds additionally cover the input video cap, so the freeze is conservative (on the high side). - Settle on success: after the task succeeds, billing settles on the real
usage.total_tokensreturned upstream — the frozen estimate is released and the actual amount is charged (refund or top-up the difference). - 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.
Difference from the face edition: face bills by "video seconds × credits/second"; Baozhen bills by "tokens × credits per million tokens" (same metering as the Official edition). The two do not affect each other.
Available Models
Baozhen model names all end with -bz. Resolution capabilities by model (same tiers as the Official edition):
| Baozhen model | Resolutions | Duration range | Supported ratios |
|---|---|---|---|
seedance-2.0-bz | 480p / 720p / 1080p / 4k | 4–15 s (or -1 = auto) | 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive |
seedance-2.0-fast-bz | 480p / 720p | 4–15 s (or -1 = auto) | Same as above |
seedance-2.0-mini-bz | 480p / 720p | 4–15 s (or -1 = auto) | Same as above |
The Seedance 2.0 series all support 480p / 720p (480p is billed at the same rate as 720p, but uses fewer tokens, so output is effectively cheaper); 1080p / 4k are only supported by seedance-2.0-bz — fast-bz / mini-bz support 480p / 720p only. Setting ratio to adaptive lets the model pick the aspect ratio. Setting duration to -1 lets the model choose the duration (this service freezes at a 15-second estimate and settles on actual usage). All values are validated upstream; unit prices and availability depend on the administrator's configuration.
API Reference
1. Submit a Video Generation Task
Request body
Baozhen parameters are passed through to the upstream model; this service adds no whitelist/range restrictions (invalid values are rejected upstream). Common fields:
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Baozhen model name (ending in -bz), see the model list above |
content | array | Yes | Native Ark content array, see below |
resolution | string | No | Resolution: 480p/720p/1080p/4k (fast-bz/mini-bz support 480p/720p only). Defaults to the model default (720p) |
ratio | string | No | Aspect ratio, see the list above; defaults to upstream default (adaptive) |
duration | int | No | Duration (seconds), [4,15] or -1 (auto); mutually exclusive with frames |
frames | int | No | Frame count; mutually exclusive with duration (frames wins) |
generate_audio | boolean | No | Generate audio synced with the video (Seedance 2.0 series) |
watermark | boolean | No | Include watermark (default false) |
seed | int | No | Random seed; -1 or omitted = random |
return_last_frame | boolean | No | Return the last frame of the generated video |
camera_fixed | boolean | No | Fix the camera (default false) |
This service currently does not support callback_url, draft (draft mode), service_tier, or priority — they are ignored. duration/resolution affect the frozen estimate, so set them carefully.
content item types
Each item is distinguished by type; four types are supported. Media items may carry a role (whether it is required and which values are valid is validated upstream):
| type | Field | Optional role | Description |
|---|---|---|---|
text | text | — | Prompt |
image_url | image_url.url | first_frame / last_frame / reference_image | Reference image URL |
video_url | video_url.url | reference_video | Reference video URL |
audio_url | audio_url.url | reference_audio | Reference audio URL |
Text-to-video example
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.0-bz",
"content": [
{ "type": "text", "text": "A golden cat runs across a sunny meadow, cinematic look, slow motion" }
],
"resolution": "1080p",
"ratio": "16:9",
"duration": 10,
"generate_audio": true
}'
Image-to-video example (first frame + last frame)
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.0-fast-bz",
"content": [
{ "type": "text", "text": "The camera pushes smoothly from close-up to wide shot" },
{ "type": "image_url", "role": "first_frame", "image_url": { "url": "https://example.com/start.jpg" } },
{ "type": "image_url", "role": "last_frame", "image_url": { "url": "https://example.com/end.jpg" } }
],
"resolution": "720p",
"ratio": "16:9",
"duration": 8
}'
Response example
{
"id": "task_01KWBW73D7WCN1PFZN9S1QQCK2"
}
| Status | Description |
|---|---|
| 200 | Task submitted |
| 400 | Bad request (unknown model, rejected by upstream, pricing not configured, etc.) |
| 401 | Missing or invalid API Key |
| 402 | Insufficient balance (insufficient_balance); contact the administrator to top up |
| 403 | Baozhen not enabled (provider_disabled); contact the administrator |
| 500 / 502 | Internal server error / upstream error; retry later |
2. Get Task Status
Put the id returned at submission into the path.
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.0-bz",
"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",
"usage": { "completion_tokens": 411300, "total_tokens": 411300 }
}
The download URL (content.video_url) is valid for 24 hours — download and store it in time.
usage (token usage) is returned after successful settlement (for video tasks completion_tokens equals total_tokens). For super-resolution-integrated tasks (e.g. choosing 1080p), the reported tokens are computed at your selected tier (target resolution/ratio), consistent with the billing metering.
Task status
| Status | Description |
|---|---|
queued | Waiting in queue |
running | Generating |
succeeded | Done; video URL available |
failed | Generation failed |
expired | Task timed out |
cancelled | Cancelled |
3. List Tasks
Paginated. Returns all tasks under the current API Key (across editions), newest first. Parameters: page_num (default 1), page_size (default 10).
curl "https://sd.boosterai.cn/api/v3/contents/generations/tasks?page_num=1&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
⚠️ Baozhen does not support submission recovery: if a submission times out or a network error prevents you from receiving the upstream task ID, the system automatically releases the full frozen amount and marks the task failed after the timeout (no false charge) — resubmit the task yourself.
4. Query Balance & Usage
Returns the account balance, cumulative usage summary, and a paginated usage breakdown for the current API Key in one call (all editions share one account). Only reconciliation-relevant fields are returned — suitable for scheduled programmatic polling. Parameters: page_num (default 1), page_size (default 20, max 50).
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.0-bz",
"status": "SUCCEEDED",
"credits": 16.17,
"amount": 0.8086,
"billing_status": "SETTLED",
"created_at": "2026-11-17T12:03:27"
}
]
}
}
| 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 |
Error Codes
| Code | HTTP | Meaning | Suggestion |
|---|---|---|---|
invalid_api_key | 401 | API Key invalid or disabled | Check the Authorization header |
provider_disabled | 403 | Baozhen edition not enabled | Contact the administrator to enable the Baozhen flag |
invalid_model | 400 | Model does not exist or is disabled | Use a valid Baozhen model name (ending in -bz) |
invalid_request | 400 | Malformed request (e.g. empty content, media item missing url) | Check the content structure; invalid parameter values usually come back with the upstream's message |
pricing_not_configured | 400 | No pricing configured for this customer and model | Contact the administrator to configure Baozhen pricing |
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 |
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 |