01Quick start
Async job: submit and get an id, poll until completed, then download the finished video.
Don't use the wrong endpoint. This family uses POST /v1/videos, and must not use /v1/chat/completions — calling it through the chat endpoint returns 404.
- Base URL
https://www.salpx.com/v1- Auth
Authorization: Bearer <SalpX Token>- Submit a task
POST /v1/videos- Query status
GET /v1/videos/{id}- Proxy download
GET /v1/videos/{id}/content- Model name
- 480p
seedance-2.5-480p-yy; 720pseedance-2.5-720p-yy - Required params
model,prompt(up to 5,000 characters),duration(integer seconds, 15–30),ratio(16:9or9:16)- Client timeout
- Recommended total polling timeout ≥ 900 s
Resolution is fixed by the model name — don't send it. Any resolution in the request body is overwritten with the resolution implied by the model name.
02Models & pricing
Billed per output second: unit price × duration = total. Prices are in CNY per second.
| Model name | Resolution | Unit price | 15 s | 20 s | 30 s |
|---|---|---|---|---|---|
seedance-2.5-480p-yy | 480p | ¥0.324 / s | ¥4.86 | ¥6.48 | ¥9.72 |
seedance-2.5-720p-yy | 720p | ¥0.558 / s | ¥8.37 | ¥11.16 | ¥16.74 |
Reference images and audio are free, billed purely by output seconds. Charged on submit; fully refunded if the task fails or is rejected.
03Parameters & asset rules
| Item | Rule |
|---|---|
Output duration duration | Integer seconds, 15–30 |
Aspect ratio ratio | 16:9 or 9:16, must be sent explicitly |
| Reference images | Up to 30 |
| Reference audio | Up to 10 clips, ≤ 30 s total; pair with at least one reference image |
| Reference video | Not supported (sending one returns 400 with no charge) |
Media must be hosted at a publicly downloadable URL (the upstream server has to be able to fetch it). Private-cloud links, URLs behind a login, and hotlink-protected URLs will fail. audio_url must be a real audio file (wav / mp3, etc.).
Prompts and assets go through content moderation; violent, disturbing, sexual, or political content is rejected (the task ends up failed with an automatic refund).
04Submit a task
4.1 Request format
Put the text in the top-level prompt; put media in metadata.content, each with a role:
| role | Purpose |
|---|---|
reference_image | Reference image (subject / style / composition) |
reference_audio | Reference audio (music / rhythm / ambience) |
4.2 Text-to-video
curl -X POST https://www.salpx.com/v1/videos \ -H "Authorization: Bearer $SALPX_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.5-480p-yy", "prompt": "a flower swaying gently in a light breeze, soft natural light, close-up shot", "duration": 15, "ratio": "16:9" }'
4.3 Reference image + reference audio
curl -X POST https://www.salpx.com/v1/videos \ -H "Authorization: Bearer $SALPX_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.5-720p-yy", "prompt": "same subject as image 1, slow dolly-in, with the background music from audio 1", "duration": 15, "ratio": "9:16", "metadata": { "content": [ {"type":"image_url","image_url":{"url":"https://your-cdn.com/product.png"},"role":"reference_image"}, {"type":"audio_url","audio_url":{"url":"https://your-cdn.com/bgm.mp3"},"role":"reference_audio"} ] } }'
4.4 Successful submit response
The response returns the SalpX task ID(task_ prefix) — use it for both polling and download.
{
"id": "task_wD4efMzF414I6eMTQ7j2A3bW1Wluh44L",
"task_id": "task_wD4efMzF414I6eMTQ7j2A3bW1Wluh44L",
"object": "video",
"model": "seedance-2.5-480p-yy",
"status": "queued",
"progress": 0,
"created_at": 1793700000
}
id and task_id are always the same value; new integrations only need id.
05Poll & fetch
Poll with GET /v1/videos/{id} at an interval of 15 s.
curl https://www.salpx.com/v1/videos/task_wD4efMzF414I6eMTQ7j2A3bW1Wluh44L \ -H "Authorization: Bearer $SALPX_KEY"
status | Meaning |
|---|---|
queued | Queued |
in_progress | In progress |
completed | Completed; the video URL is in metadata.url |
failed | Failed; the reason is in the top-level error; already refunded |
The video URL is in metadata.url, not at the top level. Read it asresp["metadata"]["url"]. It is an empty string while the task is unfinished. progress is only a rough mapping of status — rely on status to decide whether the task has finished.
{
"id": "task_wD4efMzF414I6eMTQ7j2A3bW1Wluh44L",
"task_id": "task_wD4efMzF414I6eMTQ7j2A3bW1Wluh44L",
"object": "video",
"model": "seedance-2.5-480p-yy",
"status": "completed",
"progress": 100,
"created_at": 1793700000,
"completed_at": 1793700400,
"metadata": {
"url": "https://video.example.com/xxxx.mp4"
}
}
| How to fetch | Notes |
|---|---|
| Direct download | metadata.url is a public URL; a plain GET works |
| Proxy download | GET /v1/videos/{id}/content, requires the Authorization; SalpX proxies back the same file |
Save the video link promptly. Direct links are temporary and expire — don't use them as long-term storage.
06Error handling
| HTTP | Typical message | Fix |
|---|---|---|
| 404 | bad response status code 404 | You used /v1/chat/completions; switch to POST /v1/videos |
| 400 | duration_out_of_range | 15–30 s, integer |
| 400 | reference_video_not_allowed | This family does not accept reference video; drop the video_url |
| 400 | Please specify an explicit ratio, e.g. 16:9 | ratio Send 16:9 or 9:16; do not send adaptive |
| 400 | too_many_reference_images / audios | Reduce the number of assets; the limits are in section 03 |
| — | Task failed: content rejected by moderation | Adjust the prompt or assets, then retry |
| — | Task failed: asset download failed | Media URLs must be publicly downloadable |
| 403 | token quota is not enough | Insufficient balance — top up or use another token |
| 503 | No available channel / model_not_found | Model name typo (only 480p and 720p exist) or the token group has no access |
Failed tasks are refunded automatically. If a submit is rejected, the upstream fails, the request times out, or the task enters failed, the charged quota is refunded in full with no cost.