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.
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.
/v1/chat/completions — the chat endpoint does not go through the video pipeline and returns 404. https://www.salpx.com/v1Authorization: Bearer <SalpX Token>POST /v1/videosGET /v1/videos/{task_id}GET /v1/videos/{task_id}/contenttask_id; poll it for the status. Prices are in CNY. Every model requires the top-level integer field duration (in seconds) on submit.
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.
| Model | Resolution | Without 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-2 | 480p | 55.20 | 33.60 | ≈ ¥0.54 / s | ≈ ¥0.33 / s |
| 720p (default) | 55.20 | 33.60 | ≈ ¥1.19 / s | ≈ ¥0.73 / s | |
| 1080p | 61.20 | 37.20 | ≈ ¥2.97 / s | ≈ ¥1.81 / s | |
| 4k | 31.20 | 19.20 | ≈ ¥6.07 / s | ≈ ¥3.73 / s | |
seedance-2-fast | 480p | 44.40 | 26.40 | ≈ ¥0.43 / s | ≈ ¥0.26 / s |
| 720p (default) | 44.40 | 26.40 | ≈ ¥0.96 / s | ≈ ¥0.57 / s | |
seedance-2-mini | 480p | 27.60 | 16.80 | ≈ ¥0.27 / s | ≈ ¥0.16 / s |
| 720p (default) | 27.60 | 16.80 | ≈ ¥0.60 / s | ≈ ¥0.36 / s | |
seedance-2-mini-480p | fixed 480p | 27.60 | 16.80 | ≈ ¥0.27 / s | ≈ ¥0.16 / s |
seedance-2-mini-720p | fixed 720p | 27.60 | 16.80 | ≈ ¥0.60 / s | ≈ ¥0.36 / s |
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. 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. | Model | Price | Max duration |
|---|---|---|
seedance-2-5 | ¥2.00 / s | 30 s |
seedance-1-5-pro | ¥0.20 / s | 15 s |
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.
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:
{
"task_id": "task_BbdMw8n5VowzJLgQbZA1MRNB2qoDYCJS",
"object": "video",
"model": "seedance-2-fast",
"status": "",
"progress": 0,
"created_at": 1781705051
}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_frame / last_frame and reference_*. In first / last frame mode the aspect ratio follows the first-frame image, so do not send ratio. 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 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.
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 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 } }'
asset://<ASSET_ID>. Assets are downloaded and validated upstream (Volcengine Ark); failures return 400 · InvalidParameter (passed through verbatim). Common hard requirements:
| Type | Requirement |
|---|---|
| Image, shortest side | width 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 ratio | Avoid extreme banners or strips (e.g. 7:1); match the target ratio 16:9 / 9:16 / 1:1 to reduce visual jumps |
| Image, format | Common: JPEG / PNG / WEBP |
| URL | Must be publicly downloadable (or use a Volcengine asset id, asset://<ASSET_ID>); private, login-gated and hotlink-protected URLs fail to download |
| Video / audio | video ≤ 3 files (≤ 15 s total), audio ≤ 3 files; format limits follow Volcengine |
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.
Convention: the prompt goes in the top-level prompt; media and Volcengine parameters go in metadata.
| Parameter | Where | Required | Notes |
|---|---|---|---|
model | Top level | Yes | Model name, see section 02 |
duration | Top level | Yes | Duration (integer seconds, 4–15) |
resolution | Top level or metadata | No | 480p / 720p / 1080p / 4k, default 720p; fast / mini support 480p and 720p only |
prompt | Top level | Yes | Text description (Chinese or English). Reference assets as “image 1 / video 1 / audio 1” |
metadata.content | metadata | No | Media array; each item is {"type":"image_url|video_url|audio_url","<type>":{"url":"..."},"role":"..."}. Roles are listed in 3.2 / 3.3 |
ratio | Top level or metadata | No | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive |
metadata.generate_audio | metadata | No | Whether to generate an audio track (video with sound) |
metadata.watermark / metadata.seed | metadata | No | Watermark / random seed |
callback_url | Top level | No | Async completion callback (webhook) |
When a multimodal combination is invalid, SalpX returns a clear bilingual 400 before forwarding to Volcengine, without leaking the raw upstream error:
| Trigger | code | Message |
|---|---|---|
| Reference images > 9 | too_many_reference_images | at most 9 reference images |
| Reference videos > 3 | too_many_reference_videos | at most 3 reference videos |
| Reference audios > 3 | too_many_reference_audios | at most 3 reference audios |
| Unsupported resolution (e.g. 1080p on fast) | invalid_resolution | Returns the list of resolutions that model supports |
| Audio-only / text+audio only | invalid_audio_only_input | audio must be accompanied by an image or video |
| HTTP | Meaning | Charged? |
|---|---|---|
| 400 | Bad request (unknown model name, missing required field) | No |
| 401 | Invalid token | No |
| 403 | Insufficient quota | No |
| 500 | Upstream connection failure | Charged → refunded automatically |
| 502 | Upstream error / async task FAILED | Charged → refunded automatically |
| — | Async task timed out | Charged → refunded automatically |
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.
Pick any one of three:
GET /v1/videos/{task_id} every 5–10 s and check statuscallback_url on submit and it POSTs to you when the task finishesTA 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.
# 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)
Volume pricing / enterprise quota / private deployment → contact SalpX sales (console → account settings → contact us).