Seedance 2.5 Flash API, Seedance 2.5 API, Seedance 2.0 Mini API, Seedance 2.0 API, 1.0 Pro & Lite API: Pricing, Documentation
by BytePlus
Seedance API by ByteDance offers professional AI video generation with Lite and Pro variants optimized for different quality and speed requirements. Through Pixazo's API, developers can generate videos from images and text with ByteDance's advanced motion synthesis technology. The API includes specialized features like OmniHuman for realistic human animation, making it ideal for social content and marketing videos.
Models Version
Get 10% Cashback on Your First Payment (up to $500)
Add funds and get 10% cashback on your first payment (up to $500).
Seedance 2.5 Flash API Documentation
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, output up to 30 seconds with native audio, at 480p or 720p. Describe a scene in plain words and get a video of it. Returns one video file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/text-to-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Seedance 2.5 Flash
Request Code
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/text-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{
"type": "text",
"text": "A red fox trots through fresh snow at sunrise, its breath steaming in the cold air. Slow tracking shot, soft golden light, the crunch of snow and a light wind."
}
],
"ratio": "16:9",
"duration": 4
}import requests
url = "https://gateway.pixazo.ai/seedance-2-5-flash/v1/text-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{
"type": "text",
"text": "A red fox trots through fresh snow at sunrise, its breath steaming in the cold air. Slow tracking shot, soft golden light, the crunch of snow and a light wind."
}
],
"ratio": "16:9",
"duration": 4
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/seedance-2-5-flash/v1/text-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"content": [
{
"type": "text",
"text": "A red fox trots through fresh snow at sunrise, its breath steaming in the cold air. Slow tracking shot, soft golden light, the crunch of snow and a light wind."
}
],
"ratio": "16:9",
"duration": 4
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/seedance-2-5-flash/v1/text-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"content": [{"type": "text", "text": "A red fox trots through fresh snow at sunrise, its breath steaming in the cold air. Slow tracking shot, soft golden light, the crunch of snow and a light wind."}], "ratio": "16:9", "duration": 4}'Output
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:53.231Z",
"updated_at": "2026-11-15 10:39:41",
"completed_at": "2026-11-15 10:39:40"
}Failure callback shape
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5-flash",
"error": "Generation failed: the request was rejected (\"duration\" must be an integer between 4 and 30 seconds, or -1 for auto).",
"output": null,
"created_at": "2026-11-15T09:26:12.199Z",
"updated_at": "2026-11-15 09:26:18",
"completed_at": "2026-11-15 09:26:18"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | one text item |
The prompt, as {"type":"text","text":"…"}. | ||||
content[].text | Yesrequired | string | — | one text item |
| Describe the scene, the action and any sound. Prompts in Chinese, English, Spanish, Indonesian, Malay, Thai, Arabic, Portuguese, Vietnamese, Japanese and Korean generate natively. | ||||
resolution | No | string | 720p | 480p, 720p |
| Output resolution. At 16:9, 480p is 854×480 and 720p is 1280×720. | ||||
ratio | No | string | adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| Output aspect ratio. adaptive lets the model choose from the prompt. | ||||
duration | No | integer | -1 | 4–30, or -1 |
| Output length in whole seconds. -1 lets the model choose a length from 4 to 30 seconds. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized speech, sound effects and music. false makes a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an “AI Generated” mark in the bottom-right corner. | ||||
output_format | No | string | mp4 | mp4, mov |
mov is a QuickTime file (H.264 with full 4:4:4 colour, PCM audio) for colour grading and for clips you will edit or extend. It comes through the same output.media_url and media_type as an mp4, so save the file as .mov. | ||||
How usage is measured
Billed per second of the delivered video, at its resolution (480p or 720p). The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
resolution 1080p or 4k | Flash renders 480p and 720p. | 480p or 720p, or Seedance 2.5 for 1080p or 4K |
draft | Flash has no Draft mode. | Seedance 2.5's Draft mode (draft: false is accepted and does nothing) |
a draft_task content item, draft_task or draft_task_id | Drafts belong to Seedance 2.5. | — |
ratio, output_format outside the allowed values | Checked when you submit. | a value from the table above |
generate_audio or watermark that is not true or false | Must be a JSON boolean. | true or false |
content missing, empty or not an array | There is nothing to generate from. | see content above |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
content | It has no text item. |
duration | It is not a whole number from 4 to 30, or -1. |
| the prompt | content moderation refuses the prompt. |
Accepted but ignored
Any other field is dropped before the request reaches the model, for example seed, camera_fixed, return_last_frame, tools, priority and safety_identifier.
Timing
The launch example took about 100 seconds from submit to result. Longer and 720p videos take longer. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"content": [
{
"type": "text",
"text": "A red fox trots through fresh snow at sunrise, its breath steaming in the cold air. Slow tracking shot, soft golden light, the crunch of snow and a light wind."
}
],
"ratio": "16:9",
"duration": 4
}Example Response
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'resolution' must be one of: \"480p\", \"720p\" (got \"1080p\")",
"violations": [
"'resolution' must be one of: \"480p\", \"720p\" (got \"1080p\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Seedance 2.5 Flash request at launch; the request id is masked.
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:53.231Z",
"updated_at": "2026-11-15 10:39:41",
"completed_at": "2026-11-15 10:39:40"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the video file (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4 |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Seedance 2.5 Flash API Pricing — Per-Second Rates
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, up to 30-second output and native audio, at 480p or 720p (no Draft mode). Billed per second of output video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.07062/sec |
| 720p | $0.15876/sec |
Seedance 2.5 Flash API Documentation
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, output up to 30 seconds with native audio, at 480p or 720p. Animate a still image: give the first frame, or the first and last frames, and the model makes the motion between them. Returns one video file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/first-last-frame-to-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video (First & Last Frames) - Seedance 2.5 Flash
Request Code
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/first-last-frame-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{
"type": "text",
"text": "She smiles, takes her hands out of her pockets and waves at the camera as a light breeze moves her hair. Distant city sounds."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"duration": 4
}import requests
url = "https://gateway.pixazo.ai/seedance-2-5-flash/v1/first-last-frame-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{
"type": "text",
"text": "She smiles, takes her hands out of her pockets and waves at the camera as a light breeze moves her hair. Distant city sounds."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"duration": 4
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/seedance-2-5-flash/v1/first-last-frame-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"content": [
{
"type": "text",
"text": "She smiles, takes her hands out of her pockets and waves at the camera as a light breeze moves her hair. Distant city sounds."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"duration": 4
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/seedance-2-5-flash/v1/first-last-frame-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"content": [{"type": "text", "text": "She smiles, takes her hands out of her pockets and waves at the camera as a light breeze moves her hair. Distant city sounds."}, {"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"}}], "resolution": "480p", "duration": 4}'Output
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:54.111Z",
"updated_at": "2026-11-15 10:39:50",
"completed_at": "2026-11-15 10:39:48"
}Failure callback shape
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5-flash",
"error": "Generation failed: the request was rejected (\"ratio\" must be \"adaptive\" (or omitted) for first-last-frame-to-video on Seedance 2.5 — the output aspect ratio follows the input asset).",
"output": null,
"created_at": "2026-11-15T09:26:13.104Z",
"updated_at": "2026-11-15 09:26:20",
"completed_at": "2026-11-15 09:26:20"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 or 2 image items, plus an optional text item |
| One image: the video starts from it. Two images: the first and the last frame, in that order. Video and audio items are not accepted. | ||||
content[].type | Yesrequired | string | — | text, image_url |
| Content item type. | ||||
content[].text | No | string | — | one text item |
| How the scene moves between the frames. Prompts in Chinese, English, Spanish, Indonesian, Malay, Thai, Arabic, Portuguese, Vietnamese, Japanese and Korean generate natively. | ||||
content[].image_url.url | Yesrequired | string | — | public URL, or a Base64 data URI |
| A frame image: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF, under 30 MB, 300–6000 px a side, width/height between 0.4 and 2.5. | ||||
resolution | No | string | 720p | 480p, 720p |
| Output resolution. At 16:9, 480p is 854×480 and 720p is 1280×720. | ||||
ratio | No | string | adaptive | adaptive only |
| The output keeps the shape of the first frame. Any other value fails the request. | ||||
duration | No | integer | -1 | 4–30, or -1 |
| Output length in whole seconds. -1 lets the model choose a length from 4 to 30 seconds. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized speech, sound effects and music. false makes a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an “AI Generated” mark in the bottom-right corner. | ||||
output_format | No | string | mp4 | mp4, mov |
mov is a QuickTime file (H.264 with full 4:4:4 colour, PCM audio) for colour grading and for clips you will edit or extend. It comes through the same output.media_url and media_type as an mp4, so save the file as .mov. | ||||
How usage is measured
Billed per second of the delivered video, at its resolution (480p or 720p). The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
resolution 1080p or 4k | Flash renders 480p and 720p. | 480p or 720p, or Seedance 2.5 for 1080p or 4K |
draft | Flash has no Draft mode. | Seedance 2.5's Draft mode (draft: false is accepted and does nothing) |
a draft_task content item, draft_task or draft_task_id | Drafts belong to Seedance 2.5. | — |
ratio, output_format outside the allowed values | Checked when you submit. | a value from the table above |
generate_audio or watermark that is not true or false | Must be a JSON boolean. | true or false |
content missing, empty or not an array | There is nothing to generate from. | see content above |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
content | It has no image, more than 2 images, or a video or audio item. |
ratio | It is not adaptive. |
duration | It is not a whole number from 4 to 30, or -1. |
| the media | A file cannot be downloaded or breaks the limits below, or content moderation refuses the prompt or a file. |
Accepted but ignored
Any other field is dropped before the request reaches the model, for example seed, camera_fixed, return_last_frame, tools, priority and safety_identifier.
Input limits
Each frame image: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF, under 30 MB, 300–6000 px a side, width/height between 0.4 and 2.5. Keep the whole request under 64 MB: send large files as URLs, not Base64.
Using images & real people
Send each file as a public URL, or as a Base64 data URI for images and audio. Real people are allowed in files sent as URLs: the gateway registers those before the request, so photos and clips of real faces are not refused for showing a real person. A Base64 file is passed on as it is, and can be refused if it shows a real face.
Timing
The launch example took about 120 seconds from submit to result. Longer and 720p videos take longer. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"content": [
{
"type": "text",
"text": "She smiles, takes her hands out of her pockets and waves at the camera as a light breeze moves her hair. Distant city sounds."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"duration": 4
}Example Response
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'ratio' must be one of: \"21:9\", \"16:9\", \"4:3\", \"1:1\", \"3:4\", \"9:16\", \"adaptive\" (got \"5:4\")",
"violations": [
"'ratio' must be one of: \"21:9\", \"16:9\", \"4:3\", \"1:1\", \"3:4\", \"9:16\", \"adaptive\" (got \"5:4\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Seedance 2.5 Flash request at launch; the request id is masked.
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:54.111Z",
"updated_at": "2026-11-15 10:39:50",
"completed_at": "2026-11-15 10:39:48"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the video file (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4 |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Seedance 2.5 Flash API Pricing — Per-Second Rates
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, up to 30-second output and native audio, at 480p or 720p (no Draft mode). Billed per second of output video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.07062/sec |
| 720p | $0.15876/sec |
Seedance 2.5 Flash API Documentation
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, output up to 30 seconds with native audio, at 480p or 720p. Make a new video guided by reference images, videos and audio: a character, a product, a style, a motion or a voice. Returns one video file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/reference-to-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Reference to Video - Seedance 2.5 Flash
Request Code
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/reference-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{
"type": "text",
"text": "The woman in Image 1 walks along a sunny beach at the water's edge, laughing, the wind in her hair. Wide tracking shot, waves and seagulls."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"ratio": "16:9",
"duration": 4
}import requests
url = "https://gateway.pixazo.ai/seedance-2-5-flash/v1/reference-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{
"type": "text",
"text": "The woman in Image 1 walks along a sunny beach at the water's edge, laughing, the wind in her hair. Wide tracking shot, waves and seagulls."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"ratio": "16:9",
"duration": 4
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/seedance-2-5-flash/v1/reference-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"content": [
{
"type": "text",
"text": "The woman in Image 1 walks along a sunny beach at the water's edge, laughing, the wind in her hair. Wide tracking shot, waves and seagulls."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"ratio": "16:9",
"duration": 4
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/seedance-2-5-flash/v1/reference-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"content": [{"type": "text", "text": "The woman in Image 1 walks along a sunny beach at the water'\''s edge, laughing, the wind in her hair. Wide tracking shot, waves and seagulls."}, {"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"}}], "resolution": "480p", "ratio": "16:9", "duration": 4}'Output
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:54.980Z",
"updated_at": "2026-11-15 10:39:58",
"completed_at": "2026-11-15 10:39:57"
}Failure callback shape
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5-flash",
"error": "Generation failed: the request was rejected (Seedance 2.5 Flash takes at most 5 audio_url content items (got 6)).",
"output": null,
"created_at": "2026-11-15T09:26:13.905Z",
"updated_at": "2026-11-15 09:26:21",
"completed_at": "2026-11-15 09:26:21"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | at least one reference: up to 10 images, 5 videos and 5 audio clips, plus an optional text item |
| Any mix of images, videos and audio. Audio alone is a valid reference. | ||||
content[].type | Yesrequired | string | — | text, image_url, video_url, audio_url |
| Content item type. | ||||
content[].text | No | string | — | one text item |
| The prompt. Refer to your files by type and order, e.g. “Image 1”, “Video 1”, “Audio 1”. Prompts in Chinese, English, Spanish, Indonesian, Malay, Thai, Arabic, Portuguese, Vietnamese, Japanese and Korean generate natively. | ||||
content[].image_url.url | No | string | — | public URL, or a Base64 data URI |
| A reference image. | ||||
content[].video_url.url | No | string | — | public URL |
| A reference video. | ||||
content[].audio_url.url | No | string | — | public URL, or a Base64 data URI |
| A reference audio clip. | ||||
resolution | No | string | 720p | 480p, 720p |
| Output resolution. At 16:9, 480p is 854×480 and 720p is 1280×720. | ||||
ratio | No | string | adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| Output aspect ratio. adaptive lets the model choose from the prompt and the references. | ||||
duration | No | integer | -1 | 4–30, or -1 |
| Output length in whole seconds. -1 lets the model choose a length from 4 to 30 seconds. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized speech, sound effects and music. false makes a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an “AI Generated” mark in the bottom-right corner. | ||||
output_format | No | string | mp4 | mp4, mov |
mov is a QuickTime file (H.264 with full 4:4:4 colour, PCM audio) for colour grading and for clips you will edit or extend. It comes through the same output.media_url and media_type as an mp4, so save the file as .mov. | ||||
omni_reference_task_type | No | string | left out (the model decides) | auto, reference, edit, extend |
| What to do with the references. Left out or auto, the model decides from the prompt and may treat the request as an edit or an extension of a reference video, which then needs ratio adaptive (and duration -1 for an edit) or the request fails. reference keeps it a new video. edit and extend need a video and follow the Edit Video and Extend Video rules. | ||||
How usage is measured
Billed per second of the delivered video, at its resolution. When you send reference videos, their seconds are billed too, added to the output's, at the with-reference-videos rate. Reference images and audio add nothing. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
resolution 1080p or 4k | Flash renders 480p and 720p. | 480p or 720p, or Seedance 2.5 for 1080p or 4K |
draft | Flash has no Draft mode. | Seedance 2.5's Draft mode (draft: false is accepted and does nothing) |
a draft_task content item, draft_task or draft_task_id | Drafts belong to Seedance 2.5. | — |
ratio, output_format or omni_reference_task_type outside the allowed values | Checked when you submit. | a value from the table above |
generate_audio or watermark that is not true or false | Must be a JSON boolean. | true or false |
content missing, empty or not an array | There is nothing to generate from. | see content above |
| videos: more than 5, more than 30 seconds in total, or one under 2 or over 30 seconds | Videos the submit check can read are measured before the request is queued. | fewer or shorter videos |
| a video narrower than 300 or wider than 6000 pixels | Measured before the request is queued. | a resized video |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
content | It has no image, video or audio item, or more than 10 images or 5 audio clips. |
omni_reference_task_type | It is edit or extend and there is no video, or the ratio is not adaptive (or, for edit, the duration is not -1). |
| the prompt | Left to the model, it reads the request as an edit or an extension and the ratio or duration does not fit. |
duration | It is not a whole number from 4 to 30, or -1. |
| the media | A file cannot be downloaded or breaks the limits below, or content moderation refuses the prompt or a file. |
Accepted but ignored
Any other field is dropped before the request reaches the model, for example seed, camera_fixed, return_last_frame, tools, priority and safety_identifier.
Input limits
| Type | Max count | Format / size | Length |
|---|---|---|---|
image_url | 10 | JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF, under 30 MB, 300–6000 px a side, width/height between 0.4 and 2.5 | — |
video_url | 5 in all | MP4 or MOV (H.264 or H.265), up to 200 MB, 300–6000 px a side, width/height between 0.4 and 2.5, 407,696 to 8,295,044 pixels in all (854×480 is enough), 24–60 fps | Each video 2–30 seconds; all videos together at most 30 seconds. |
audio_url | 5 | MP3 or WAV, up to 15 MB | Each clip 2–30 seconds; all audio together at most 30 seconds. |
Keep the whole request under 64 MB: send large files as URLs. Videos cannot be sent as Base64.
Using images & real people
Send each file as a public URL, or as a Base64 data URI for images and audio. Real people are allowed in files sent as URLs: the gateway registers those before the request, so photos and clips of real faces are not refused for showing a real person. A Base64 file is passed on as it is, and can be refused if it shows a real face.
Timing
The launch example took about 130 seconds from submit to result. Longer and 720p videos take longer. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"content": [
{
"type": "text",
"text": "The woman in Image 1 walks along a sunny beach at the water's edge, laughing, the wind in her hair. Wide tracking shot, waves and seagulls."
},
{
"type": "image_url",
"image_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
}
],
"resolution": "480p",
"ratio": "16:9",
"duration": 4
}Example Response
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'omni_reference_task_type' must be one of: \"auto\", \"reference\", \"edit\", \"extend\" (got \"remix\")",
"violations": [
"'omni_reference_task_type' must be one of: \"auto\", \"reference\", \"edit\", \"extend\" (got \"remix\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Seedance 2.5 Flash request at launch; the request id is masked.
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:54.980Z",
"updated_at": "2026-11-15 10:39:58",
"completed_at": "2026-11-15 10:39:57"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the video file (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4 |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Seedance 2.5 Flash API Pricing — Per-Second Rates
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, up to 30-second output and native audio, at 480p or 720p (no Draft mode). Billed per second of output video. When you send reference videos, their seconds are added to the output's and billed at the with-reference-videos rate.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.07062/sec |
| 720p | $0.15876/sec |
| 480p · with reference videos | $0.04338/sec |
| 720p · with reference videos | $0.09752/sec |
Seedance 2.5 Flash API Documentation
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, output up to 30 seconds with native audio, at 480p or 720p. Change an existing video with a written instruction: restyle it, replace an object, change the setting. Returns one video file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/edit-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Edit Video - Seedance 2.5 Flash
Request Code
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/edit-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{
"type": "text",
"text": "Change the room in Video 1 into a cozy library with tall wooden bookshelves and warm lamp light. Keep the man, his words and his gestures unchanged."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p"
}import requests
url = "https://gateway.pixazo.ai/seedance-2-5-flash/v1/edit-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{
"type": "text",
"text": "Change the room in Video 1 into a cozy library with tall wooden bookshelves and warm lamp light. Keep the man, his words and his gestures unchanged."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/seedance-2-5-flash/v1/edit-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"content": [
{
"type": "text",
"text": "Change the room in Video 1 into a cozy library with tall wooden bookshelves and warm lamp light. Keep the man, his words and his gestures unchanged."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/seedance-2-5-flash/v1/edit-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"content": [{"type": "text", "text": "Change the room in Video 1 into a cozy library with tall wooden bookshelves and warm lamp light. Keep the man, his words and his gestures unchanged."}, {"type": "video_url", "video_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"}}], "resolution": "480p"}'Output
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:57.343Z",
"updated_at": "2026-11-15 10:40:05",
"completed_at": "2026-11-15 10:40:04"
}Failure callback shape
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5-flash",
"error": "Generation failed: the request was rejected (\"duration\" must be -1 (or omitted) for edit-video on Seedance 2.5 — the output length follows the input video).",
"output": null,
"created_at": "2026-11-15T09:26:15.800Z",
"updated_at": "2026-11-15 09:26:23",
"completed_at": "2026-11-15 09:26:23"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | a text item, the video to edit, and optional reference images |
| Describe the change in the text. | ||||
content[].type | Yesrequired | string | — | text, video_url, image_url |
| Content item type. | ||||
content[].text | Yesrequired | string | — | one text item |
| The edit instruction, e.g. “Replace the red car in Video 1 with a white horse.” The model has to read it as an edit: if it reads it as something else, the request fails. Prompts in Chinese, English, Spanish, Indonesian, Malay, Thai, Arabic, Portuguese, Vietnamese, Japanese and Korean generate natively. | ||||
content[].video_url.url | Yesrequired | string | — | public URL |
| The video to edit, 4–30 seconds. | ||||
content[].image_url.url | No | string | — | public URL, or a Base64 data URI |
| A reference image for the edit, e.g. the new object. | ||||
resolution | No | string | 720p | 480p, 720p |
| Output resolution. At 16:9, 480p is 854×480 and 720p is 1280×720. | ||||
ratio | No | string | adaptive | adaptive only |
| The output keeps the shape of the video to edit. Any other value fails the request. | ||||
duration | No | integer | -1 | -1 only |
| The output is about as long as the video to edit (it can be slightly shorter, and need not be whole seconds). Any other value fails the request. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized speech, sound effects and music. false makes a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an “AI Generated” mark in the bottom-right corner. | ||||
output_format | No | string | mp4 | mp4, mov |
mov is a QuickTime file (H.264 with full 4:4:4 colour, PCM audio) for colour grading and for clips you will edit or extend. It comes through the same output.media_url and media_type as an mp4, so save the file as .mov. | ||||
How usage is measured
Billed per second of video at the output resolution: the seconds of every video you send plus the seconds of the delivered video. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
resolution 1080p or 4k | Flash renders 480p and 720p. | 480p or 720p, or Seedance 2.5 for 1080p or 4K |
draft | Flash has no Draft mode. | Seedance 2.5's Draft mode (draft: false is accepted and does nothing) |
a draft_task content item, draft_task or draft_task_id | Drafts belong to Seedance 2.5. | — |
ratio, output_format outside the allowed values | Checked when you submit. | a value from the table above |
generate_audio or watermark that is not true or false | Must be a JSON boolean. | true or false |
content missing, empty or not an array | There is nothing to generate from. | see content above |
| the video to edit under 4 or over 30 seconds (when it is the only video) | Measured before the request is queued. | a 4–30 second video |
| a video narrower than 300 or wider than 6000 pixels | Measured before the request is queued. | a resized video |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
content | It has no video, or more than 10 images or 5 videos. |
ratio | It is not adaptive. |
duration | It is not -1. |
omni_reference_task_type | It is sent and is not edit. |
| the prompt | The model does not read it as an edit. |
| the media | A file cannot be downloaded or breaks the limits below, or content moderation refuses the prompt or a file. |
Accepted but ignored
Any other field is dropped before the request reaches the model, for example seed, camera_fixed, return_last_frame, tools, priority and safety_identifier.
Input limits
| Type | Max count | Format / size | Length |
|---|---|---|---|
image_url | 10 | JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF, under 30 MB, 300–6000 px a side, width/height between 0.4 and 2.5 | — |
video_url | 5 in all, the one to edit included | MP4 or MOV (H.264 or H.265), up to 200 MB, 300–6000 px a side, width/height between 0.4 and 2.5, 407,696 to 8,295,044 pixels in all (854×480 is enough), 24–60 fps | Each video 2–30 seconds (the video to edit 4–30); all videos together at most 30 seconds. |
Keep the whole request under 64 MB: send large files as URLs. Videos cannot be sent as Base64.
Using images & real people
Send each file as a public URL, or as a Base64 data URI for images and audio. Real people are allowed in files sent as URLs: the gateway registers those before the request, so photos and clips of real faces are not refused for showing a real person. A Base64 file is passed on as it is, and can be refused if it shows a real face.
Timing
The launch example took about 130 seconds from submit to result. Longer and 720p videos take longer. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"content": [
{
"type": "text",
"text": "Change the room in Video 1 into a cozy library with tall wooden bookshelves and warm lamp light. Keep the man, his words and his gestures unchanged."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p"
}Example Response
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'resolution' must be one of: \"480p\", \"720p\" (got \"4k\")",
"violations": [
"'resolution' must be one of: \"480p\", \"720p\" (got \"4k\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Seedance 2.5 Flash request at launch; the request id is masked.
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:57.343Z",
"updated_at": "2026-11-15 10:40:05",
"completed_at": "2026-11-15 10:40:04"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the video file (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4 |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Seedance 2.5 Flash API Pricing — Per-Second Rates
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, up to 30-second output and native audio, at 480p or 720p (no Draft mode). Billed per second of the input video plus the output video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.04338/sec |
| 720p | $0.09752/sec |
Seedance 2.5 Flash API Documentation
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, output up to 30 seconds with native audio, at 480p or 720p. Continue an existing video forward or backward, keeping its look and motion. Returns one video file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/extend-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Extend Video - Seedance 2.5 Flash
Request Code
POST https://gateway.pixazo.ai/seedance-2-5-flash/v1/extend-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{
"type": "text",
"text": "Extend Video 1 forward: the man finishes his point, smiles, leans back and gives a thumbs-up to the camera."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p",
"duration": 4,
"output_format": "mov"
}import requests
url = "https://gateway.pixazo.ai/seedance-2-5-flash/v1/extend-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{
"type": "text",
"text": "Extend Video 1 forward: the man finishes his point, smiles, leans back and gives a thumbs-up to the camera."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p",
"duration": 4,
"output_format": "mov"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/seedance-2-5-flash/v1/extend-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"content": [
{
"type": "text",
"text": "Extend Video 1 forward: the man finishes his point, smiles, leans back and gives a thumbs-up to the camera."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p",
"duration": 4,
"output_format": "mov"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/seedance-2-5-flash/v1/extend-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"content": [{"type": "text", "text": "Extend Video 1 forward: the man finishes his point, smiles, leans back and gives a thumbs-up to the camera."}, {"type": "video_url", "video_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"}}], "resolution": "480p", "duration": 4, "output_format": "mov"}'Output
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:59.171Z",
"updated_at": "2026-11-15 10:40:12",
"completed_at": "2026-11-15 10:40:11"
}Failure callback shape
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5-flash",
"error": "Generation failed: the request was rejected (\"ratio\" must be \"adaptive\" (or omitted) for extend-video on Seedance 2.5 — the output aspect ratio follows the input asset).",
"output": null,
"created_at": "2026-11-15T09:26:17.711Z",
"updated_at": "2026-11-15 09:26:24",
"completed_at": "2026-11-15 09:26:24"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | a text item, the video to extend, and optional reference images, videos and audio (5 videos in all, the one to extend included) |
| Say in the text which way to extend and what happens next. | ||||
content[].type | Yesrequired | string | — | text, video_url, image_url, audio_url |
| Content item type. | ||||
content[].text | Yesrequired | string | — | one text item |
| The extension, e.g. “Extend Video 1 forward: the fox reaches the river and drinks.” The model has to read it as an extension: if it reads it as something else, the request fails. Prompts in Chinese, English, Spanish, Indonesian, Malay, Thai, Arabic, Portuguese, Vietnamese, Japanese and Korean generate natively. | ||||
content[].video_url.url | Yesrequired | string | — | public URL |
| The video to extend (2–30 seconds), then any reference videos. | ||||
content[].image_url.url | No | string | — | public URL, or a Base64 data URI |
| A reference image. | ||||
content[].audio_url.url | No | string | — | public URL, or a Base64 data URI |
| A reference audio clip. | ||||
resolution | No | string | 720p | 480p, 720p |
| Output resolution. At 16:9, 480p is 854×480 and 720p is 1280×720. | ||||
ratio | No | string | adaptive | adaptive only |
| The output keeps the shape of the video to extend. Any other value fails the request. | ||||
duration | No | integer | -1 | 4–30, or -1 |
| Output length in whole seconds. -1 lets the model choose a length from 4 to 30 seconds. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized speech, sound effects and music. false makes a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an “AI Generated” mark in the bottom-right corner. | ||||
output_format | No | string | mp4 | mp4, mov |
mov is a QuickTime file (H.264 with full 4:4:4 colour, PCM audio) for colour grading and for clips you will edit or extend. It comes through the same output.media_url and media_type as an mp4, so save the file as .mov. | ||||
How usage is measured
Billed per second of video at the output resolution: the seconds of every video you send plus the seconds of the delivered video. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
resolution 1080p or 4k | Flash renders 480p and 720p. | 480p or 720p, or Seedance 2.5 for 1080p or 4K |
draft | Flash has no Draft mode. | Seedance 2.5's Draft mode (draft: false is accepted and does nothing) |
a draft_task content item, draft_task or draft_task_id | Drafts belong to Seedance 2.5. | — |
ratio, output_format outside the allowed values | Checked when you submit. | a value from the table above |
generate_audio or watermark that is not true or false | Must be a JSON boolean. | true or false |
content missing, empty or not an array | There is nothing to generate from. | see content above |
| a video under 2 or over 30 seconds | Measured before the request is queued. | a 2–30 second video |
| a video narrower than 300 or wider than 6000 pixels | Measured before the request is queued. | a resized video |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
content | It has no video or no text item, or more than 10 images, 5 videos or 5 audio clips. |
ratio | It is not adaptive. |
duration | It is not a whole number from 4 to 30, or -1. |
omni_reference_task_type | It is sent and is not extend. |
| the prompt | The model does not read it as an extension. |
| the media | A file cannot be downloaded or breaks the limits below, or content moderation refuses the prompt or a file. |
Accepted but ignored
Any other field is dropped before the request reaches the model, for example seed, camera_fixed, return_last_frame, tools, priority and safety_identifier.
Input limits
| Type | Max count | Format / size | Length |
|---|---|---|---|
image_url | 10 | JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF, under 30 MB, 300–6000 px a side, width/height between 0.4 and 2.5 | — |
video_url | 5 in all, the one to extend included | MP4 or MOV (H.264 or H.265), up to 200 MB, 300–6000 px a side, width/height between 0.4 and 2.5, 407,696 to 8,295,044 pixels in all (854×480 is enough), 24–60 fps | Each video 2–30 seconds; all videos together at most 30 seconds. |
audio_url | 5 | MP3 or WAV, up to 15 MB | Each clip 2–30 seconds; all audio together at most 30 seconds. |
Keep the whole request under 64 MB: send large files as URLs. Videos cannot be sent as Base64.
Using images & real people
Send each file as a public URL, or as a Base64 data URI for images and audio. Real people are allowed in files sent as URLs: the gateway registers those before the request, so photos and clips of real faces are not refused for showing a real person. A Base64 file is passed on as it is, and can be refused if it shows a real face.
Timing
The launch example took about 140 seconds from submit to result. Longer and 720p videos take longer. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"content": [
{
"type": "text",
"text": "Extend Video 1 forward: the man finishes his point, smiles, leans back and gives a thumbs-up to the camera."
},
{
"type": "video_url",
"video_url": {
"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-5s.mp4"
}
}
],
"resolution": "480p",
"duration": 4,
"output_format": "mov"
}Example Response
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'output_format' must be one of: \"mp4\", \"mov\" (got \"webm\")",
"violations": [
"'output_format' must be one of: \"mp4\", \"mov\" (got \"webm\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Seedance 2.5 Flash request at launch; the request id is masked.
{
"request_id": "seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-15T10:37:59.171Z",
"updated_at": "2026-11-15 10:40:12",
"completed_at": "2026-11-15 10:40:11"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the video file (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4 |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Seedance 2.5 Flash API Pricing — Per-Second Rates
Seedance 2.5 Flash is the faster, lower-cost Seedance 2.5: the same task types, up to 30-second output and native audio, at 480p or 720p (no Draft mode). Billed per second of the input video plus the output video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.04338/sec |
| 720p | $0.09752/sec |
Seedance 2.5 API Documentation
Seedance 2.5 is a high-quality AI video generator. This is the standard model — best quality, with output up to 30 seconds at up to 4K.
What this does: Describe a scene in plain words and get a short video of it.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [{ type: 'text', text: 'A cat walking on the beach' }]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}'
Output
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
With "draft": true (and "resolution": "480p"), the response also returns draft_request_id. Send it to POST /seedance-2-5/v1/draft-to-video within 14 days to get the 1080p final (see draft in Request Parameters).
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 2.5 text-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text item |
Input content array. Pass a single text item: {"type":"text","text":"…"}. | ||||
content[].type | Yesrequired | string | — | "text" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: up to 1,000 English words (or 500 Chinese characters) |
| Prompt describing the desired video. Seedance 2.5 generates natively from English, Spanish, Indonesian, Portuguese, Japanese, Malay, Thai, Arabic, Vietnamese and Korean prompts. Very long prompts scatter the model’s attention and details start to get dropped. | ||||
tools | No | array | — | [{"type":"web_search"}] |
| Optional enhancement — text-to-video only. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
Output aspect ratio. adaptive lets the model choose the ratio from your prompt. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
Output resolution — at 16:9, 480p is 854×480, 720p is 1280×720, 1080p is 1920×1080 and 4k is 3840×2160. 1080p and 4k are 10-bit H.265/HEVC: some browsers cannot play them, so open the file in VLC, mpv or QuickTime Player if it does not play. A Draft is always 480p. | ||||
draft | No | boolean | false | true, false |
Draft mode. true makes a 480p Draft video: a quick way to check the scene, the motion and the prompt. resolution must be "480p" (send it in the request; any other value, or none, is refused). Send a JSON boolean (true, not "true"). A Draft is billed as a normal 480p video. The response to this request also returns draft_request_id (the same value as its request_id): keep it, and within 14 days POST it as draft_request_id to /seedance-2-5/v1/draft-to-video to get the 1080p final, which reuses this request’s prompt, media, duration, aspect ratio and audio setting. | ||||
duration | No | integer | -1 | 4–30, or -1 (model auto-selects) |
Output video length in seconds. Use -1 to let the model choose a suitable whole-second length inside the 4–30s range. | ||||
generate_audio | No | boolean | true | true, false |
Generate synchronized audio along with the video — speech, sound effects and background music inferred from the prompt and the visuals. Put spoken lines in double quotes inside the prompt for the best result. Generated audio is returned as a 2-channel stereo track, though the stereo field is narrow; set false for a silent video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the generated video. mp4 plays everywhere; mov is the professional option (H.264 video, YUV 4:4:4 chroma, PCM audio) for colour grading, keying and compositing, and is recommended when the clip will be fed back in for editing or extension — some players cannot open it. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation (the default 172800 is 48 hours). Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; equal priorities stay FIFO and running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Format | Description |
|---|---|---|
| text | {"type":"text","text":"..."} | The generation prompt (required). May include in-prompt directives below. |
In-Prompt Directives (optional)
Seedance 2.5 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
How Billing Is Measured
Billed per second of the delivered video, at its resolution: 480p and 720p share one rate, and 1080p and 4k each have their own (see the pricing panel on this page). Seconds are counted on the delivered video, which is usually a few hundredths of a second longer than the duration you ask for. A Draft is billed as a normal 480p video. Nothing is charged for a request that fails.
Example Request
{
"content": [
{"type": "text", "text": "A cinematic shot of a cat on a tropical beach at golden hour --resolution 720p --seed 42 --framepersecond 24 --camerafixed false"}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 15,
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.5 API Pricing — Per-Second Rates
Seedance 2.5 is the newest generation: up to 30-second output, up to 50 multimodal reference assets, native multilingual audio, and video extension. 480p, 720p, 1080p or 4K. Draft mode: a 480p preview, billed as a 480p video, then its 1080p final with Draft to Video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.103/sec |
| 720p | $0.231/sec |
| 1080p | $0.569/sec |
| 4K | $0.914/sec |
Seedance 2.5 API Documentation
Seedance 2.5 is a high-quality AI video generator. This is the standard model — best quality, with output up to 30 seconds at up to 4K.
What this does: Give a starting image (and optionally an ending image), and it creates a video that animates between them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/first-last-frame-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video (First & Last Frames) - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/first-last-frame-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/first-last-frame-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/first-last-frame-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } },
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/first-last-frame-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}'
Output
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
With "draft": true (and "resolution": "480p"), the response also returns draft_request_id. Send it to POST /seedance-2-5/v1/draft-to-video within 14 days to get the 1080p final (see draft in Request Parameters).
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.5 image-to-video (first & last frames)
Note: For first/last-frame generation, ratio must be adaptive — the output follows the first frame's aspect ratio.
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1–2 image_url items; optional 1 text item |
Input list. One image = first-frame mode; two images = first + last frame mode. video_url and audio_url items are rejected on this route with 400. | ||||
content[].type | Yesrequired | string | — | "text", "image_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: ≤ 1,000 English words (or 500 Chinese characters) |
| Optional motion / scene-transition prompt. English works on every model; Seedance 2.5 also accepts Spanish, Portuguese, Japanese, Korean, Indonesian, Malay, Thai, Arabic and Vietnamese. Very long prompts scatter the model's attention and details get dropped — keep it focused. | ||||
content[].image_url.url | Yesrequired | string | — | Public HTTPS URL, base64 data URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; 300–6000 px per side; aspect ratio (w/h) 0.4–2.5; < 30 MB per image |
The frame image. With one image it is the first frame and motion is added from there; with two, the first is the opening frame and the second the closing frame. Base64 must be data:image/<format>;base64,… with a lowercase format. Each image must stay under 30 MB and the whole request body under 64 MB — use URLs rather than base64 for large files. | ||||
content[].role | Required when 2 images | string | "first_frame" (single image) | "first_frame", "last_frame" |
Frame position. In two-image mode the provider requires role on both items; the gateway auto-assigns first_frame to the 1st image and last_frame to the 2nd in array order if you omit it. The two frames may be identical. If their aspect ratios differ, the first frame takes precedence and the last frame is centre-cropped to match. | ||||
ratio | No | string | "adaptive" | "adaptive" only |
Locked for this task type — Seedance 2.5 first/last-frame generation accepts no other value and rejects one with 400. The output automatically keeps the first frame's aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
Output resolution. 1080p and 4k are 10-bit H.265/HEVC: some browsers cannot play them, so open the file in VLC, mpv or QuickTime Player if it does not play. A Draft is always 480p. | ||||
draft | No | boolean | false | true, false |
Draft mode. true makes a 480p Draft video: a quick way to check the scene, the motion and the prompt. resolution must be "480p" (send it in the request; any other value, or none, is refused). Send a JSON boolean (true, not "true"). A Draft is billed as a normal 480p video. The response to this request also returns draft_request_id (the same value as its request_id): keep it, and within 14 days POST it as draft_request_id to /seedance-2-5/v1/draft-to-video to get the 1080p final, which reuses this request’s prompt, media, duration, aspect ratio and audio setting. | ||||
duration | No | integer | -1 | 4–30, or -1 (model auto-selects) |
Output video length in seconds. Use -1 to let the model pick a suitable whole-second length inside the 4–30 s range. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio — voice, sound effects and background music — matched to the prompt and the visuals. Generated audio is returned as a 2-channel stereo track, though the stereo field is narrow. Put spoken lines in double quotes inside the prompt for the best dialogue result. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the generated video. mov carries higher colour precision and is recommended for video editing and extension; some players cannot open it. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image_url | 2 | jpeg/png/webp/bmp/tiff/gif/heic/heif · < 30 MB each | 1st = first frame (required); 2nd = last frame (optional). {"type":"image_url","image_url":{"url":"https://..."}} |
| text | 1 | — | Optional motion/style prompt. {"type":"text","text":"..."} |
In-Prompt Directives (optional)
Seedance 2.5 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Content Item Types
| Type | Format | Description |
|---|---|---|
text | {"type":"text","text":"..."} | Optional. Text prompt describing motion / scene transition. Maximum 1 text item. |
image_url (1st) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. First image_url in array order. Worker auto-injects role first_frame. |
image_url (2nd) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. Second image_url in array order. Worker auto-injects role last_frame. |
video_url | — | Not accepted on this route (rejected with 400). |
audio_url | — | Not accepted on this route (rejected with 400). |
Image Constraints (per image_url item)
| Constraint | Value |
|---|---|
| Formats | jpeg, png, webp, bmp, tiff, gif, heic, heif |
| Max file size | Under 30 MB per image; total request body under 64 MB |
| Pixel dimensions | 300–6000 px on each side |
| Aspect ratio (w/h) | 0.4 – 2.5 |
| Number of images | 1 (first frame only) or 2 (first + last frame) |
| How to supply | Public HTTPS URL, data:image/<format>;base64,… (lowercase format), or asset://<ID>. Prefer URLs for large files. |
How Billing Is Measured
Billed per second of the delivered video, at its resolution: 480p and 720p share one rate, and 1080p and 4k each have their own (see the pricing panel on this page). Seconds are counted on the delivered video, which is usually a few hundredths of a second longer than the duration you ask for. A Draft is billed as a normal 480p video. Nothing is charged for a request that fails.
Example Request
{
"content": [
{"type": "text", "text": "Time-lapse from winter to spring; snow melts, leaves green, flowers bloom; cinematic motion."},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"ratio": "adaptive",
"duration": 5,
"resolution": "720p",
"generate_audio": true,
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.5 API Pricing — Per-Second Rates
Seedance 2.5 is the newest generation: up to 30-second output, up to 50 multimodal reference assets, native multilingual audio, and video extension. 480p, 720p, 1080p or 4K. Draft mode: a 480p preview, billed as a 480p video, then its 1080p final with Draft to Video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.103/sec |
| 720p | $0.231/sec |
| 1080p | $0.569/sec |
| 4K | $0.914/sec |
Seedance 2.5 API Documentation
Seedance 2.5 is a high-quality AI video generator. This is the standard model — best quality, with output up to 30 seconds at up to 4K.
What this does: Give it photos (and/or short clips) of people or things, and it creates a video featuring them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/reference-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Reference to Video - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/reference-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/reference-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/reference-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/reference-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}'
Output
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
With "draft": true (and "resolution": "480p"), the response also returns draft_request_id. Send it to POST /seedance-2-5/v1/draft-to-video within 14 days to get the 1080p final (see draft in Request Parameters).
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.5 reference-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | optional text (at most one text item) + 0–30 images and/or 0–10 videos and/or 0–10 audio clips; 50 references max |
| Multimodal reference input. Any combination of image, video and audio references — in 2.5 audio alone is a valid reference. Put the whole prompt in one text item: a request with more than one is rejected (not charged). Keep the whole request body under 64 MB; send large assets as URLs rather than base64. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url", "audio_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: ≤ 1,000 English words (≤ 500 Chinese characters) |
| Prompt; refer to uploads by order, e.g. "Image 1", "Video 1". English is supported by every Seedance model; 2.5 also generates natively from Spanish, Portuguese, Japanese, Korean, Indonesian, Malay, Thai, Arabic and Vietnamese prompts. Longer prompts scatter the model's attention and details start getting dropped. | ||||
content[].image_url.url | Conditional | string | — | URL, base64 data URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB each; 300–6000 px per side; aspect ratio (w/h) 0.4–2.5; 1–30 images |
| Upload up to 30 reference images the model takes subject, style or composition cues from, to keep your result consistent. JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC or HEIF; under 30 MB each; every side 300–6000 px with a width/height ratio between 0.4 and 2.5. | ||||
content[].video_url.url | Conditional | string | — | URL or asset://<ID>; mp4/mov; max 200 MB each; 2–30 s per clip and 30 s combined; 300–6000 px per side; aspect ratio (w/h) 0.4–2.5; 409,600–8,295,044 total pixels; 24–60 FPS |
| Upload up to 10 reference videos the model takes motion or style cues from. MP4 or MOV, 480p to 4K source; each clip 2–30 seconds and under 200 MB; 30 seconds combined across all videos. Clips under 20 seconds usually transfer motion best. | ||||
content[].audio_url.url | Conditional | string | — | URL, base64 data URI, or asset://<ID>; wav/mp3; max 15 MB each; 2–30 s per clip and 30 s combined |
| Upload up to 10 audio clips as a reference for music, dialogue, voice, tone or timbre. MP3 or WAV; each clip 2–30 seconds and under 15 MB; 30 seconds combined. In Seedance 2.5 audio can be the only reference you send. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video", "reference_audio" |
Role of each reference item — reference_image on images, reference_video on videos, reference_audio on audio. The gateway sets it automatically from the item type; any value you send is overwritten. (The provider's first_frame/last_frame roles belong to the separate image-to-video modes, which cannot be mixed with reference input.) | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
Output aspect ratio. adaptive lets the model pick one from the task type and your inputs. Video-editing and video-extension requests keep the input video's ratio and accept only adaptive. If you leave omni_reference_task_type out (or set it to auto) and your prompt edits or extends an input video, set ratio to adaptive and, for editing, duration to -1 — or leave both out; otherwise the job fails afterwards with TaskTypeConstraint (not charged). If you set it to edit or extend, these values are checked before any video is made (see omni_reference_task_type). To edit or extend a video, you can also use the edit-video or extend-video endpoint. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
Output resolution. 1080p and 4k are 10-bit H.265/HEVC: some browsers cannot play them, so open the file in VLC, mpv or QuickTime Player if it does not play. A Draft is always 480p. | ||||
draft | No | boolean | false | true, false |
Draft mode. true makes a 480p Draft video: a quick way to check the scene, the motion and the prompt. resolution must be "480p" (send it in the request; any other value, or none, is refused). Send a JSON boolean (true, not "true"). A Draft is billed as a normal 480p video. The response to this request also returns draft_request_id (the same value as its request_id): keep it, and within 14 days POST it as draft_request_id to /seedance-2-5/v1/draft-to-video to get the 1080p final, which reuses this request’s prompt, media, duration, aspect ratio and audio setting. | ||||
duration | No | integer | -1 | 4–30, or -1 (model auto-selects) |
Output video length in seconds. Use -1 to let the model choose a suitable length. Video-editing requests accept only -1 and keep the input clip's length. If you leave omni_reference_task_type out (or set it to auto) and your prompt edits or extends an input video, set ratio to adaptive and, for editing, duration to -1 — or leave both out; otherwise the job fails afterwards with TaskTypeConstraint (not charged). If you set it to edit or extend, these values are checked before any video is made (see omni_reference_task_type). To edit or extend a video, you can also use the edit-video or extend-video endpoint. | ||||
omni_reference_task_type | No | string | "auto" | "auto", "reference", "edit", "extend" |
Which task you want. auto (default): the model decides from your prompt and inputs; if ratio, duration or the length of the video it edits (4–30 s) do not fit the task it picks, the job fails afterwards with TaskTypeConstraint (not charged). reference: a new video built from your references; no extra ratio/duration limits. edit: edit an input video; needs at least one video in content (4–30 s), ratio adaptive (or omit it) and duration -1 (or omit it). extend: extend an input video forwards or backwards; needs at least one video, ratio adaptive (or omit it). With edit or extend, a request that breaks these rules is rejected straight away, before any video is made, and is not charged. The model still reads your prompt: if it disagrees with the task you set, the job fails with TaskTypeMismatch (not charged). | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video — speech, sound effects and music matched to the prompt and footage. Put spoken lines in double quotes to steer the dialogue. Generated audio is returned as a 2-channel stereo track, though the stereo field is narrow. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the generated video. mov carries higher colour precision and is recommended for video editing and extension; some players cannot open it. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types & Limits
| Type | Max count | Format / Size | Description |
|---|---|---|---|
| image_url | up to 30 | JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF · < 30 MB each · 300–6000 px/side | Reference image for character consistency, style, or composition. {"type":"image_url","image_url":{"url":"https://..."}} |
| video_url | up to 10 | MP4, MOV · ≤ 200 MB each · 2–30s per clip · ≤ 30s combined | Reference video for motion / style transfer. {"type":"video_url","video_url":{"url":"https://..."}} |
| audio_url | up to 10 | MP3, WAV · 2–30s per clip · ≤ 30s combined · ≤ 15 MB each | Reference audio for audio-driven generation & lip-sync. In Seedance 2.5 audio can be the only reference. {"type":"audio_url","audio_url":{"url":"https://..."}} |
| text | 1 | — | Prompt. Address references by their 1-indexed array order — [Image1], [Video1], [Audio1] (plain "Image 1" also works). |
Asset budget: up to 50 references in total — at most 30 images, 10 videos and 10 audio clips. Video references may total 30 seconds combined, and audio references 30 seconds combined.
In-Prompt Directives (optional)
Seedance 2.5 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
How Billing Is Measured
Billed per second of the delivered video, at its resolution: 480p and 720p share one rate, and 1080p and 4k each have their own (see the pricing panel on this page). When you send reference videos, their seconds are added to the output’s and the total is billed at the lower with-video rate; reference images and audio add nothing. Very short input videos can be billed at a minimum length. A Draft is billed as a normal 480p video, its reference videos included. Nothing is charged for a request that fails.
Example Request
{
"content": [
{"type": "text", "text": "Use Image 1 as the opening frame and Image 2 as the closing frame. Smooth cinematic transition between them with gentle camera motion. --resolution 720p"},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.5 API Pricing — Per-Second Rates
Seedance 2.5 is the newest generation: up to 30-second output, up to 50 multimodal reference assets, native multilingual audio, and video extension. 480p, 720p, 1080p or 4K. Draft mode: a 480p preview, billed as a 480p video, then its 1080p final with Draft to Video.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.103/sec |
| 720p | $0.231/sec |
| 1080p | $0.569/sec |
| 4K | $0.914/sec |
| 480p · with reference videos (input + output seconds) | $0.06149/sec |
| 720p · with reference videos (input + output seconds) | $0.13824/sec |
| 1080p · with reference videos (input + output seconds) | $0.3402/sec |
| 4K · with reference videos (input + output seconds) | $0.56376/sec |
Seedance 2.5 API Documentation
Seedance 2.5 is a high-quality AI video generator. This is the standard model — best quality, with output up to 30 seconds at up to 4K.
What this does: Upload a video plus a text instruction, and it changes the video to match your request.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/edit-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Edit Video - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/edit-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "text", "text": "Change the color of the truck to orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/edit-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "text", "text": "Change the color of the truck to orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/edit-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'text', text: 'Change the color of the truck to orange' },
{ type: 'video_url', video_url: { url: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/edit-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "text", "text": "Change the color of the truck to orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}'
Output
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
With "draft": true (and "resolution": "480p"), the response also returns draft_request_id. Send it to POST /seedance-2-5/v1/draft-to-video within 14 days to get the 1080p final (see draft in Request Parameters).
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.5 edit-video
Note: For video editing, ratio must be adaptive and duration must be -1 — the output tracks the input video.
Note: Your prompt must clearly ask for an edit — use words such as "edit the video", "add", "remove" or "delete", "replace", "change" or "modify". Example: "Replace the character in @Video 1 with the character in @Image 1". If the model reads your prompt as a different task, the job fails with TaskTypeMismatch (not charged).
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text + 1 video_url (required) + optional image_url |
| Edit instruction + the video to edit, plus an optional reference image. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words |
| Edit instruction; refer to uploads by order, e.g. "Image 1", "Video 1". Include an explicit edit verb (add, remove, replace, change, edit) so the model classifies the request as an edit instead of a new generation. | ||||
content[].image_url.url | No | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB; 300–6000 px per side; aspect ratio 0.4–2.5 |
| Optional reference image — the object, character, or scene to bring into the edited video. Under 30 MB. Omit it to edit the video from the text instruction alone. | ||||
content[].video_url.url | Yesrequired | string | — | URL or asset://<ID>; mp4/mov (H.264 or H.265 video, AAC or MP3 audio); 4–30 s; 24–60 FPS; max 200 MB; 300–6000 px per side |
| Upload the video you want to edit. MP4 or MOV, up to 200 MB, and 4–30 seconds long — a source clip shorter than 4 s or longer than 30 s is rejected. MOV is recommended for editing (higher colour precision). | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "adaptive" only |
Locked for video editing. The output always keeps the source video’s aspect ratio, so adaptive is the only accepted value. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
Output resolution. 1080p and 4k are 10-bit H.265/HEVC: some browsers cannot play them, so open the file in VLC, mpv or QuickTime Player if it does not play. A Draft is always 480p. | ||||
draft | No | boolean | false | true, false |
Draft mode. true makes a 480p Draft video: a quick way to check the scene, the motion and the prompt. resolution must be "480p" (send it in the request; any other value, or none, is refused). Send a JSON boolean (true, not "true"). A Draft is billed as a normal 480p video. The response to this request also returns draft_request_id (the same value as its request_id): keep it, and within 14 days POST it as draft_request_id to /seedance-2-5/v1/draft-to-video to get the 1080p final, which reuses this request’s prompt, media, duration, aspect ratio and audio setting. | ||||
duration | No | integer | -1 | -1 only |
Locked for video editing. The output tracks the source video’s length (it may come back up to 0.4 s shorter, and may be a non-integer number of seconds), so -1 is the only accepted value. | ||||
omni_reference_task_type | No | string | "edit" | "edit" only |
Set to edit for you on this endpoint; any other value is rejected. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the generated video. mov carries higher colour precision and is recommended for video editing and extension; some players cannot open it. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video_url | 10 | MP4 or MOV · ≤ 200 MB each · 4–30 s · 30 s total | Source video to edit (required). {"type":"video_url","video_url":{"url":"https://..."}} |
| text | 1 | — | Edit instructions. {"type":"text","text":"..."} |
| image_url | 30 | JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF · < 30 MB each | Optional style / reference image. {"type":"image_url","image_url":{"url":"https://..."}} |
In-Prompt Directives (optional)
Seedance 2.5 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--rs | --rs 720p | Output resolution (480p / 720p / 1080p / 4k). Equivalent to the resolution field. |
--wm | --wm true | Add the "AI Generated" watermark. Equivalent to the watermark field. |
How Billing Is Measured
Billed per second of video at the output resolution: the seconds of every video you send plus the seconds of the delivered video, at the with-video rate, which is lower than the rate without a video (see the pricing panel on this page). Very short input videos can be billed at a minimum length. A Draft is billed as a normal 480p video, its input videos included. Nothing is charged for a request that fails.
Example Request
{
"content": [
{"type": "text", "text": "Edit the video: restyle it using the Image 1 color palette, framing Image 2 as the final beat. --resolution 720p"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "adaptive",
"duration": -1,
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.5 API Pricing — Per-Second Rates
Seedance 2.5 is the newest generation: up to 30-second output, up to 50 multimodal reference assets, native multilingual audio, and video extension. 480p, 720p, 1080p or 4K. Draft mode: a 480p preview, billed as a 480p video, then its 1080p final with Draft to Video.
| Resolution | Price (USD) |
|---|---|
| 480p (input + output seconds) | $0.06149/sec |
| 720p (input + output seconds) | $0.13824/sec |
| 1080p (input + output seconds) | $0.3402/sec |
| 4K (input + output seconds) | $0.56376/sec |
Seedance 2.5 API Documentation
Seedance 2.5 is a high-quality AI video generator. This is the standard model — best quality, with output up to 30 seconds at up to 4K.
What this does: Upload a video plus a text instruction describing what should happen next, and it generates a continuation of that clip.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/extend-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Extend Video - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/extend-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "text", "text": "Extend Video 1 forward: the truck keeps driving down the coast road as the sun sets behind it."},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/extend-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "text", "text": "Extend Video 1 forward: the truck keeps driving down the coast road as the sun sets behind it."},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/extend-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'text', text: 'Extend Video 1 forward: the truck keeps driving down the coast road as the sun sets behind it.' },
{ type: 'video_url', video_url: { url: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/extend-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "text", "text": "Extend Video 1 forward: the truck keeps driving down the coast road as the sun sets behind it."},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}'
Output
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
With "draft": true (and "resolution": "480p"), the response also returns draft_request_id. Send it to POST /seedance-2-5/v1/draft-to-video within 14 days to get the 1080p final (see draft in Request Parameters).
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.5 extend-video
Note: For video extension, ratio must be adaptive; duration may be 4–30 or -1.
Note: Your prompt must clearly ask for an extension — use words such as "extend forward", "extend backward", "continue" or "continue the story". Example: "Extend @Video 1 backward, and have the character in @Image 1 descend from the sky". If the model reads your prompt as a different task, the job fails with TaskTypeMismatch (not charged).
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text + 1 video_url (required), plus optional extra references — up to 50 assets total (30 images, 10 videos, 10 audio) |
| The extension instruction plus the clip you want to continue. Extra images, videos or audio can be attached as references. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url", "audio_url" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words |
| Describes what happens in the continuation. Must contain an extension cue such as "extend forward", "extend backward", "continue" or "continue the story" — without one the model may classify the job as an edit instead and reject it. Refer to uploads by order, e.g. "Video 1", "Image 1". | ||||
content[].video_url.url | Yesrequired | string | — | URL or asset://<ID>; mp4/mov; max 200 MB; 2–30 s; 24–60 FPS; 300–6000 px per side; aspect ratio 0.4–2.5 |
The clip you want to extend. Accepts mp4 or mov — mov is recommended for the best colour and audio continuity across the join. Up to 200 MB and 2–30 seconds long. Extension can run forwards or backwards from this clip. | ||||
content[].image_url.url | No | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB; 300–6000 px per side; up to 30 images |
| Optional reference image — an object, character or scene to carry into the continuation. | ||||
content[].audio_url.url | No | string | — | URL, base64 URI, or asset://<ID>; wav/mp3; max 15 MB; 2–30 s; up to 10 clips (30 s combined) |
| Optional reference audio — voice, music or sound effects to guide the continuation’s soundtrack. | ||||
content[].role | No | string | auto-assigned | "reference_video", "reference_image", "reference_audio" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "adaptive" only |
Output aspect ratio. Locked for video extension — the result always keeps the aspect ratio of the clip being extended, so adaptive is the only accepted value. Passing 16:9, 9:16 or any other ratio fails after the job is queued. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
Output resolution. 1080p and 4k are 10-bit H.265/HEVC: some browsers cannot play them, so open the file in VLC, mpv or QuickTime Player if it does not play. A Draft is always 480p. | ||||
draft | No | boolean | false | true, false |
Draft mode. true makes a 480p Draft video: a quick way to check the scene, the motion and the prompt. resolution must be "480p" (send it in the request; any other value, or none, is refused). Send a JSON boolean (true, not "true"). A Draft is billed as a normal 480p video. The response to this request also returns draft_request_id (the same value as its request_id): keep it, and within 14 days POST it as draft_request_id to /seedance-2-5/v1/draft-to-video to get the 1080p final, which reuses this request’s prompt, media, duration, aspect ratio and audio setting. | ||||
duration | No | integer | -1 | 4–30, or -1 (model auto-selects) |
Length of the generated video in seconds. Use -1 to let the model pick a suitable whole-second length in the 4–30 range. The source clip has its own separate limit (2–30 s) and counts toward the 30 s reference-video budget. | ||||
omni_reference_task_type | No | string | "extend" | "extend" only |
Set to extend for you on this endpoint; any other value is rejected. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the generated video. mov carries higher colour precision and is recommended for extension — ideally for both the source clip and the output, which gives the most seamless join. Some players cannot open mov. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video_url | 1 source (10 videos total) | MP4 or MOV · ≤ 200 MB · 2–30 s · 24–60 FPS | Source video to extend (required). {"type":"video_url","video_url":{"url":"https://..."}} |
| text | 1 | — | Extension instructions — must include an extension cue such as "continue" or "extend forward". {"type":"text","text":"..."} |
| image_url | 30 | JPG, PNG, WEBP · ≤ 30 MB | Optional style / reference image. {"type":"image_url","image_url":{"url":"https://..."}} |
| audio_url | 10 | WAV or MP3 · ≤ 15 MB · 2–30 s | Optional reference audio. {"type":"audio_url","audio_url":{"url":"https://..."}} |
In-Prompt Directives (optional)
Seedance 2.5 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
How Billing Is Measured
Billed per second of video at the output resolution: the seconds of every video you send plus the seconds of the delivered video, at the with-video rate, which is lower than the rate without a video (see the pricing panel on this page). Very short input videos can be billed at a minimum length. A Draft is billed as a normal 480p video, its input videos included. Nothing is charged for a request that fails.
Example Request
{
"content": [
{"type": "text", "text": "Continue Video 1: the camera pulls back to reveal the whole valley, keeping the colour palette of Image 1 and ending on the composition in Image 2. --resolution 720p"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "adaptive",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.5 API Pricing — Per-Second Rates
Seedance 2.5 is the newest generation: up to 30-second output, up to 50 multimodal reference assets, native multilingual audio, and video extension. 480p, 720p, 1080p or 4K. Draft mode: a 480p preview, billed as a 480p video, then its 1080p final with Draft to Video.
| Resolution | Price (USD) |
|---|---|
| 480p (input + output seconds) | $0.06149/sec |
| 720p (input + output seconds) | $0.13824/sec |
| 1080p (input + output seconds) | $0.3402/sec |
| 4K (input + output seconds) | $0.56376/sec |
Seedance 2.5 API Documentation
Seedance 2.5 Draft to Video makes the final 1080p video from a Draft you already made with Seedance 2.5. A Draft is a quick 480p video for checking the scene, the motion and the prompt before you make the final.
What this does: Turns your 480p Draft into the 1080p final. The final reuses the Draft’s prompt, input images, videos and audio, duration, aspect ratio, seed, audio setting and task type, so it keeps the scene and the motion you checked.
What you get back: a link to the finished 1080p video file (10-bit colour, H.265/HEVC).
How it works, in 2 steps:
- Draft: send your request to a Seedance 2.5 endpoint (text-to-video, reference-to-video, edit-video, first-last-frame-to-video or extend-video) with
"draft": trueand"resolution": "480p". Save thedraft_request_idyou get back (the same value as itsrequest_id), open the status link until it showsCOMPLETED, and watch the Draft. Not right yet? Change the prompt or the settings and make another Draft. - Final: within 14 days, send that
request_idasdraft_request_idto the URL below. You get a newrequest_idand status link: open it until it showsCOMPLETED, then download your 1080p video.
Base URL
https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Draft to Video - Seedance 2.5 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
draft_request_id: 'seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}'
Output
{
"request_id": "seedance-2-5_019eyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019eyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
Two Steps: Draft, then Final
Each step is an ordinary request: submit, then poll the status endpoint (or use a webhook) until it is COMPLETED. The Draft and the final each get their own request_id.
Step 1 — make a 480p Draft
Add "draft": true and "resolution": "480p" to a request to any Seedance 2.5 endpoint (text-to-video, reference-to-video, edit-video, first-last-frame-to-video or extend-video). Everything else is the same as a normal request on that endpoint.
curl -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/text-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [{"type": "text", "text": "A cat walking on the beach"}],
"draft": true,
"resolution": "480p",
"ratio": "16:9",
"duration": 5
}'
The response also returns draft_request_id, the same value as the Draft’s request_id. Keep the draft_request_id for step 2.
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Poll the Draft
Poll it with that request_id. You can also find it later as request_id in the Draft’s status response and in its webhook callback. When status is COMPLETED, watch the Draft at output.media_url.
curl -H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Step 2 — make the 1080p final
Send the draft_request_id from the step 1 response. Do not send the prompt, the media or the other settings again: the final reuses the Draft’s.
curl -X POST "https://gateway.pixazo.ai/seedance-2-5/v1/draft-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}'
Poll the final
The response has a new request_id. Poll it; when status is COMPLETED, download the 1080p video from output.media_url.
curl -H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019eyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 2.5 draft-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
draft_request_id | Yesrequired | string | — | A request_id, for example seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
The draft_request_id returned when you submitted the Draft (the response to the request sent with "draft": true). It equals the Draft’s request_id, which is also in its status response and webhook callback. The Draft must be a completed Seedance 2.5 request made with the same API key in the last 14 days. | ||||
resolution | No | string | "1080p" | "1080p" only |
| Output resolution of the final. A final is always 1080p (10-bit colour, H.265/HEVC); any other value is refused. | ||||
watermark | No | boolean | false | true, false |
Add an "AI Generated" watermark to the bottom-right corner of the final video. Not copied from the Draft: send true again if you want it. | ||||
output_format | No | string | "mp4" | "mp4", "mov" |
Container for the final video. Not copied from the Draft: send "mov" again if you want it. | ||||
Reused from the Draft
The final keeps these from the Draft. They cannot be changed here: to change one, make a new Draft.
| Setting | From the Draft request |
|---|---|
| Prompt | The text content item, including any in-prompt flags |
| Input images, videos and audio | The image_url, video_url and audio_url content items |
| Duration | duration |
| Aspect ratio | ratio |
| Seed | The --seed prompt flag, if you used one |
| Audio | generate_audio |
| Task type | omni_reference_task_type (reference-to-video, edit-video and extend-video) |
Not accepted on this endpoint
Send only draft_request_id, resolution, watermark and output_format. Any other field is refused with a 400 before any hold is placed, so nothing is charged — in particular content, prompt, text, any image, video or audio field, duration, ratio, seed, generate_audio, omni_reference_task_type, draft, draft_task and draft_task_id. The settings come from the Draft, and sending them again is refused even when the values are the same.
Good to know
- 14 days — a Draft can be finalized for 14 days after you submitted it. Send the final at least 15 minutes before the 14 days are up; after that, make a new Draft.
- Only your own Drafts — the Draft must have been made with the same API key. A
request_idfrom another key is answered as if it did not exist. If you regenerate your key, Drafts made with the old key can no longer be finalized. - Completed Drafts only — the Draft’s status must be
COMPLETED. Wait for a Draft that is still running; a Draft that failed cannot be finalized. - Drafts only — only a request sent with
"draft": trueand"resolution": "480p"can be finalized; a normal video cannot. - Name the Draft by its
request_id— the model provider’s own task IDs are never accepted, and generation endpoints refuse adraft_taskcontent item. - 1080p, 10-bit, H.265/HEVC — some browsers and players cannot play H.265/HEVC. If yours cannot, open the file in VLC, mpv or QuickTime Player, or convert it.
- Same length as the Draft — the final has the Draft’s duration, aspect ratio and audio setting.
Example Request
{
"draft_request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"resolution": "1080p",
"output_format": "mp4",
"watermark": false
}
Response
{
"request_id": "seedance-2-5_019eyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019eyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Problems with the request, including with draft_request_id, are caught when you submit and returned as a 400, before any hold is placed on your balance: nothing is charged. Problems that need the model to run are reported through the status endpoint as status: "ERROR", with a message in error; failed requests are not billed.
Refused at submit
| Condition | How it surfaces |
|---|---|
Missing or empty draft_request_id, or not a string | synchronous 400 |
A draft_request_id that does not match a Seedance 2.5 request made with the same API key (a request made with another key is answered the same way) | synchronous 400 |
A request that was not a Draft (it was not sent with "draft": true and "resolution": "480p") | synchronous 400 |
| A Draft that has not completed yet, or that failed | synchronous 400 |
| A Draft whose 14 days are up, or end within 15 minutes | synchronous 400 |
resolution other than "1080p" | synchronous 400 |
content, prompt, text, any image, video or audio field, duration, ratio, seed, generate_audio or omni_reference_task_type (the final reuses the Draft’s) | synchronous 400 |
draft, draft_task or draft_task_id, or a provider task ID instead of a request_id (name the Draft by its request_id in draft_request_id) | synchronous 400 |
| Any other field not listed in Request Parameters | synchronous 400 |
| A final the model refuses, for example under its content policy | status: "ERROR" |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-5' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-5",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-5",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-5_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Make a Draft: send
"draft": trueand"resolution": "480p"to a Seedance 2.5 endpoint and save therequest_id - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id}, and watch the Draft when it is"COMPLETED" - Make the final: send the Draft’s
request_idasdraft_request_idtoPOST /seedance-2-5/v1/draft-to-videoand save the newrequest_id - When the final’s
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
How Billing Is Measured
The Draft and the final are billed separately. The Draft is billed as a normal 480p video. The final is billed per second of video at the 1080p rate. It has the Draft’s length, so its output is about as many seconds as the Draft; when the Draft was made with an input video, that video’s seconds are billed again in the final, at the lower 1080p with-video rate. When you submit the final, a hold based on the Draft’s length is placed on your balance; you are charged for the seconds the final actually uses, and the hold is released in full if the request fails. A draft_request_id that is refused is answered before any hold, so nothing is charged. The current rate is shown in the pricing panel on this page.
Seedance 2.5 API Pricing — Per-Second Rates
Makes the 1080p final of a 480p Seedance 2.5 Draft: send the Draft's request_id within 14 days. The final reuses the Draft's prompt, media, duration, aspect ratio and audio setting, and is billed per second of video.
| Resolution | Price (USD) |
|---|---|
| 1080p | $0.569/sec |
| 1080p · Draft made with a video (input + output seconds) | $0.3402/sec |
Seedance 2.0 Mini API Documentation
Seedance 2.0 Mini is the most affordable version of Seedance 2.0 — the cheapest way to create a video (480p and 720p).
What this does: Describe a scene in plain words and get a short video of it.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-mini/text-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Seedance 2.0 Mini API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-mini/text-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-mini/text-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-mini/text-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [{ type: 'text', text: 'A cat walking on the beach' }]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-mini/text-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}'
Output
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 2.0 Mini text-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1+ text item |
Input content array. Pass a single text item: {"type":"text","text":"…"}. | ||||
content[].type | Yesrequired | string | — | "text" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words |
| Prompt describing the desired video. English, Japanese, Indonesian, Spanish, and Portuguese prompts are supported. | ||||
tools | No | array | — | [{"type":"web_search"}] |
| Optional enhancement — text-to-video only. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Mini variant supports 480p and 720p only — 1080p and 4k are not available. | ||||
duration | No | integer | 5 | 4–15, or -1 (auto) |
| Output video length in seconds. Set -1 to let the model pick the best length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Billing is per second of actual output video, rounded up to the next whole second — clips typically run ~0.1s over the requested duration, so a 5-second request usually bills 6 seconds. The JSON resolution field takes precedence over a --resolution text directive in the prompt; if omitted, the default is 720p (billed at the 720p rate). Set "resolution": "480p" in the JSON body for the 480p rate.
Content Item Types
| Type | Format | Description |
|---|---|---|
| text | {"type":"text","text":"..."} | The generation prompt (required). May include in-prompt directives below. |
In-Prompt Directives (optional)
Seedance 2.0 Mini also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "A cinematic shot of a cat on a tropical beach at golden hour --resolution 720p --seed 42 --framepersecond 24 --camerafixed false"}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 15,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-mini' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Mini API Pricing — Per-Second Rates
Seedance 2.0 is the production model. Mini is the cheapest tier; Fast trades quality for speed. 1.0 Pro / 1.0 Lite are legacy variants.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.035/sec |
| 720p | $0.0756/sec |
Seedance 2.0 Mini API Documentation
Seedance 2.0 Mini is the most affordable version of Seedance 2.0 — the cheapest way to create a video (480p and 720p).
What this does: Give a starting image (and optionally an ending image), and it creates a video that animates between them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-mini/first-last-frame-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video (First & Last Frames) - Seedance 2.0 Mini API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-mini/first-last-frame-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-mini/first-last-frame-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-mini/first-last-frame-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } },
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-mini/first-last-frame-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}'
Output
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Mini image-to-video (first & last frames)
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 or 2 image_url; optional text |
| First-frame (1 image) or first+last-frame (2 images) mode. | ||||
content[].type | Yesrequired | string | — | "text", "image_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: under 1000 words |
| Optional motion guidance prompt. | ||||
content[].image_url.url | Yesrequired | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; under 30 MB; 300–6000 px per side |
| Upload the image your video starts from — it becomes the first frame, then motion is added. JPG, PNG or WebP; under 30 MB. | ||||
content[].role | Required when 2 images | string | "first_frame" (single image) | "first_frame", "last_frame" |
| Frame position. Optional for a single image (treated as first_frame); in two-frame mode both images need a role — first_frame on the first, last_frame on the second. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Mini variant supports 480p and 720p only — 1080p and 4k are not available. | ||||
duration | No | integer | 5 | 4–15, or -1 (auto) |
| Output video length in seconds. Set -1 to let the model pick the best length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Billing is per second of actual output video, rounded up to the next whole second — clips typically run ~0.1s over the requested duration, so a 5-second request usually bills 6 seconds. The JSON resolution field takes precedence over a --resolution text directive in the prompt; if omitted, the default is 720p (billed at the 720p rate). Set "resolution": "480p" in the JSON body for the 480p rate.
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image_url | 2 | JPG, PNG, WEBP · < 30 MB each | 1st = first frame (required); 2nd = last frame (optional). {"type":"image_url","image_url":{"url":"https://..."}} |
| text | 1 | — | Optional motion/style prompt. {"type":"text","text":"..."} |
In-Prompt Directives (optional)
Seedance 2.0 Mini also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Content Item Types
| Type | Format | Description |
|---|---|---|
text | {"type":"text","text":"..."} | Optional. Text prompt describing motion / scene transition. Maximum 1 text item. |
image_url (1st) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. First image_url in array order. Worker auto-injects role first_frame. |
image_url (2nd) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. Second image_url in array order. Worker auto-injects role last_frame. |
video_url | — | Not accepted on this route (rejected with 400). |
audio_url | — | Not accepted on this route (rejected with 400). |
Image Constraints (per image_url item)
| Constraint | Value |
|---|---|
| Format | The URL of the starting frame image to animate. Supported formats: JPEG, PNG, WebP. Max 30 MB. |
Example Request
{
"content": [
{"type": "text", "text": "Time-lapse from winter to spring; snow melts, leaves green, flowers bloom; cinematic motion."},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"ratio": "adaptive",
"duration": 5,
"resolution": "720p",
"generate_audio": true,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-mini' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Mini API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.035/sec |
| 720p | $0.0756/sec |
Seedance 2.0 Mini API Documentation
Seedance 2.0 Mini is the most affordable version of Seedance 2.0 — the cheapest way to create a video (480p and 720p).
What this does: Give it photos (and/or short clips) of people or things, and it creates a video featuring them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-mini/reference-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Reference to Video - Seedance 2.0 Mini API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-mini/reference-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-mini/reference-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-mini/reference-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-mini/reference-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}'
Output
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Mini reference-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | optional text + at least one image_url or video_url (audio_url cannot be the only reference); ordered text → images → videos → audio |
| Multimodal reference input. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url", "audio_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: under 1000 words; may include @image1 / @video1 / @audio1 refs |
| Prompt with optional reference handles. | ||||
content[].image_url.url | Conditional | string | — | URL, base64 data URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; under 30 MB each |
| Upload up to 9 reference images the model takes style or subject cues from, to keep your result consistent. JPG, PNG or WebP; under 30 MB each. | ||||
content[].video_url.url | Conditional | string | — | URL or asset://<ID>; mp4/mov; max 200 MB each; 2–15 s each, 15 s combined |
| Upload up to 3 reference videos the model takes motion or style cues from. MP4; under 50 MB each; up to 15 seconds total. | ||||
content[].audio_url.url | Conditional | string | — | URL, base64 URI, or asset://<ID>; wav/mp3; max 15 MB each; 2–15 s each, 15 s combined |
| Upload up to 3 audio clips as a reference. MP3 or WAV; under 15 MB each; up to 15 seconds total. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video", "reference_audio" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Mini variant supports 480p and 720p only — 1080p and 4k are not available. | ||||
duration | No | integer | 5 | 4–15, or -1 (auto) |
| Output video length in seconds. Set -1 to let the model pick the best length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Billing is per second of actual output video, rounded up to the next whole second — clips typically run ~0.1s over the requested duration, so a 5-second request usually bills 6 seconds. The JSON resolution field takes precedence over a --resolution text directive in the prompt; if omitted, the default is 720p (billed at the 720p rate). Set "resolution": "480p" in the JSON body for the 480p rate.
Content Item Types & Limits
| Type | Max count | Format / Size | Description |
|---|---|---|---|
| image_url | up to 9 | JPG, PNG, WEBP · < 30 MB each | Reference image for character consistency, style, or composition. {"type":"image_url","image_url":{"url":"https://..."}} |
| video_url | up to 3 | MP4 · < 50 MB each · ≤ 15s combined | Reference video for motion / style transfer. {"type":"video_url","video_url":{"url":"https://..."}} |
| audio_url | up to 3 | MP3, WAV · ≤ 15s combined · < 15 MB | Reference audio for audio-driven generation & lip-sync. Requires at least one image or video reference. {"type":"audio_url","audio_url":{"url":"https://..."}} |
| text | 1 | — | Prompt. Address references by their 1-indexed array order — [Image1], [Video1], [Audio1] (plain "Image 1" also works). |
The rule of 12: total references across all types may not exceed 12 (e.g. 9 images + 3 videos = 12, leaving no room for audio). Per-type caps (9 / 3 / 3) always apply within that budget.
In-Prompt Directives (optional)
Seedance 2.0 Mini also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Use Image 1 as the opening frame and Image 2 as the closing frame. Smooth cinematic transition between them with gentle camera motion. --resolution 720p"},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-mini' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Mini API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.04785/sec |
| 720p | $0.1074/sec |
Seedance 2.0 Mini API Documentation
Seedance 2.0 Mini is the most affordable version of Seedance 2.0 — the cheapest way to create a video (480p and 720p).
What this does: Upload a video plus a text instruction, and it changes the video to match your request.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-mini/edit-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Edit Video - Seedance 2.0 Mini API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-mini/edit-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-mini/edit-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-mini/edit-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'text', text: 'Make truck Orange' },
{ type: 'video_url', video_url: { url: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-mini/edit-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}'
Output
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Mini edit-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text + 1 image_url + 1 video_url |
| Edit instruction + reference object image + video to edit. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words; may use @image1 / @video1 |
| Edit instruction with reference handles. | ||||
content[].image_url.url | Yesrequired | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; under 30 MB |
| Upload an image of the object, character, or scene to bring into the edited video. JPG, PNG or WebP; under 30 MB. | ||||
content[].video_url.url | Yesrequired | string | — | URL or asset://<ID>; mp4/mov; max 200 MB; 2–15 s |
| Upload the video you want to edit. MP4; under 50 MB; 2–15 seconds. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Mini variant supports 480p and 720p only — 1080p and 4k are not available. | ||||
duration | No | integer | 5 | 4–15, or -1 (auto) |
| Output video length in seconds. Set -1 to let the model pick the best length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Billing is per second of actual output video, rounded up to the next whole second — clips typically run ~0.1s over the requested duration, so a 5-second request usually bills 6 seconds. The JSON resolution field takes precedence over a --resolution text directive in the prompt; if omitted, the default is 720p (billed at the 720p rate). Set "resolution": "480p" in the JSON body for the 480p rate.
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video_url | 1 | MP4 · < 50 MB | Source video to edit (required). {"type":"video_url","video_url":{"url":"https://..."}} |
| text | 1 | — | Edit instructions. {"type":"text","text":"..."} |
| image_url | 1 | JPG, PNG, WEBP · < 30 MB | Optional style / reference image. {"type":"image_url","image_url":{"url":"https://..."}} |
In-Prompt Directives (optional)
Seedance 2.0 Mini also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Restyle the source video using Image 1 color palette, framing Image 2 as the final beat. --resolution 720p"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-mini' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-mini",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-mini_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-mini",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-mini_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Mini API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.04785/sec |
| 720p | $0.1074/sec |
Seedance 2.0 API Documentation
Seedance 2.0 is a high-quality AI video generator. This is the standard model — best quality, with output up to 4K.
What this does: Describe a scene in plain words and get a short video of it.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0/v1/text-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Seedance 2.0 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0/v1/text-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0/v1/text-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0/v1/text-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [{ type: 'text', text: 'A cat walking on the beach' }]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0/v1/text-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [{"type": "text", "text": "A cat walking on the beach"}]
}'
Output
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 2.0 text-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text item |
Input content array. Pass a single text item: {"type":"text","text":"…"}. | ||||
content[].type | Yesrequired | string | — | "text" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words |
| Prompt describing the desired video. English, Japanese, Indonesian, Spanish and Portuguese are supported. | ||||
tools | No | array | — | [{"type":"web_search"}] |
| Optional enhancement — text-to-video only. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
| Output resolution. Higher resolutions take longer to render. 4k output is 10-bit H.265 (HEVC). | ||||
duration | No | integer | 5 | 4–15, or -1 (model auto-selects) |
| Output video length in seconds. Use -1 to let the model pick a suitable length. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Format | Description |
|---|---|---|
| text | {"type":"text","text":"..."} | The generation prompt (required). May include in-prompt directives below. |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 1080p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "A cinematic shot of a cat on a tropical beach at golden hour --resolution 1080p --seed 42 --framepersecond 24 --camerafixed false"}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 15,
"watermark": false
}
Response
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 API Pricing — Per-Second Rates
Seedance 2.0 is the production model. Mini is the cheapest tier; Fast trades quality for speed. 1.0 Pro / 1.0 Lite are legacy variants.
| Resolution | Price (USD) |
|---|---|
| 480p | $0.07/sec |
| 720p | $0.1512/sec |
| 1080p | $0.3742/sec |
| 4k | $0.7776/sec |
Seedance 2.0 API Documentation
Seedance 2.0 is a high-quality AI video generator. This is the standard model — best quality, with output up to 4K.
What this does: Give a starting image (and optionally an ending image), and it creates a video that animates between them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0/v1/first-last-frame-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video (First & Last Frames) - Seedance 2.0 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0/v1/first-last-frame-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0/v1/first-last-frame-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0/v1/first-last-frame-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } },
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0/v1/first-last-frame-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}'
Output
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 image-to-video (first & last frames)
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 or 2 image_url; optional text |
| First-frame (1 image) or first+last-frame (2 images) mode. | ||||
content[].type | Yesrequired | string | — | "text", "image_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: under 1000 words |
| Optional motion guidance prompt. | ||||
content[].image_url.url | Yesrequired | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB; 300–6000 px per side |
| Upload the image your video starts from — it becomes the first frame, then motion is added. JPG, PNG or WebP; under 30 MB. | ||||
content[].role | Required when 2 images | string | "first_frame" (single image) | "first_frame", "last_frame" |
| Frame position. Required on the 2nd image in two-frame mode. If the two frames have different aspect ratios, the first frame takes precedence and the last frame is center-cropped. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
| Output resolution. Higher resolutions take longer to render. 4k output is 10-bit H.265 (HEVC). | ||||
duration | No | integer | 5 | 4–15, or -1 (model auto-selects) |
| Output video length in seconds. Use -1 to let the model pick a suitable length. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image_url | 2 | JPG, PNG, WEBP · < 30 MB each | 1st = first frame (required); 2nd = last frame (optional). {"type":"image_url","image_url":{"url":"https://..."}} |
| text | 1 | — | Optional motion/style prompt. {"type":"text","text":"..."} |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 1080p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Content Item Types
| Type | Format | Description |
|---|---|---|
text | {"type":"text","text":"..."} | Optional. Text prompt describing motion / scene transition. Maximum 1 text item. |
image_url (1st) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. First image_url in array order. Worker auto-injects role first_frame. |
image_url (2nd) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. Second image_url in array order. Worker auto-injects role last_frame. |
video_url | — | Not accepted on this route (rejected with 400). |
audio_url | — | Not accepted on this route (rejected with 400). |
Image Constraints (per image_url item)
| Constraint | Value |
|---|---|
| Format | The URL of the starting frame image to animate. Supported formats: JPEG, PNG, WebP. Max 30 MB. |
Example Request
{
"content": [
{"type": "text", "text": "Time-lapse from winter to spring; snow melts, leaves green, flowers bloom; cinematic motion."},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"ratio": "adaptive",
"duration": 5,
"resolution": "1080p",
"generate_audio": true,
"watermark": false
}
Response
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.07/sec |
| 720p | $0.1512/sec |
| 1080p | $0.3742/sec |
| 4k | $0.7776/sec |
Seedance 2.0 API Documentation
Seedance 2.0 is a high-quality AI video generator. This is the standard model — best quality, with output up to 4K.
What this does: Give it photos (and/or short clips) of people or things, and it creates a video featuring them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0/v1/reference-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Reference to Video - Seedance 2.0 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0/v1/reference-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0/v1/reference-to-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0/v1/reference-to-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0/v1/reference-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}'
Output
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 reference-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | optional text + 1–9 images and/or 1–3 videos + 0–3 audio (audio cannot be the only reference) |
| Multimodal reference input. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url", "audio_url" |
| Content item type. | ||||
content[].text | No | string | — | Recommended: under 1000 words |
| Prompt; refer to uploads by order, e.g. "Image 1", "Video 1". | ||||
content[].image_url.url | Conditional | string | — | URL, base64 data URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB; 300–6000 px per side |
| Upload up to 9 reference images the model takes style or subject cues from, to keep your result consistent. JPG, PNG or WebP; under 30 MB each. | ||||
content[].video_url.url | Conditional | string | — | URL or asset://<ID>; mp4/mov; max 200 MB each; 2–15 s each, combined max 15 s; 24–60 FPS |
| Upload up to 3 reference videos the model takes motion or style cues from. MP4; under 50 MB each; up to 15 seconds total. | ||||
content[].audio_url.url | Conditional | string | — | URL, base64 URI, or asset://<ID>; wav/mp3; max 15 MB each; 2–15 s each, combined max 15 s |
| Upload up to 3 audio clips as a reference. MP3 or WAV; under 15 MB each; up to 15 seconds total. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video", "reference_audio" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
| Output resolution. Higher resolutions take longer to render. 4k output is 10-bit H.265 (HEVC). | ||||
duration | No | integer | 5 | 4–15, or -1 (model auto-selects) |
| Output video length in seconds. Use -1 to let the model pick a suitable length. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types & Limits
| Type | Max count | Format / Size | Description |
|---|---|---|---|
| image_url | up to 9 | JPG, PNG, WEBP · < 30 MB each | Reference image for character consistency, style, or composition. {"type":"image_url","image_url":{"url":"https://..."}} |
| video_url | up to 3 | MP4 · < 50 MB each · ≤ 15s combined | Reference video for motion / style transfer. {"type":"video_url","video_url":{"url":"https://..."}} |
| audio_url | up to 3 | MP3, WAV · ≤ 15s combined · < 15 MB | Reference audio for audio-driven generation & lip-sync. Requires at least one image or video reference. {"type":"audio_url","audio_url":{"url":"https://..."}} |
| text | 1 | — | Prompt. Address references by their 1-indexed array order — [Image1], [Video1], [Audio1] (plain "Image 1" also works). |
The rule of 12: total references across all types may not exceed 12 (e.g. 9 images + 3 videos = 12, leaving no room for audio). Per-type caps (9 / 3 / 3) always apply within that budget.
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 1080p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Use Image 1 as the opening frame and Image 2 as the closing frame. Smooth cinematic transition between them with gentle camera motion. --resolution 1080p"},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.0957/sec |
| 720p | $0.2148/sec |
| 1080p | $0.483/sec |
| 4k | $1.932/sec |
Seedance 2.0 API Documentation
Seedance 2.0 is a high-quality AI video generator. This is the standard model — best quality, with output up to 4K.
What this does: Upload a video plus a text instruction, and it changes the video to match your request.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0/v1/edit-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Edit Video - Seedance 2.0 API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0/v1/edit-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0/v1/edit-video"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0/v1/edit-video';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'text', text: 'Make truck Orange' },
{ type: 'video_url', video_url: { url: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0/v1/edit-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}'
Output
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 edit-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 text + 1 image_url + 1 video_url |
| Edit instruction + reference object image + video to edit. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Recommended: under 1000 words |
| Edit instruction; refer to uploads by order, e.g. "Image 1", "Video 1". | ||||
content[].image_url.url | Yesrequired | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB; 300–6000 px per side |
| Upload an image of the object, character, or scene to bring into the edited video. JPG, PNG or WebP; under 30 MB. | ||||
content[].video_url.url | Yesrequired | string | — | URL or asset://<ID>; mp4/mov; max 200 MB; 2–15 s; 24–60 FPS |
| Upload the video you want to edit. MP4; under 50 MB; 2–15 seconds. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "adaptive" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "720p", "1080p", "4k" |
| Output resolution. Higher resolutions take longer to render. 4k output is 10-bit H.265 (HEVC). | ||||
duration | No | integer | 5 | 4–15, or -1 (model auto-selects) |
| Output video length in seconds. Use -1 to let the model pick a suitable length. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add an "AI Generated" watermark to the bottom-right corner of the output video. | ||||
return_last_frame | No | boolean | false | true, false |
| Also return the last frame of the generated video as a PNG (same dimensions as the video, no watermark) in the status result — useful for chaining consecutive clips. | ||||
execution_expires_after | No | integer | 172800 | 3600–259200 |
| Task expiry window in seconds, counted from task creation. Tasks still queued or running past this limit are marked expired. | ||||
priority | No | integer | 0 | 0–9 |
| Queue priority. Higher values are dequeued first within your endpoint; running tasks are never interrupted. | ||||
safety_identifier | No | string | — | string, max 64 characters |
| Stable, anonymized end-user ID (for example a hash of the username) that helps the provider detect policy-violating usage. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video_url | 1 | MP4 · < 50 MB | Source video to edit (required). {"type":"video_url","video_url":{"url":"https://..."}} |
| text | 1 | — | Edit instructions. {"type":"text","text":"..."} |
| image_url | 1 | JPG, PNG, WEBP · < 30 MB | Optional style / reference image. {"type":"image_url","image_url":{"url":"https://..."}} |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 1080p | Output resolution (480p / 720p / 1080p / 4k). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Restyle the source video using Image 1 color palette, framing Image 2 as the final beat. --resolution 1080p"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | $0.0957/sec |
| 720p | $0.2148/sec |
| 1080p | $0.483/sec |
| 4k | $1.932/sec |
Seedance 2.0 Fast API Documentation
Seedance 2.0 Fast is the quicker, lower-cost version of Seedance 2.0 — ideal for drafts and fast results (480p and 720p).
What this does: Describe a scene in plain words and get a short video of it.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-fast/v1/text-to-video-fast
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Seedance 2.0 Fast API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-fast/v1/text-to-video-fast
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [{"type": "text", "text": "Neon city skyline at night with flying drones"}]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-fast/v1/text-to-video-fast"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [{"type": "text", "text": "Neon city skyline at night with flying drones"}]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-fast/v1/text-to-video-fast';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [{ type: 'text', text: 'Neon city skyline at night with flying drones' }]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-fast/v1/text-to-video-fast" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [{"type": "text", "text": "Neon city skyline at night with flying drones"}]
}'
Output
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 2.0 Fast text-to-video
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1+ text item |
Input content array. Pass a single text item: {"type":"text","text":"…"}. | ||||
content[].type | Yesrequired | string | — | "text" |
| Content item type. | ||||
content[].text | Yesrequired | string | — | Max 500 Chinese / 1000 English words |
| Prompt describing the desired video. | ||||
tools | No | array | — | [{"type":"web_search"}] |
| Optional enhancement — text-to-video only. | ||||
ratio | No | string | "16:9" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. The gateway applies "16:9" when omitted; pass "adaptive" to let the model pick the best ratio from the input. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Fast variant supports 480p and 720p only — 1080p is rejected by the gateway. | ||||
duration | No | integer | 5 | 4–15, or -1 for auto |
| Output video length in seconds. Use -1 to let the model choose the length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Content Item Types
| Type | Format | Description |
|---|---|---|
| text | {"type":"text","text":"..."} | The generation prompt (required). May include in-prompt directives below. |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p on the Fast variant). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Neon city skyline at night with flying drones --resolution 720p --seed 7 --framepersecond 24"}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 5,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-fast' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:01:15.000Z",
"completed_at": "2026-04-07T10:01:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Fast API Pricing — Per-Second Rates
Seedance 2.0 is the production model. Mini is the cheapest tier; Fast trades quality for speed. 1.0 Pro / 1.0 Lite are legacy variants.
| Resolution | Price (USD) |
|---|---|
| 480p | |
| 720p |
Seedance 2.0 Fast API Documentation
Seedance 2.0 Fast is the quicker, lower-cost version of Seedance 2.0 — ideal for drafts and fast results (480p and 720p).
What this does: Give a starting image (and optionally an ending image), and it creates a video that animates between them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-fast/v1/first-last-frame-to-video-fast
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video (First & Last Frames) - Seedance 2.0 Fast API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-fast/v1/first-last-frame-to-video-fast
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-fast/v1/first-last-frame-to-video-fast"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-fast/v1/first-last-frame-to-video-fast';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } },
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-fast/v1/first-last-frame-to-video-fast" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type":"image_url","image_url":{"url":"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
]
}'
Output
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Fast image-to-video (first & last frames)
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 or 2 image_url; optional text |
| First-frame (1 image) or first+last-frame (2 images) mode. | ||||
content[].type | Yesrequired | string | — | "text", "image_url" |
| Content item type. | ||||
content[].text | No | string | — | Max 500 Chinese / 1000 English words |
| Optional motion guidance prompt. | ||||
content[].image_url.url | Yesrequired | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; 300–6000 px; max 30 MB |
| Upload the image your video starts from — it becomes the first frame, then motion is added. JPG, PNG or WebP; under 30 MB. | ||||
content[].role | No | string | auto-assigned | "first_frame", "last_frame" |
| Frame position. The gateway assigns it automatically from image order (1st = first_frame, 2nd = last_frame) — you do not need to set it. | ||||
ratio | No | string | "16:9" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. The gateway applies "16:9" when omitted; pass "adaptive" to let the model pick the best ratio from the input. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Fast variant supports 480p and 720p only — 1080p is rejected by the gateway. | ||||
duration | No | integer | 5 | 4–15, or -1 for auto |
| Output video length in seconds. Use -1 to let the model choose the length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image_url | 2 | JPG, PNG, WEBP · < 30 MB each | 1st = first frame (required); 2nd = last frame (optional). {"type":"image_url","image_url":{"url":"https://..."}} |
| text | 1 | — | Optional motion/style prompt. {"type":"text","text":"..."} |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p on the Fast variant). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Content Item Types
| Type | Format | Description |
|---|---|---|
text | {"type":"text","text":"..."} | Optional. Text prompt describing motion / scene transition. Maximum 1 text item. |
image_url (1st) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. First image_url in array order. Worker auto-injects role first_frame. |
image_url (2nd) | {"type":"image_url","image_url":{"url":"https://..."}} | Required. Second image_url in array order. Worker auto-injects role last_frame. |
video_url | — | Not accepted on this route (rejected with 400). |
audio_url | — | Not accepted on this route (rejected with 400). |
Image Constraints (per image_url item)
| Constraint | Value |
|---|---|
| Format | The URL of the starting frame image to animate. Supported formats: JPEG, PNG, WebP. Max 30 MB. |
Pixel dimensions per ratio
Seedance 2.0 Fast supports 480p and 720p only.
| Ratio | 480p | 720p |
|---|---|---|
16:9 | 864×496 | 1280×720 |
4:3 | 752×560 | 1112×834 |
1:1 | 640×640 | 960×960 |
3:4 | 560×752 | 834×1112 |
9:16 | 496×864 | 720×1280 |
21:9 | 992×432 | 1470×630 |
Example Request
{
"content": [
{"type": "text", "text": "Time-lapse transition from winter to spring: snow melts off the plant, leaves turn green, flowers bloom into full color. Smooth cinematic motion."},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"duration": 5,
"ratio": "adaptive",
"resolution": "720p",
"generate_audio": true,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-fast' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Fast API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | |
| 720p |
Seedance 2.0 Fast API Documentation
Seedance 2.0 Fast is the quicker, lower-cost version of Seedance 2.0 — ideal for drafts and fast results (480p and 720p).
What this does: Give it photos, clips, or audio of people or things, and it creates a video featuring them.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-fast/v1/reference-to-video-fast
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Reference to Video - Seedance 2.0 Fast API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-fast/v1/reference-to-video-fast
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-fast/v1/reference-to-video-fast"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-fast/v1/reference-to-video-fast';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'image_url', image_url: { url: 'https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-fast/v1/reference-to-video-fast" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}}
]
}'
Output
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Fast multimodal reference
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | optional text + at least one of {image_url, video_url, audio_url}; ordered text → images → videos → audio |
| Multimodal reference input. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url", "audio_url" |
| Content item type. | ||||
content[].text | No | string | — | Max 500 Chinese / 1000 English words; may include @image1 / @video1 / @audio1 refs |
| Prompt with optional reference handles. | ||||
content[].image_url.url | Conditional | string | — | URL, base64 data URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB |
| Upload up to 9 reference images the model takes style or subject cues from, to keep your result consistent. JPG, PNG or WebP; under 30 MB each. | ||||
content[].video_url.url | Conditional | string | — | URL or asset://<ID>; mp4/mov; max 200 MB; 2–15 s each, ≤15 s total |
| Upload up to 3 reference videos the model takes motion or style cues from. MP4; under 50 MB each; up to 15 seconds total. | ||||
content[].audio_url.url | Conditional | string | — | URL, base64 URI, or asset://<ID>; wav/mp3; 2–15 s each, ≤15 s total; max 15 MB |
| Upload up to 3 audio clips as a reference. MP3 or WAV; under 15 MB each; up to 15 seconds total. Audio alone won't work — add at least one image or video. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video", "reference_audio" |
| Asset role. The gateway sets it automatically from the item type (image → reference_image, video → reference_video, audio → reference_audio); any value you send is overwritten. | ||||
ratio | No | string | "16:9" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. The gateway applies "16:9" when omitted; pass "adaptive" to let the model pick the best ratio from the input. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Fast variant supports 480p and 720p only — 1080p is rejected by the gateway. | ||||
duration | No | integer | 5 | 4–15, or -1 for auto |
| Output video length in seconds. Use -1 to let the model choose the length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Content Item Types & Limits
| Type | Max count | Format / Size | Description |
|---|---|---|---|
| image_url | up to 9 | JPG, PNG, WEBP · < 30 MB each | Reference image for character consistency, style, or composition. {"type":"image_url","image_url":{"url":"https://..."}} |
| video_url | up to 3 | MP4 · < 50 MB each · ≤ 15s combined | Reference video for motion / style transfer. {"type":"video_url","video_url":{"url":"https://..."}} |
| audio_url | up to 3 | MP3, WAV · ≤ 15s combined · < 15 MB | Reference audio for audio-driven generation & lip-sync. Requires at least one image or video reference. {"type":"audio_url","audio_url":{"url":"https://..."}} |
| text | 1 | — | Prompt. Address references by their 1-indexed array order — [Image1], [Video1], [Audio1] (plain "Image 1" also works). |
The rule of 12: total references across all types may not exceed 12 (e.g. 9 images + 3 videos = 12, leaving no room for audio). Per-type caps (9 / 3 / 3) always apply within that budget.
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p on the Fast variant). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Use Image 1 as the opening frame and Image 2 as the closing frame. Smooth cinematic transition. --resolution 720p"},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-fast' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:01:15.000Z",
"completed_at": "2026-04-07T10:01:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Fast API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | |
| 720p |
Seedance 2.0 Fast API Documentation
Seedance 2.0 Fast is the quicker, lower-cost version of Seedance 2.0 — ideal for drafts and fast results (480p and 720p).
What this does: Upload a video plus a text instruction, and it changes the video to match your request.
What you get back: a link to a finished video file (MP4) you can download.
How it works, in 3 simple steps:
- Send your request to the URL below, including your API key.
- You instantly get back a
request_idand a status link. Your video is then created in the background (this takes a little time). - Open the status link every few seconds until it shows
COMPLETED, then download your video from the link it returns. Prefer not to keep checking? Add a webhook (see the Webhook section) and we will notify your server automatically when it is ready.
Base URL
https://gateway.pixazo.ai/seedance-2-0-fast/v1/edit-video-fast
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Edit Video - Seedance 2.0 Fast API
Request Code
POST https://gateway.pixazo.ai/seedance-2-0-fast/v1/edit-video-fast
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
import requests
url = "https://gateway.pixazo.ai/seedance-2-0-fast/v1/edit-video-fast"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/seedance-2-0-fast/v1/edit-video-fast';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
content: [
{ type: 'text', text: 'Make truck Orange' },
{ type: 'video_url', video_url: { url: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4' } }
]
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/seedance-2-0-fast/v1/edit-video-fast" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"content": [
{"type": "text", "text": "Make truck Orange"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}}
]
}'
Output
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Using images & real people
You can supply an image or video in three ways:
- A web link (URL) — a public link to your image or video file.
- Base64 — the file encoded as a text string (for images and audio).
- An asset ID —
asset://<ID>, if you uploaded the file to the asset library earlier.
Real people are allowed. Photos and clips of real human faces work normally — the gateway automatically registers your reference media with the provider, so real-person content is not blocked. (Advanced: for formally consented real-person assets, add them in the BytePlus console and pass the resulting asset://<ID>.)
Request Parameters - Seedance 2.0 Fast video editing
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
content | Yesrequired | array | — | 1 video_url + optional text + optional image_url |
| The video to edit, plus an optional edit instruction and optional reference object image. | ||||
content[].type | Yesrequired | string | — | "text", "image_url", "video_url" |
| Content item type. | ||||
content[].text | No | string | — | Max 500 Chinese / 1000 English words; may use @image1 / @video1 |
| Edit instruction with reference handles (strongly recommended). | ||||
content[].image_url.url | No | string | — | URL, base64 URI, or asset://<ID>; jpeg/png/webp/bmp/tiff/gif/heic/heif; max 30 MB |
| Optional. Upload an image of an object, character, or scene to bring into the edited video. JPG, PNG or WebP; under 30 MB. | ||||
content[].video_url.url | Yesrequired | string | — | URL or asset://<ID>; mp4/mov; max 200 MB; 2–15 s |
| Upload the video you want to edit. MP4; under 50 MB; 2–15 seconds. | ||||
content[].role | No | string | auto-assigned | "reference_image", "reference_video" |
| Asset role. The gateway sets it automatically from the item type; any value you send is overwritten. | ||||
ratio | No | string | "16:9" | "16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive" |
| Output aspect ratio. The gateway applies "16:9" when omitted; pass "adaptive" to let the model pick the best ratio from the input. | ||||
resolution | No | string | "720p" | "480p", "720p" |
| Output resolution. The Fast variant supports 480p and 720p only — 1080p is rejected by the gateway. | ||||
duration | No | integer | 5 | 4–15, or -1 for auto |
| Output video length in seconds. Use -1 to let the model choose the length automatically. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio along with the video. | ||||
watermark | No | boolean | false | true, false |
| Add a watermark to the output video. | ||||
Content Item Types
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video_url | 1 | MP4 · < 50 MB | Source video to edit (required). {"type":"video_url","video_url":{"url":"https://..."}} |
| text | 1 | — | Edit instructions. {"type":"text","text":"..."} |
| image_url | 1 | JPG, PNG, WEBP · < 30 MB | Optional style / reference image. {"type":"image_url","image_url":{"url":"https://..."}} |
In-Prompt Directives (optional)
Seedance 2.0 also accepts space-separated flags appended to the text prompt. If the matching JSON field is also present, the JSON field takes precedence and the directive is ignored.
| Directive | Example | Description |
|---|---|---|
--resolution | --resolution 720p | Output resolution (480p / 720p on the Fast variant). |
--seed | --seed 42 | Reproducible seed. |
--framepersecond | --framepersecond 24 | Output frame rate (fps). |
--camerafixed | --camerafixed false | true locks the camera; false allows camera motion. |
Example Request
{
"content": [
{"type": "text", "text": "Restyle the source video using Image 1 color palette, framing Image 2 as the final beat. --resolution 720p"},
{"type": "video_url", "video_url": {"url": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_video/r2v_tea_video1.mp4"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}},
{"type": "image_url", "image_url": {"url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png"}}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}
Response
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'seedance-2-0-fast' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "seedance-2-0-fast",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "seedance-2-0-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "seedance-2-0-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/seedance-2-0-fast_019dxxxx-xxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-07T10:00:00.000Z",
"updated_at": "2026-04-07T10:02:30.000Z",
"completed_at": "2026-04-07T10:02:30.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 2.0 Fast API Pricing — Per-Second Rates
| Resolution | Price (USD) |
|---|---|
| 480p | |
| 720p |
Seedance 1.0 Pro API Documentation
https://gateway.pixazo.ai/byteplus/v1/generateImage2VideoTask
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Seedance 1.0 Image to Video - Bytedance API
Request Code
POST https://gateway.pixazo.ai/byteplus/v1/generateImage2VideoTask
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"model": "seedance-1-0-pro-250528",
"text": "Soft cotton-like clouds drift with subtle layered motions across a pale blue sky. --ratio 16:9 --resolution 720p --duration 5",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}
import requests
url = "https://gateway.pixazo.ai/byteplus/v1/generateImage2VideoTask"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"model": "seedance-1-0-pro-250528",
"text": "Soft cotton-like clouds drift with subtle layered motions across a pale blue sky. --ratio 16:9 --resolution 720p --duration 5",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/byteplus/v1/generateImage2VideoTask';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
"model": "seedance-1-0-pro-250528",
"text": "Soft cotton-like clouds drift with subtle layered motions across a pale blue sky. --ratio 16:9 --resolution 720p --duration 5",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/byteplus/v1/generateImage2VideoTask" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"model": "seedance-1-0-pro-250528",
"text": "Soft cotton-like clouds drift with subtle layered motions across a pale blue sky. --ratio 16:9 --resolution 720p --duration 5",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}'
Output
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "bytedance-text-to-image",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "bytedance-text-to-image",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 1.0 Image to Video - Bytedance API
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
model | No | string | seedance-1-0-pro-250528 | seedance-1-0-pro-250528, seedance-1-0-pro-fast-251015 |
| The Seedance 1.0 model for image-to-video: 1.0 Pro (the default) or 1.0 Pro Fast (faster, lower cost). Any other model ID is refused with a 400 before anything is charged; Seedance 2.0 and 2.5 have their own APIs. Billed at BytePlus's own token count for the video (width × height × 24 fps × seconds / 1024): $2.50 per 1M tokens for 1.0 Pro, $1.00 for 1.0 Pro Fast — about $0.26 / $0.10 for a 5-second 720p 16:9 video, $0.61 / $0.24 at 1080p. | ||||
text | Yesrequired | string | — | — |
Prompt describing the desired motion. Control knobs can be embedded inline: --ratio, --resolution, --duration, --watermark, --seed, --camerafixed (see below). | ||||
image_url | Yesrequired | string | — | — |
| Publicly accessible HTTPS URL of the source image used as the first frame of the video. | ||||
resolution | No | string | 720p | 480p, 720p, 1080p |
Output resolution of the video. Appended to the prompt as --resolution when not already present. Higher resolutions cost more and take longer to generate. | ||||
duration | No | integer | 5 | 2–12 |
Video duration in seconds (integers only). Appended to the prompt as --duration when not already present. | ||||
framepersecond | No | integer | 24 | 24 |
| Frame rate of the generated video. Seedance 1.0 Pro renders at a fixed 24 fps. | ||||
watermark | No | boolean | false | true, false |
| Whether the video carries an "AI Generated" watermark in the lower-right corner. | ||||
seed | No | integer | -1 | -1 to 4294967295 |
Seed controlling randomness. -1 uses a random seed. The same seed with an identical request produces similar (not guaranteed identical) results. Only sent upstream when set to a value other than -1. | ||||
camerafixed | No | boolean | false | true, false |
Whether to lock the camera position. When true, a fixed-camera instruction is appended to the prompt (result not guaranteed). | ||||
callback_url | No | string | — | — |
| Publicly reachable URL that receives a POST notification from the provider each time the task status changes (queued, running, succeeded, failed, expired). | ||||
Inline knobs (embedded in the text prompt). Each body parameter above is auto-appended as its inline knob when not already present in the prompt; if you set a knob inline, use its full name (e.g. --resolution, not --rs) so the gateway does not append a conflicting default. | ||||
--ratio | No | string | adaptive | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive |
Aspect ratio of the generated video. adaptive (default) picks the closest ratio to the uploaded image; if a fixed ratio differs from the image, the image is center-cropped. Abbreviation: --rt. Inline only — there is no body parameter for aspect ratio. | ||||
--resolution | No | string | 720p | 480p, 720p, 1080p |
Inline form of resolution. Abbreviation: --rs. | ||||
--duration | No | integer | 5 | 2–12 |
Inline form of duration. Abbreviation: --dur. | ||||
--watermark | No | boolean | false | true, false |
Inline form of watermark. Abbreviation: --wm. | ||||
--seed | No | integer | -1 | -1 to 4294967295 |
Inline form of seed. | ||||
--camerafixed | No | boolean | false | true, false |
Inline form of camerafixed. Abbreviation: --cf. | ||||
Example Request
{
"model": "seedance-1-0-pro-250528",
"text": "Soft cotton-like clouds drift with subtle layered motions across a pale blue sky. --ratio 16:9 --resolution 720p --duration 5",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}
Response
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
| X-Webhook-URL | Optional callback URL |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance. Required: $1.00"
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'byteplus' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "byteplus",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "byteplus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-09T10:00:00.000Z",
"updated_at": "2026-04-09 10:01:30",
"completed_at": "2026-04-09 10:01:30"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type (video/mp4) |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 1.0 Pro API Pricing — Per-Second Rates
Seedance 1.0 Pro (the default) and 1.0 Pro Fast: pick one with "model". Billed at BytePlus's own token count for each video; the rates shown are for 16:9, other aspect ratios differ by a few percent.
| Resolution | Model | Price (USD) |
|---|---|---|
| 480p | 1.0 Pro | $0.0243/sec |
| 720p | 1.0 Pro | $0.05148/sec |
| 1080p | 1.0 Pro | $0.1224/sec |
| 480p | 1.0 Pro Fast | $0.00972/sec |
| 720p | 1.0 Pro Fast | $0.02059/sec |
| 1080p | 1.0 Pro Fast | $0.04896/sec |
Seedance 1.0 Pro API Documentation
https://gateway.pixazo.ai/byteplus/v1/generateVideoTask
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Seedance 1.0 Pro Text to Video - Bytedance API
Request Code
POST https://gateway.pixazo.ai/byteplus/v1/generateVideoTask
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"model": "seedance-1-0-pro-250528",
"text": "A vast expanse of white daisy fields under a clear blue sky. --ratio 16:9 --resolution 720p --duration 5 --camerafixed false"
}
import requests
url = "https://gateway.pixazo.ai/byteplus/v1/generateVideoTask"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"model": "seedance-1-0-pro-250528",
"text": "A vast expanse of white daisy fields under a clear blue sky. --ratio 16:9 --resolution 720p --duration 5 --camerafixed false"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/byteplus/v1/generateVideoTask';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
"model": "seedance-1-0-pro-250528",
"text": "A vast expanse of white daisy fields under a clear blue sky. --ratio 16:9 --resolution 720p --duration 5 --camerafixed false"
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/byteplus/v1/generateVideoTask" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"model": "seedance-1-0-pro-250528",
"text": "A vast expanse of white daisy fields under a clear blue sky. --ratio 16:9 --resolution 720p --duration 5 --camerafixed false"
}'
Output
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "bytedance-text-to-image",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "bytedance-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "bytedance-text-to-image",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Seedance 1.0 Pro Text to Video - Bytedance API
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
model | No | string | seedance-1-0-pro-250528 | seedance-1-0-pro-250528, seedance-1-0-pro-fast-251015 |
| The Seedance 1.0 model for text-to-video: 1.0 Pro (the default) or 1.0 Pro Fast (faster, lower cost). Any other model ID is refused with a 400 before anything is charged; Seedance 2.0 and 2.5 have their own APIs. Billed at BytePlus's own token count for the video (width × height × 24 fps × seconds / 1024): $2.50 per 1M tokens for 1.0 Pro, $1.00 for 1.0 Pro Fast — about $0.26 / $0.10 for a 5-second 720p 16:9 video, $0.61 / $0.24 at 1080p. | ||||
text | Yesrequired | string | — | — |
Prompt describing the video to generate. Control knobs can be embedded inline: --ratio, --resolution, --duration, --watermark, --seed, --camerafixed (see below). | ||||
resolution | No | string | 720p | 480p, 720p, 1080p |
Output resolution of the video. Appended to the prompt as --resolution when not already present. Higher resolutions cost more and take longer to generate. | ||||
duration | No | integer | 5 | 2–12 |
Video duration in seconds (integers only). Appended to the prompt as --duration when not already present. | ||||
framepersecond | No | integer | 24 | 24 |
| Frame rate of the generated video. Seedance 1.0 Pro renders at a fixed 24 fps. | ||||
watermark | No | boolean | false | true, false |
| Whether the video carries an "AI Generated" watermark in the lower-right corner. | ||||
seed | No | integer | -1 | -1 to 4294967295 |
Seed controlling randomness. -1 uses a random seed. The same seed with an identical request produces similar (not guaranteed identical) results. Only sent upstream when set to a value other than -1. | ||||
camerafixed | No | boolean | false | true, false |
Whether to lock the camera position. When true, a fixed-camera instruction is appended to the prompt (result not guaranteed). | ||||
callback_url | No | string | — | — |
| Publicly reachable URL that receives a POST notification from the provider each time the task status changes (queued, running, succeeded, failed, expired). | ||||
Inline knobs (embedded in the text prompt). Each body parameter above is auto-appended as its inline knob when not already present in the prompt; if you set a knob inline, use its full name (e.g. --resolution, not --rs) so the gateway does not append a conflicting default. | ||||
--ratio | No | string | 16:9 | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 |
Aspect ratio of the generated video. For text-to-video, adaptive is not supported by Seedance 1.0 Pro. Abbreviation: --rt. Inline only — there is no body parameter for aspect ratio. | ||||
--resolution | No | string | 720p | 480p, 720p, 1080p |
Inline form of resolution. Abbreviation: --rs. | ||||
--duration | No | integer | 5 | 2–12 |
Inline form of duration. Abbreviation: --dur. | ||||
--watermark | No | boolean | false | true, false |
Inline form of watermark. Abbreviation: --wm. | ||||
--seed | No | integer | -1 | -1 to 4294967295 |
Inline form of seed. | ||||
--camerafixed | No | boolean | false | true, false |
Inline form of camerafixed. Abbreviation: --cf. | ||||
Example Request
{
"model": "seedance-1-0-pro-250528",
"text": "A vast expanse of white daisy fields under a clear blue sky. --ratio 16:9 --resolution 720p --duration 5 --camerafixed false"
}
Response
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
| X-Webhook-URL | Optional callback URL |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance. Required: $1.00"
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'byteplus' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "byteplus",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "byteplus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/byteplus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-09T10:00:00.000Z",
"updated_at": "2026-04-09 10:01:30",
"completed_at": "2026-04-09 10:01:30"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type (video/mp4) |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Seedance 1.0 Pro API Pricing — Per-Second Rates
Seedance 1.0 Pro (the default) and 1.0 Pro Fast: pick one with "model". Billed at BytePlus's own token count for each video; the rates shown are for 16:9, other aspect ratios differ by a few percent.
| Resolution | Model | Price (USD) |
|---|---|---|
| 480p | 1.0 Pro | $0.0243/sec |
| 720p | 1.0 Pro | $0.05148/sec |
| 1080p | 1.0 Pro | $0.1224/sec |
| 480p | 1.0 Pro Fast | $0.00972/sec |
| 720p | 1.0 Pro Fast | $0.02059/sec |
| 1080p | 1.0 Pro Fast | $0.04896/sec |
⚡ Performance
Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).
〰 Uptime
Percent of generations that succeeded over the selected period, per model version.
