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:

Text to Video Image to Video Multimodal Reference to Video

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

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_url items in content, 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

  1. Freeze on submit: the estimated cost is frozen when a task is submitted.
  2. Charge on success: credits are actually charged only after the task succeeds.
  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

  • 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

ModelResolutionDuration rangeSupported ratios
seedance-2720p4–15 s21:9, 16:9, 4:3, 1:1, 3:4, 9:16
seedance-2-1080p1080p4–15 s16:9, 9:16, 1:1
seedance-2-fast720p4–15 s21:9, 16:9, 4:3, 1:1, 3:4, 9:16
seedance-2-mini720p4–15 s21:9, 16:9, 4:3, 1:1, 3:4, 9:16
seedance-2.5720p4–30 s21: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

POST/api/v3/contents/generations/tasks

Request body

FieldTypeRequiredDescription
modelstringYesModel name, see the model list above
contentarrayYesInput content, see below; must contain exactly one type=text item as the prompt
durationintYesVideo duration (seconds), within the model's allowed range
ratiostringYesAspect 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:

typeFieldseedance-2 / seedance-2-1080p / seedance-2-fast / seedance-2-miniseedance-2.5
texttextPrompt. Exactly one, length ≥ 1
image_urlimage_url.urlUp to 9Up to 30
video_urlvideo_url.urlUp to 3, total ≤ 15sUp to 10, each 2–30 s, total ≤ 30s, each ≤ 50MB
audio_urlaudio_url.urlUp to 3, total ≤ 15sUp to 10, each 2–30 s, total ≤ 30s, each ≤ 15MB
Combined image + video + audio limitUp to 12Up 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

StatusDescription
200Task submitted
400Bad request (unknown model, missing prompt, unsupported ratio, duration out of range, pricing not configured, etc.)
401Missing or invalid API Key
402Insufficient balance (insufficient_balance); contact the administrator to top up
500Internal server error
502Upstream service error; retry later

2. Get Task Status

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

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

FieldDescription
idTask ID
modelModel used at submission
statusTask status, see below
created_at / updated_atCreated / updated time, Unix seconds (UTC+8)
content.video_urlDownload URL of the generated video (valid for 24 hours)
durationVideo duration (seconds)
resolutionResolution, e.g. 720p / 1080p
ratioAspect ratio, e.g. 16:9
error.messageError description when failed

Response example (failed)

{
  "id": "task_01KWBW73D7WCN1PFZN9S1QQCK2",
  "status": "failed",
  "error": {
    "message": "Model processing failed, please resubmit"
  }
}

Task status

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

HTTP status codes

StatusDescription
200OK
401Invalid API Key
404Task not found

3. List Tasks

GET/api/v3/contents/generations/tasks

Paginated. Returns all tasks under the current API Key, newest first.

Query parameters

ParameterTypeRequiredDefaultDescription
page_numintNo1Page number (starts at 1)
page_sizeintNo10Items 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

GET/billing/api/balance

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

ParameterTypeRequiredDefaultDescription
page_numintNo1Usage page number (starts at 1)
page_sizeintNo20Usage 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

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
usage.items[].durationBilled duration (seconds), including reference video time weighted by its coefficient

Error Codes

CodeHTTPMeaningSuggestion
invalid_api_key401API Key invalid or disabledCheck the Authorization header
invalid_model400Model does not exist or is disabledUse a valid model from the model list
invalid_duration400Duration out of the model's rangeAdjust duration to the allowed range
invalid_ratio400Aspect ratio not supported by the modelSee "Supported ratios" in the model list
invalid_request400Bad request (e.g. missing prompt, multiple text items)content must contain exactly one non-empty type=text item
pricing_not_configured400Pricing not configured for the modelContact the administrator
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
bad_request400Missing required headers, etc.Check request headers and body
not_found404Unknown pathCheck the request URL
upstream_error502Upstream service errorRetry later; contact the administrator if it persists
internal_error500Internal server errorRetry later; contact the administrator if it persists