# Seedance 1.5 Pro API Documentation

> Generate videos with the Seedance 1.5 Pro model through the AI Studio API.

## Overview

Use the AI Studio API to create Seedance 1.5 Pro generation tasks and query their status. The flow is asynchronous: create a task first, then poll the task endpoint with the returned `taskId`.

## Authentication

All requests require an API key in the `Authorization` header.

```http
Authorization: Bearer YOUR_API_KEY
```

## Available models

| modelId | Version | Provider | Runtime model |
| --- | --- | --- | --- |
| `video:bytedance-seedance-1-5-pro` | Seedance 1.5 Pro | Bytedance Seedance 1.5 Pro | bytedance/seedance-1.5-pro |
| `video:fal-fal-ai-bytedance-seedance-v1-5-pro-text-to-video` | Seedance 1.5 Pro Text to Video | ByteDance | fal-ai/bytedance/seedance/v1.5/pro/text-to-video |
| `video:fal-fal-ai-bytedance-seedance-v1-5-pro-image-to-video` | Seedance 1.5 Pro Image to Video | ByteDance | fal-ai/bytedance/seedance/v1.5/pro/image-to-video |

## 1. Create generation task

### Endpoint

```http
POST https://localhost:3000/api/ai-studio/execute
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
```

### Request example

```json
{
  "modelId": "video:bytedance-seedance-1-5-pro",
  "isPublic": true,
  "payload": {
    "model": "bytedance/seedance-1.5-pro",
    "input": {
      "prompt": "A serene beach at sunset with waves gently crashing on the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky",
      "input_urls": [
        "https://file.aiquickdraw.com/custom-page/akr/section-images/example1.png"
      ],
      "aspect_ratio": "1:1",
      "resolution": "720p",
      "duration": 8,
      "fixed_lens": false,
      "generate_audio": false,
      "nsfw_checker": false
    }
  }
}
```

### Success response

```json
{
  "success": true,
  "data": {
    "modelId": "video:bytedance-seedance-1-5-pro",
    "generationId": "generation-id",
    "reservedCredits": 20,
    "taskId": "provider-task-id",
    "state": "queued"
  }
}
```

## 2. Query task status

### Endpoint

```http
GET https://localhost:3000/api/ai-studio/tasks/{taskId}
Authorization: Bearer YOUR_API_KEY
```

### Success response

```json
{
  "success": true,
  "data": {
    "generationId": "generation-id",
    "taskId": "provider-task-id",
    "modelId": "video:bytedance-seedance-1-5-pro",
    "state": "succeeded",
    "mediaUrls": [
      "https://example.com/result.mp4"
    ],
    "reservedCredits": 20,
    "refundedCredits": 0
  }
}
```

## Request fields

### Seedance 1.5 Pro

#### Payload fields

| Field | Type | Required | Default / Example | Options | Description |
| --- | --- | --- | --- | --- | --- |
| `model` | enum | Yes | `"bytedance/seedance-1.5-pro"` | bytedance/seedance-1.5-pro | The model name to use for generation. Required field. - Must be `bytedance/seedance-1.5-pro` for this endpoint |
| `input` | object | No | `-` | - | Input parameters for the generation task |

#### Input fields

| Field | Type | Required | Default / Example | Options | Description |
| --- | --- | --- | --- | --- | --- |
| `prompt` | string | Yes | `"A serene beach at sunset with waves gently crashing on the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky"` | - | The text prompt used to generate the video. Required field. (Min length: 3, Max length: 20000 characters) |
| `input_urls` | string[] | No | `["https://file.aiquickdraw.com/custom-page/akr/section-images/example1.png"]` | - | URLs of input images for image-to-video generation. Optional field. - Accepts 0-2 images<br>- If not provided, the model will perform text-to-video generation<br>- File URLs after upload, not file content<br>- Accepted types: image/jpeg, image/png, image/webp<br>- Max size per image: 10.0MB |
| `aspect_ratio` | enum | Yes | `"1:1"` | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9 | Video aspect ratio configuration. Required field. |
| `resolution` | enum | No | `"720p"` | 480p, 720p, 1080p | Video resolution - 480p for faster generation, 720p for balance, 1080p for higher quality |
| `duration` | number | Yes | `-` | - | Duration of the video in seconds,Optional range 4-12 s |
| `fixed_lens` | boolean | No | `false` | - | Seedance adds dynamic camera movement. Enable this feature to lock the camera for stable, static shots. - **true**: Lock camera for static shots<br>- **false**: Allow dynamic camera movement |
| `generate_audio` | boolean | No | `false` | - | Whether to generate audio for the video. - **true**: Generate with audio (higher cost)<br>- **false**: Generate without audio Note: Enabling audio will increase the generation cost |
| `nsfw_checker` | boolean | No | `-` | - | Defaults to false. You can set it to false based on your needs. If set to false, our content filtering will be disabled, and all results will be returned directly by the model itself.<br>Note: There is no guarantee that everything can be filtered out; if you are not satisfied with the results, you will need to make your own arrangements. |

### Seedance 1.5 Pro Text to Video

#### Payload fields

| Field | Type | Required | Default / Example | Options | Description |
| --- | --- | --- | --- | --- | --- |
| `seed` | object | No | `-` | - | Random seed to control video generation. Use -1 for random. |
| `duration` | enum | No | `"5"` | 4, 5, 6, 7, 8, 9, 10, 11, 12 | Duration of the video in seconds |
| `resolution` | enum | No | `"720p"` | 480p, 720p, 1080p | Video resolution - 480p for faster generation, 720p for balance, 1080p for higher quality |
| `aspect_ratio` | enum | No | `"16:9"` | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, auto | The aspect ratio of the generated video |
| `enable_safety_checker` | boolean | No | `true` | - | If set to true, the safety checker will be enabled. |
| `prompt` | string | Yes | `"Defense attorney declaring \"Ladies and gentlemen, reasonable doubt isn't just a phrase, it's the foundation of justice itself\", footsteps on marble, jury shifting, courtroom drama, closing argument power."` | - | The text prompt used to generate the video |
| `generate_audio` | boolean | No | `true` | - | Whether to generate audio for the video |
| `camera_fixed` | boolean | No | `false` | - | Whether to fix the camera position |

#### Input fields

_No fields are configured for this model._

### Seedance 1.5 Pro Image to Video

#### Payload fields

| Field | Type | Required | Default / Example | Options | Description |
| --- | --- | --- | --- | --- | --- |
| `seed` | object | No | `-` | - | Random seed to control video generation. Use -1 for random. |
| `duration` | enum | No | `"5"` | 4, 5, 6, 7, 8, 9, 10, 11, 12 | Duration of the video in seconds |
| `resolution` | enum | No | `"720p"` | 480p, 720p, 1080p | Video resolution - 480p for faster generation, 720p for balance, 1080p for higher quality |
| `aspect_ratio` | enum | No | `"16:9"` | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, auto | The aspect ratio of the generated video |
| `enable_safety_checker` | boolean | No | `true` | - | If set to true, the safety checker will be enabled. |
| `end_image_url` | object | No | `-` | - | The URL of the image the video ends with. Defaults to None. |
| `prompt` | string | Yes | `"A man is crying and he says \"I shouldn't have done it. I regret everything\""` | - | The text prompt used to generate the video |
| `generate_audio` | boolean | No | `true` | - | Whether to generate audio for the video |
| `image_url` | string | Yes | `"https://v3b.fal.media/files/b/0a8773cd/REzCWn1BKUVuMFTxR-R3W_image_317.png"` | - | The URL of the image used to generate video |
| `camera_fixed` | boolean | No | `false` | - | Whether to fix the camera position |

#### Input fields

_No fields are configured for this model._

## Pricing

Credits are reserved when a generation task is created. The `reservedCredits` value in the create-task response is the final amount reserved for that request.

| Model | Type | Spec | Price | Billing |
| --- | --- | --- | --- | --- |
| Seedance 1.5 Pro | Text/Image to Video | 480p | 7 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 480p | 14 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 480p | 28 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 480p | 19 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 480p | 38 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 720p | 14 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 720p | 28 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 720p | 56 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 720p | 42 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 720p | 84 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 1080p | 30 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 1080p | 60 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 1080p | 120 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 1080p | 90 credits | Fixed per generation |
| Seedance 1.5 Pro | Text/Image to Video | 1080p | 180 credits | Fixed per generation |
| Seedance 1.5 Pro Text to Video | Text to Video | 480p | 5 credits/s | Output seconds × 5 |
| Seedance 1.5 Pro Text to Video | Text to Video | 480p | 2 credits/s | Output seconds × 2 |
| Seedance 1.5 Pro Text to Video | Text to Video | 720p | 10 credits/s | Output seconds × 10 |
| Seedance 1.5 Pro Text to Video | Text to Video | 720p | 5 credits/s | Output seconds × 5 |
| Seedance 1.5 Pro Text to Video | Text to Video | 1080p | 23 credits/s | Output seconds × 23 |
| Seedance 1.5 Pro Text to Video | Text to Video | 1080p | 12 credits/s | Output seconds × 12 |
| Seedance 1.5 Pro Image to Video | Image to Video | 480p | 5 credits/s | Output seconds × 5 |
| Seedance 1.5 Pro Image to Video | Image to Video | 480p | 2 credits/s | Output seconds × 2 |
| Seedance 1.5 Pro Image to Video | Image to Video | 720p | 10 credits/s | Output seconds × 10 |
| Seedance 1.5 Pro Image to Video | Image to Video | 720p | 5 credits/s | Output seconds × 5 |
| Seedance 1.5 Pro Image to Video | Image to Video | 1080p | 23 credits/s | Output seconds × 23 |
| Seedance 1.5 Pro Image to Video | Image to Video | 1080p | 12 credits/s | Output seconds × 12 |

## Common errors

| Status | Meaning |
| --- | --- |
| `400` | Invalid request payload |
| `401` | Missing or invalid API key |
| `402` | Insufficient credits or plan limit |
| `404` | Model or task not found |
| `429` | Rate limit exceeded |
| `500` | Server error |
