Skip to content

Seedance

Seedance 2 is a video generation family with audio sync, first/last-frame control, and multimodal references.

API surface

OperationEndpointMode
Video generation taskPOST /v1/async/videos/generationsAsync only

Models

Model idNotes
seedance-2Full quality. Resolutions up to 4k. seconds 415.
seedance-2-fastFaster. Max 720p. seconds 415.
seedance-2-miniLowest 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.

Model480p720p1080p4K
seedance-2-mini4/sec8/sec
seedance-2-fast6/sec13/sec
seedance-28/sec16/sec38/sec78/sec

Example: seedance-2 + 720p + seconds=5 + n=116 × 5 = 80 credits.

Request fields

FieldTypeRequiredDescription
modelstringYesseedance-2, seedance-2-fast, or seedance-2-mini.
promptstringYes1–2000 characters.
secondsintegerYesDuration in seconds (model-specific range).
resolutionstringNo480p / 720p (default) / 1080p / 4k (where supported).
nintegerNoDefault 1, range 19 (seedance-2-mini only allows 1).
imagestring | string[]NoPublic http(s) image URL for image-to-video.
providerOptionsobjectNoOptional model extensions. See providerOptions below.

providerOptions

The same options apply to seedance-2, seedance-2-fast, and seedance-2-mini.

FieldTypeDescription
aspect_ratiostringFrame ratio: 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive.
generate_audiobooleantrue generates synced audio; false returns a silent video.
seedintegerRandom seed for more reproducible results.
image_with_rolesobject[]Role-tagged reference images (see below). Mutually exclusive with top-level image when both are sent — this field wins.
video_with_rolesobject[]Role-tagged reference videos. Each item: { "url", "role": "reference_video" }.
audio_with_rolesobject[]Role-tagged reference audio. Each item: { "url", "role": "reference_audio" }. Cannot be used alone — pair with image or video references.
metadataobjectOpaque passthrough fields. Pixapi does not interpret them.

image_with_roles

Each item: { "url": "<http(s) URL>", "role": "<role>" }.

roleDescriptionLimit
first_frameFirst framemax 1
last_frameLast framemax 1
reference_imageStyle / character referencemax 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.