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).

Text to Video Image to Video First/Last Frame to Video Multimodal Reference to Video
  • 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

ItemValue
Base URLhttps://sd.boosterai.cn
API base path/api/v3/contents/generations/tasks
Request / response formatapplication/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

  1. 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).
  2. Settle on success: after the task succeeds, billing settles on the real usage.total_tokens returned upstream — the frozen estimate is released and the actual amount is charged (refund or top-up the difference).
  3. 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

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 modelResolutionsDuration rangeSupported ratios
seedance-2.0-bz480p / 720p / 1080p / 4k4–15 s (or -1 = auto)16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive
seedance-2.0-fast-bz480p / 720p4–15 s (or -1 = auto)Same as above
seedance-2.0-mini-bz480p / 720p4–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

POST/api/v3/contents/generations/tasks

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:

FieldTypeRequiredDescription
modelstringYesBaozhen model name (ending in -bz), see the model list above
contentarrayYesNative Ark content array, see below
resolutionstringNoResolution: 480p/720p/1080p/4k (fast-bz/mini-bz support 480p/720p only). Defaults to the model default (720p)
ratiostringNoAspect ratio, see the list above; defaults to upstream default (adaptive)
durationintNoDuration (seconds), [4,15] or -1 (auto); mutually exclusive with frames
framesintNoFrame count; mutually exclusive with duration (frames wins)
generate_audiobooleanNoGenerate audio synced with the video (Seedance 2.0 series)
watermarkbooleanNoInclude watermark (default false)
seedintNoRandom seed; -1 or omitted = random
return_last_framebooleanNoReturn the last frame of the generated video
camera_fixedbooleanNoFix 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):

typeFieldOptional roleDescription
texttext—Prompt
image_urlimage_url.urlfirst_frame / last_frame / reference_imageReference image URL
video_urlvideo_url.urlreference_videoReference video URL
audio_urlaudio_url.urlreference_audioReference 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"
}
StatusDescription
200Task submitted
400Bad request (unknown model, rejected by upstream, pricing not configured, etc.)
401Missing or invalid API Key
402Insufficient balance (insufficient_balance); contact the administrator to top up
403Baozhen not enabled (provider_disabled); contact the administrator
500 / 502Internal server error / upstream error; retry later

2. Get Task Status

GET/api/v3/contents/generations/tasks/{taskId}

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

StatusDescription
queuedWaiting in queue
runningGenerating
succeededDone; video URL available
failedGeneration failed
expiredTask timed out
cancelledCancelled

3. List Tasks

GET/api/v3/contents/generations/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

GET/billing/api/balance

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"
      }
    ]
  }
}
FieldDescription
balanceTotal account balance (credits)
frozen_amountFrozen amount (estimated cost of in-flight tasks)
available_balanceAvailable balance = balance − frozen_amount; used for submission checks
total_rechargeTotal top-up (credits): cumulative positive recharges; never decreases with consumption
total_tasks_succeededCumulative succeeded tasks (video + image; failed/refunded not counted)
total_credits_usedCumulative credits actually charged (settled tasks only)
usage.totalTotal number of usage records
usage.items[].creditsCredits actually charged for the task (null when not charged, e.g. failed & refunded / still frozen)
usage.items[].amountCNY equivalent of the task's consumption, converted at your exchange rate
usage.items[].billing_statusBilling status: SETTLED charged / FROZEN frozen / REFUNDED refunded

Error Codes

CodeHTTPMeaningSuggestion
invalid_api_key401API Key invalid or disabledCheck the Authorization header
provider_disabled403Baozhen edition not enabledContact the administrator to enable the Baozhen flag
invalid_model400Model does not exist or is disabledUse a valid Baozhen model name (ending in -bz)
invalid_request400Malformed 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_configured400No pricing configured for this customer and modelContact the administrator to configure Baozhen pricing
insufficient_balance402Insufficient balance (available balance < estimated cost)Top up and retry
task_not_found404Task not foundCheck the task id and that it belongs to your API Key
upstream_error502Upstream service errorRetry later; contact the administrator if it persists
internal_error500Internal server errorRetry later; contact the administrator if it persists