SalpX.com
Seedance 2.0 integration guide ← API overview 中文

Seedance 2.0 · Video generation + avatar assets

ByteDance Seedance 2.0 video models (including the virtual-human / real-person avatar asset endpoints), called through the single SalpX base_url. Seedance 2.0 / 2.0 fast / 2.0 mini support text-to-video, first frame, first-last frame and full multimodal reference (image / video / audio); billed on actual generation, refunded automatically on failure.

01Overview

The Seedance family is called through the single SalpX base_url and always uses the video endpoint POST /v1/videos. Most models bill per second (the top-level integer field duration is required on submit), while fixed-duration models in the Value / Subsidy editions bill per task.

⚠️ Never call seedance through /v1/chat/completions — the chat endpoint does not go through the video pipeline and returns 404.
Base URL
https://www.salpx.com/v1
Auth
Authorization: Bearer <SalpX Token>
Video endpoint
POST /v1/videos
Task lookup endpoint
GET /v1/videos/{task_id}
Video proxy download
GET /v1/videos/{task_id}/content
Async
Yes. Submit returns a task_id; poll it for the status.
SDK compatibility
OpenAI Python / Node.js / Go SDK (only base_url changes)
Automatic refund on failure: an upstream 5xx, a timeout, or an async task reaching FAILED → SalpX refunds that charge; nothing is billed.

02Model list & pricing

Prices are in CNY. Every model requires the top-level integer field duration (in seconds) on submit.

2.1 Seedance 2.0 family (billed on actual tokens)

These models bill on the video tokens actually consumed upstream: charge = actual tokens × unit price. Token count depends on resolution, aspect ratio and duration (reference-video duration counts too); the table below also gives an estimated per-second price for 16:9. When the request includes reference video, the whole order is billed at the “with video input” unit price.

ModelResolutionWithout video input
CNY / million tokens
With video input
CNY / million tokens
Est. per-second price (16:9)
No reference video
Est. per-second price (16:9)
With reference video
seedance-2480p55.2033.60≈ ¥0.54 / s≈ ¥0.33 / s
720p (default)55.2033.60≈ ¥1.19 / s≈ ¥0.73 / s
1080p61.2037.20≈ ¥2.97 / s≈ ¥1.81 / s
4k31.2019.20≈ ¥6.07 / s≈ ¥3.73 / s
seedance-2-fast480p44.4026.40≈ ¥0.43 / s≈ ¥0.26 / s
720p (default)44.4026.40≈ ¥0.96 / s≈ ¥0.57 / s
seedance-2-mini480p27.6016.80≈ ¥0.27 / s≈ ¥0.16 / s
720p (default)27.6016.80≈ ¥0.60 / s≈ ¥0.36 / s
seedance-2-mini-480pfixed 480p27.6016.80≈ ¥0.27 / s≈ ¥0.16 / s
seedance-2-mini-720pfixed 720p27.6016.80≈ ¥0.60 / s≈ ¥0.36 / s
Resolutionis set via resolution either at the top level or in metadata; it defaults to 720p. seedance-2 supports 480p / 720p / 1080p / 4k; seedance-2-fast, seedance-2-mini supports 480p / 720p; any other resolution returns 400 with no charge. Models with a -480p / -720p suffix have their resolution locked by the name.
How reference video is billed: the whole order uses the “with video input” unit price, and billed seconds = output seconds + reference video seconds. Example: seedance-2 720p, 10 s of output plus 5 s of reference video → (10 + 5) × ¥0.73 ≈ ¥10.9; the same 10 s without reference video → 10 × ¥1.19 ≈ ¥11.9. Reference images, reference audio, first / last frames and audio output all cost nothing extra.
Charge flow: a hold of “per-second price × duration” is taken on submit (with reference video, an extra hold assumes 15 s of it); once the task completes the charge is adjusted to the actual upstream token count, with the invoice as the source of truth. Duration 4–15 s.

2.2 Other per-second models

ModelPriceMax duration
seedance-2-5¥2.00 / s30 s
seedance-1-5-pro¥0.20 / s15 s

2.3 Value / Subsidy editions

Models, prices and full usage for the Value / Subsidy editions are in the Value Edition doc and the Subsidy Edition doc; live prices are on the model marketplace.

03Calling the video API

3.1 Text-to-video (the simplest case)

curl · text-to-video
curl https://www.salpx.com/v1/videos \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2-fast",
    "duration": 10,
    "resolution": "720p",
    "prompt": "a blue jellyfish drifting through a neon sea, cinematic",
    "ratio": "16:9"
  }'

Response:

response
{
  "task_id": "task_BbdMw8n5VowzJLgQbZA1MRNB2qoDYCJS",
  "object": "video",
  "model": "seedance-2-fast",
  "status": "",
  "progress": 0,
  "created_at": 1781705051
}

3.2 Image-to-video (first frame / first-last frame)

curl · image-to-video
curl https://www.salpx.com/v1/videos \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2",
    "duration": 10,
    "resolution": "1080p",
    "prompt": "smooth transition from the first frame to the last, shimmering light",
    "metadata": {
      "content": [
        {"type":"image_url","image_url":{"url":"https://your-cdn.com/first.jpg"},"role":"first_frame"},
        {"type":"image_url","image_url":{"url":"https://your-cdn.com/last.jpg"},"role":"last_frame"}
      ]
    }
  }'

Always put media in metadata.content, each item with a role. Image-to-video roles: first_frame (first frame) / last_frame (last frame). For first-frame-only image-to-video a single first_frame is enough. The prompt must go in the top-level prompt, never inside content. seedance-2, seedance-2-fast, seedance-2-mini all support first frame and first-last frame.

⚠️ First / last frame and full multimodal reference (3.3) are two different modes — one request cannot mix first_frame / last_frame and reference_*. In first / last frame mode the aspect ratio follows the first-frame image, so do not send ratio.

3.2.1 Seedance 1.5 Pro · first-last frame (variable duration / per second / audio output)

Model seedance-1-5-pro: the duration accepts 4–12 s (billed per second), resolution 480p/720p/1080p@24fps, and "audio": true produces native audio (lip-sync in 8 languages). The first-last-frame structure is identical to the above — put media in metadata.content and mark the role with first_frame / last_frame (not image_with_roles) .

curl · Seedance 1.5 Pro first-last frame
curl https://www.salpx.com/v1/videos \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-1-5-pro",
    "prompt": "the scene shifts from day to night as city lights come on one by one, cinematic camera",
    "duration": 8,
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "audio": true,
    "metadata": {
      "content": [
        {"type":"image_url","image_url":{"url":"https://your-cdn.com/day.jpg"},"role":"first_frame"},
        {"type":"image_url","image_url":{"url":"https://your-cdn.com/night.jpg"},"role":"last_frame"}
      ]
    }
  }'

For first-frame only, a single first_frame; duration is enough; a longer duration costs more (billed per second). Task lookup and error handling match Seedance 2.0 — see 3.5 / 3.7.

3.3 Full reference (image / video / audio)

seedance-2, seedance-2-fast, seedance-2-mini can reference images, video and audio together. Put everything in metadata.content and set the role to reference_image / reference_video / reference_audio; reference them in the prompt as “image 1”, “video 1”, “audio 1” (numbers follow that asset type's order, starting at 1).

curl · multimodal reference
curl https://www.salpx.com/v1/videos \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2",
    "duration": 10,
    "resolution": "720p",
    "prompt": "use image 1 for the character, video 1 for camera motion, audio 1 as the soundtrack…",
    "metadata": {
      "content": [
        {"type":"image_url","image_url":{"url":"https://.../pic1.jpg"},"role":"reference_image"},
        {"type":"video_url","video_url":{"url":"https://.../v1.mp4"},"role":"reference_video"},
        {"type":"audio_url","audio_url":{"url":"https://.../a1.mp3"},"role":"reference_audio"}
      ],
      "generate_audio": true
    }
  }'
⚠️ Combination limits: images 0–9 / video 0–3 / audio 0–3; not supported: audio-only, and text+audio only (audio needs at least one reference image or one reference video). Violations return a clear 400 (see 3.7). With reference video the whole order uses the “with video input” unit price, and its duration counts toward tokens. Volcengine avatar assets work too: pass asset://<ASSET_ID>.

3.4 Input asset requirements (image / video / audio)

Assets are downloaded and validated upstream (Volcengine Ark); failures return 400 · InvalidParameter (passed through verbatim). Common hard requirements:

TypeRequirement
Image, shortest sidewidth and height both ≥ 300 px (measured: 1073×152 had its height of 152 px rejected as too small — expected the height to be at least 300px)
Image, aspect ratioAvoid extreme banners or strips (e.g. 7:1); match the target ratio 16:9 / 9:16 / 1:1 to reduce visual jumps
Image, formatCommon: JPEG / PNG / WEBP
URLMust be publicly downloadable (or use a Volcengine asset id, asset://<ASSET_ID>); private, login-gated and hotlink-protected URLs fail to download
Video / audiovideo ≤ 3 files (≤ 15 s total), audio ≤ 3 files; format limits follow Volcengine
📎 The authoritative spec (exact pixels per resolution, size caps, and so on) is the Volcengine Ark documentation: Seedance 2.0 API reference.

3.5 Task lookup

curl · poll status
curl https://www.salpx.com/v1/videos/<task_id> \
  -H "Authorization: Bearer $KEY"

# example response on completion:
{
  "id": "task_...",
  "object": "video",
  "model": "seedance-2",
  "status": "completed",
  "progress": 100,
  "metadata": {
    "url": "https://video.example.com/abc.mp4"
  }
}

status Values: queued (waiting) / in_progress (generating) / completed (video URL in metadata.url) / failed (reason in error.message, refunded automatically). You can also use GET /v1/videos/{task_id}/content for a proxy download. Video links expire — save them promptly.

3.6 Full parameter list

Convention: the prompt goes in the top-level prompt; media and Volcengine parameters go in metadata.

ParameterWhereRequiredNotes
modelTop levelYesModel name, see section 02
durationTop levelYesDuration (integer seconds, 4–15)
resolutionTop level or metadataNo480p / 720p / 1080p / 4k, default 720p; fast / mini support 480p and 720p only
promptTop levelYesText description (Chinese or English). Reference assets as “image 1 / video 1 / audio 1”
metadata.contentmetadataNoMedia array; each item is {"type":"image_url|video_url|audio_url","<type>":{"url":"..."},"role":"..."}. Roles are listed in 3.2 / 3.3
ratioTop level or metadataNo21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive
metadata.generate_audiometadataNoWhether to generate an audio track (video with sound)
metadata.watermark / metadata.seedmetadataNoWatermark / random seed
callback_urlTop levelNoAsync completion callback (webhook)

3.7 Validation errors (HTTP 400)

When a multimodal combination is invalid, SalpX returns a clear bilingual 400 before forwarding to Volcengine, without leaking the raw upstream error:

TriggercodeMessage
Reference images > 9too_many_reference_imagesat most 9 reference images
Reference videos > 3too_many_reference_videosat most 3 reference videos
Reference audios > 3too_many_reference_audiosat most 3 reference audios
Unsupported resolution (e.g. 1080p on fast)invalid_resolutionReturns the list of resolutions that model supports
Audio-only / text+audio onlyinvalid_audio_only_inputaudio must be accompanied by an image or video

04Errors & refunds

HTTPMeaningCharged?
400Bad request (unknown model name, missing required field)No
401Invalid tokenNo
403Insufficient quotaNo
500Upstream connection failureCharged → refunded automatically
502Upstream error / async task FAILEDCharged → refunded automatically
—Async task timed outCharged → refunded automatically
Refund guarantee: on any 5xx failure SalpX refunds that charge — you never pay for a video you did not get. All error codes are normalised to the OpenAI-compatible format.

05FAQ

Why does the actual charge differ slightly from “per-second price × seconds”?

The Seedance 2.0 family bills on actual upstream tokens, and the token count varies slightly with aspect ratio (9:16, 21:9, …); reference-video duration counts too. A hold based on the estimate is taken on submit, then adjusted to the real token count.

How do I learn the result of an async task?

Pick any one of three:

How long are videos kept?

TA keeps them for 7 days by default. Downloading into your own OSS as soon as you get the URL is strongly recommended — do not link to TA URLs long-term.

SDK example (Python)

Python · calling SalpX from the openai SDK
# pip install openai requests
import requests, time

API = "https://www.salpx.com/v1"
KEY = "sk-..."
H = {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"}

# 1. submit the task
r = requests.post(f"{API}/videos", headers=H, json={
    "model": "seedance-2-fast",
    "duration": 10,
    "resolution": "720p",
    "prompt": "neon city at night",
    "ratio": "9:16",
})
tid = r.json()["task_id"]
print("submitted:", tid)

# 2. poll
for _ in range(240):  # up to 40 minutes
    time.sleep(10)
    s = requests.get(f"{API}/videos/{tid}", headers=H).json()
    if s.get("status") == "completed":
        print("video:", s["metadata"]["url"])
        break
    if s.get("status") == "failed":
        raise RuntimeError(s)

Business enquiries

Volume pricing / enterprise quota / private deployment → contact SalpX sales (console → account settings → contact us).