Appearance
Seedance
Seedance 2 is a video generation family with audio sync, first/last-frame control, and multimodal references.
API surface
| Operation | Endpoint | Mode |
|---|---|---|
| Video generation task | POST /v1/async/videos/generations | Async only |
Models
| Model id | Notes |
|---|---|
seedance-2 | Full quality. Resolutions up to 4k. seconds 4–15. |
seedance-2-fast | Faster. Max 720p. seconds 4–15. |
seedance-2-mini | Lowest cost. Max 720p. seconds only 4 / 8 / 10 / 12 / 15. n must be 1. |
Pricing
Billed as n × seconds × rate(resolution) credits. Default resolution is 720p.
| Model | 480p | 720p | 1080p | 4K |
|---|---|---|---|---|
seedance-2-mini | 4/sec | 8/sec | — | — |
seedance-2-fast | 6/sec | 13/sec | — | — |
seedance-2 | 8/sec | 16/sec | 38/sec | 78/sec |
Example: seedance-2 + 720p + seconds=5 + n=1 → 16 × 5 = 80 credits.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | seedance-2, seedance-2-fast, or seedance-2-mini. |
prompt | string | Yes | 1–2000 characters. |
seconds | integer | Yes | Duration in seconds (model-specific range). |
resolution | string | No | 480p / 720p (default) / 1080p / 4k (where supported). |
n | integer | No | Default 1, range 1–9 (seedance-2-mini only allows 1). |
image | string | string[] | No | Public http(s) image URL for image-to-video. |
providerOptions | object | No | Optional model extensions. See providerOptions below. |
providerOptions
The same options apply to seedance-2, seedance-2-fast, and seedance-2-mini.
| Field | Type | Description |
|---|---|---|
aspect_ratio | string | Frame ratio: 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive. |
generate_audio | boolean | true generates synced audio; false returns a silent video. |
seed | integer | Random seed for more reproducible results. |
image_with_roles | object[] | Role-tagged reference images (see below). Mutually exclusive with top-level image when both are sent — this field wins. |
video_with_roles | object[] | Role-tagged reference videos. Each item: { "url", "role": "reference_video" }. |
audio_with_roles | object[] | Role-tagged reference audio. Each item: { "url", "role": "reference_audio" }. Cannot be used alone — pair with image or video references. |
metadata | object | Opaque passthrough fields. Pixapi does not interpret them. |
image_with_roles
Each item: { "url": "<http(s) URL>", "role": "<role>" }.
role | Description | Limit |
|---|---|---|
first_frame | First frame | max 1 |
last_frame | Last frame | max 1 |
reference_image | Style / character reference | max 9 |
Do not mix first/last-frame mode with reference-image mode.
Example
bash
curl https://api.pixapi.ai/v1/async/videos/generations \
-H "Authorization: Bearer $PIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2",
"prompt": "A shiba inu running through neon-lit rainy streets",
"n": 1,
"seconds": 5,
"resolution": "720p",
"providerOptions": {
"generate_audio": true,
"aspect_ratio": "16:9"
}
}'py
import os
import requests
response = requests.post(
"https://api.pixapi.ai/v1/async/videos/generations",
headers={
"Authorization": f"Bearer {os.environ['PIXAPI_KEY']}",
"Content-Type": "application/json",
},
json={
"model": "seedance-2",
"prompt": "A shiba inu running through neon-lit rainy streets",
"n": 1,
"seconds": 5,
"resolution": "720p",
"providerOptions": {
"generate_audio": True,
"aspect_ratio": "16:9"
}
},
)
response.raise_for_status()
task = response.json()
print(task["id"])js
const response = await fetch('https://api.pixapi.ai/v1/async/videos/generations', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PIXAPI_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "seedance-2",
"prompt": "A shiba inu running through neon-lit rainy streets",
"n": 1,
"seconds": 5,
"resolution": "720p",
"providerOptions": {
"generate_audio": true,
"aspect_ratio": "16:9"
}
}),
});
if (!response.ok) {
throw new Error(await response.text());
}
const task = await response.json();
console.log(task.id);go
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "seedance-2",
"prompt": "A shiba inu running through neon-lit rainy streets",
"n": 1,
"seconds": 5,
"resolution": "720p",
"providerOptions": {
"generate_audio": true,
"aspect_ratio": "16:9"
}
}`)
req, err := http.NewRequest(
"POST",
"https://api.pixapi.ai/v1/async/videos/generations",
bytes.NewBuffer(body),
)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("PIXAPI_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
result, _ := io.ReadAll(resp.Body)
fmt.Println(string(result))
}Response
Pixapi returns a submitted task. Poll GET /v1/tasks/{id} for the final result.
