---
title: Seedance 2.0 Fast video generation API · Unified v1
description: "Seedance 2.0 Fast: public request parameters, defaults, availability limits and asynchronous task examples."
outline: [2, 3]
---

# Seedance 2.0 Fast video generation API · Unified v1

::: info API version
This page describes the **Unified Video API (v1)**. You can independently choose the [Seedance Native API (v3)](/api/seedance/) instead; use the request and result format documented for your chosen interface.
:::

For Seedance-family API model IDs, a successful, fully settled `GET /v1/tasks/{id}` response may include `assets[].source_url` for each recorded original asset URL. Other models and unfinished or failed tasks omit this field. The original link may already be expired or access-limited; its expiry is not checked and the link is not refreshed when querying. Save files promptly; use `assets[].url` if the original link is unavailable. Platform download links and console previews are unchanged. Do not send your Tokenlio API Key to either asset URL.

::: info Model capabilities and optional controls
Only specifications and modes currently available for the requested API model ID can be used. Ranges on this page are interface limits, not a guarantee that every model ID supports every combination. Unsupported durations, resolutions, input counts or modes are rejected with `VIDEO_REQUEST_INVALID`; do not retry the same unsupported request.

Optional controls `generate_audio`, `return_last_frame`, `seed`, `watermark` and `output_format` may have no effect or use a default when unsupported. Defaults describe the request, not a guarantee of generated audio, a final frame, repeatable output or a particular container. Check the actual `assets` and downloaded file. Unknown fields, invalid types and `null` are still rejected.
:::

**Seedance 2.0 Fast ｜ explicit integer duration ｜ video and reference inputs ｜ asynchronous tasks**

Seedance 2.0 Fast uses the shared asynchronous video API. Use the parameters and examples below only for specifications and modes supported by the API model ID you request.

**Base URL**: `https://api.tokenlio.ai`

Every path below is relative to the Base URL:

- **Create**: `POST /v1/videos/generations`, returns **202 Accepted**.
- **Query**: `GET /v1/tasks/{id}`, reads task status and results.
- **Download**: `GET /v1/tasks/{id}/content`, obtains the video file.

::: warning Only `480p` and `720p`
Fast does not support `1080p` or `4k`. Set `resolution` to `480p` or `720p`; reusing a high-resolution Standard request returns `unsupported model resolution`.
:::

::: tip Before you start
1. Sign in to the Tokenlio console and create a Workspace **model-routing API Key**.
2. Copy the published Fast API model ID from the [model catalog](https://api.tokenlio.ai/marketplace) and replace `example/seedance-2.0-fast` in the examples.
3. Video tasks are asynchronous: creation returns a 202 response with the task `id` immediately, so poll the query endpoint for the result.
:::

## Quick start (end-to-end)

Set the Key securely as the `TOKENLIO_API_KEY` environment variable and replace the model ID before running the example.

::: warning Do not automatically retry creation
Every POST without an idempotency identifier is an independent generation request. If creation times out before you receive an `id`, check the console call records first; once you have an `id`, only query that task instead of submitting again. The optional idempotency header is described in the [shared guide](/api/videos).
:::

::: code-group

```bash [cURL]
# 1. Submit the generation task (returns 202 with the task ID)
curl -X POST "https://api.tokenlio.ai/v1/videos/generations" \
  -H "Authorization: Bearer $TOKENLIO_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
    "model": "example/seedance-2.0-fast",
    "prompt": "A night city time-lapse, street lights flowing with traffic, the camera pushes forward slowly",
    "duration": 8,
    "resolution": "720p",
    "size": "16:9",
    "generate_audio": true
  }'

# 2. Query the task status (poll every 5–10 seconds)
# Replace TASK_ID with the id returned above
curl -X GET "https://api.tokenlio.ai/v1/tasks/TASK_ID" \
  -H "Authorization: Bearer $TOKENLIO_API_KEY"
```

```python [Python]
import os
import time
import requests

API_KEY = os.environ.get("TOKENLIO_API_KEY")
BASE_URL = "https://api.tokenlio.ai"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

# 1. Create the video task
payload = {
    "model": "example/seedance-2.0-fast",
    "prompt": "A night city time-lapse, street lights flowing with traffic, the camera pushes forward slowly",
    "duration": 8,
    "resolution": "720p",
    "size": "16:9",
    "generate_audio": True
}

resp = requests.post(f"{BASE_URL}/v1/videos/generations", headers=headers, json=payload)
resp.raise_for_status()
task = resp.json()
task_id = task["id"]
print(f"Task submitted, id: {task_id}, status: {task.get('status')}")

# 2. Poll until the task finishes
while True:
    time.sleep(5)
    query_resp = requests.get(f"{BASE_URL}/v1/tasks/{task_id}", headers=headers)
    query_resp.raise_for_status()
    result = query_resp.json()
    status = result.get("status")
    print(f"Polled status: {status}")

    if status == "succeeded":
        for asset in result.get("assets", []):
            if asset.get("role") == "video":
                print(f"Video ready, download URL: {asset.get('url')}")
        break
    elif status == "failed":
        err = result.get("error", {})
        print(f"Task failed: {err.get('code')} - {err.get('message')}")
        break
```

:::

Creation returns **HTTP 202 Accepted**:

```json
{
  "id": "8a4f1c92-6b20-4d0e-9c0a-31d7b5f0a914",
  "model": "example/seedance-2.0-fast",
  "status": "queued",
  "assets": []
}
```

A successful query returns **HTTP 200 OK**. When `status=succeeded`, use the `role=video` asset. If the requested model supports final-frame delivery and returns an asset with `role=last_frame`, you can use that image in a later supported first-frame task. Sending `return_last_frame=true` alone does not guarantee a frame asset. [API guide](/api/videos).

## Request parameters

| Parameter | Type | Required / default | Definition and limits |
| --- | --- | --- | --- |
| `model` | string | **Required** | The exact published API model ID from the catalog (for example `example/seedance-2.0-fast`); display aliases are not accepted. |
| `prompt` | string | Required for text-to-video / recommended otherwise | Up to 4,000 characters; 100–500 characters is usually enough — state the subject, camera movement, environment lighting and motion detail. |
| `duration` | integer | **Required (no default)** | Output length in seconds; an integer from **4–15**. Decimals and negative values are not accepted.  Only use this option within the model's currently available capabilities. |
| `resolution` | string | `720p` | `480p` or `720p` only. `1080p` and `4k` are rejected.  Only use this option within the model's currently available capabilities. |
| `size` | string | `16:9` | Aspect ratio: `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9`, `adaptive`.  Only use this option within the model's currently available capabilities. |
| `generate_audio` | boolean | `true` | Optional audio-generation preference; supported models apply `true` or `false`. It may have no effect; it does not guarantee audio in the result. |
| `return_last_frame` | boolean | `false` | Optional final-frame request. Use an asset with `role=last_frame` only if it is returned; some models ignore this control. |
| `seed` | integer | Optional | Optional signed 64-bit random seed. It may be ignored and never guarantees identical output. |
| `output_format` | string | `mp4` | Requested container: `mp4`. If unsupported, it may fall back to `mp4`; inspect the downloaded file instead of relying on its extension. |
| `image_urls` | string[] | Optional | Public HTTPS URLs of reference images, at most 9. **Cannot be combined with `image_with_roles`**.  Only use this option within the model's currently available capabilities. |
| `image_with_roles` | object[] | Optional | Image objects with roles, used to set first/last frames, at most 2 items. **Cannot be combined with `image_urls`**.  Only use this option within the model's currently available capabilities. |
| `image_with_roles[].url` | string | Required | Stable public HTTPS URL of the image. |
| `image_with_roles[].role` | string | Required | `first_frame` (at most 1) or `last_frame` (requires a first frame). |
| `video_urls` | string[] | Optional | Public HTTPS URLs of reference videos, at most 3 clips and 15 seconds of total input duration.  Only use this option within the model's currently available capabilities. |
| `audio_urls` | string[] | Optional | Public HTTPS URLs of reference audio, at most 3 clips. **Reference images or videos must be supplied too**; 2.0 does not accept audio-only references.  Only use this option within the model's currently available capabilities. |
| `expected_pricing_revision` | string | Optional | A pricing version you already hold; if the version changed, creation is rejected with `VIDEO_PRICE_CHANGED` and **no price is reserved or locked**. |
| `max_charge_amount` | string | Optional | Maximum USD you are willing to pay (for example `"0.50"`), at most 8 fractional digits. |

::: warning Strict JSON types
- Use valid JSON data types: booleans must be real booleans (`true`/`false`) and integers must be integers (such as `5`); never send `"true"` or `"5"`.
- Do not send `null` values or undefined fields.
- `watermark` and `omni_reference_task_type` have no effect on 2.0 models; they do not enable 2.5 modes. Unknown fields and invalid JSON types are still rejected.
:::

## Usage scenarios

Advanced examples apply only when the requested model supports the illustrated specification or mode. They use the same create, query and download endpoints.

### Scenario 1: script tests (text-to-video)

Confirm composition and pacing cheaply at `480p`, then re-run the accepted prompt on the Standard model for the final resolution.

```json
{
  "model": "example/seedance-2.0-fast",
  "prompt": "An old street corner after rain, street lights stretching long reflections across the puddles, a pedestrian with an umbrella walks in from the right, the camera pans slowly to follow",
  "duration": 6,
  "resolution": "480p",
  "size": "16:9",
  "generate_audio": true
}
```

### Scenario 2: 9:16 vertical short video

Vertical framing is standard for social posts and short drama. `720p` is enough for full-screen playback on phones.

```json
{
  "model": "example/seedance-2.0-fast",
  "prompt": "A young chef tosses a wok in a bright open kitchen, flames rise, a steady frontal medium shot, ambient sizzle and light upbeat music",
  "duration": 5,
  "resolution": "720p",
  "size": "9:16",
  "generate_audio": true
}
```

### Scenario 3: single first frame (animate a still)（when available）

Set `first_frame` through `image_with_roles` and describe the subject's motion and camera changes in the prompt. The result is not guaranteed to match every detail of the source image.

```json
{
  "model": "example/seedance-2.0-fast",
  "prompt": "The cat in the frame turns its head gently toward the window, whiskers trembling with each breath, soft window light, the camera stays steady",
  "duration": 5,
  "resolution": "720p",
  "size": "16:9",
  "image_with_roles": [
    { "url": "https://YOUR_PUBLIC_CDN/cat.png", "role": "first_frame" }
  ],
  "return_last_frame": true
}
```

::: tip First-frame rules
- When `image_with_roles` is used, **do not** also send `image_urls`, `video_urls` or `audio_urls`.
- At most one first frame and one last frame; a last frame requires a first frame, and the two must use different public URLs.
:::

### Scenario 4: multimodal references (image + video + audio)

Fix the product look with reference images, borrow the camera rhythm from a reference video and cut to the beat of reference audio to produce a deliverable promo quickly.

```json
{
  "model": "example/seedance-2.0-fast",
  "prompt": "Follow the handheld tracking rhythm of the reference video throughout, showing the stainless steel bottle from the reference images in different scenes, cutting between scenes on the drum beats of the reference audio",
  "duration": 8,
  "resolution": "720p",
  "size": "9:16",
  "image_urls": [
    "https://YOUR_PUBLIC_CDN/bottle_white.jpg",
    "https://YOUR_PUBLIC_CDN/bottle_black.jpg"
  ],
  "video_urls": [
    "https://YOUR_PUBLIC_CDN/handheld_ref.mp4"
  ],
  "audio_urls": [
    "https://YOUR_PUBLIC_CDN/beat.mp3"
  ]
}
```

::: tip Billing note
With a reference video, billed duration covers both the input video duration and the requested output duration; the final amount is the `charged_amount` and `currency` in the task record.
:::

## Input material guidelines

| Material | Recommended specs and limits |
| --- | --- |
| **Images** | Up to 9; JPEG, PNG, WebP or BMP; keep each file `< 30 MB`; dimensions between `300×300` and `4096×4096 px`; aspect ratio 0.4–2.5. |
| **Videos** | Up to 3 clips; prefer MP4 / H.264 at 480p or 720p; 2–15 seconds per clip, at most 15 seconds in total. |
| **Audio** | Up to 3 clips; MP3 or WAV preferred; at most 15 seconds in total; each file `< 15 MB`; **must accompany images or video**. |

Every material uses a directly reachable public HTTPS URL that needs no login, headers or redirects. Do not use private addresses or base64, and keep links valid and content stable for the life of the task.

## Common errors

| Error code / message | Cause and fix |
| --- | --- |
| `unsupported model resolution` | A resolution Fast does not support. Only `480p` and `720p` are available. |
| `duration must be an explicit integer from 4 to the model maximum` | `duration` is missing, not an integer, or outside 4–15 seconds. |
| `unsupported input asset counts or frame combination` | Too many materials, or an invalid frame combination such as `last_frame` alone. |
| `frame inputs cannot be mixed with reference inputs` | First/last frames were mixed with ordinary references. |
| `this model requires images or video with reference audio` | `audio_urls` was sent alone; audio references need images or video. |

Invalid creation requests return **400 Bad Request** directly. Query failures and timeouts are covered in the [shared guide](/api/videos#errors).

## Next steps

- [Seedance 2.0 Standard (supports `1080p` and `4k`)](/api/videos/seedance-2-0)
- [Seedance 2.0 Mini (`480p` / `720p` output)](/api/videos/seedance-2-0-mini)
- [Shared video task guide (query, download and billing)](/api/videos)
