# Seedance 1.5 Pro API

> Seedance 1.5 Pro — high-quality AI video generation.

- **Provider**: ByteDance
- **Model id**: `bytedance-seedance-1-5-pro`
- **Modality**: video
- **Price**: 1.12–5.01 credits /sec

## Overview

Seedance 1.5 Pro is called in two steps: create a generation task, then poll the task until the result is ready.

## Authentication

All requests require a Bearer Token in the request header:

```
Authorization: Bearer YOUR_API_KEY
```

## Create Task

`POST https://you.bot/api/v1/generate`

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| modelId | string | Yes | Model id: `bytedance-seedance-1-5-pro` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL to receive a signed webhook on completion |

### input object parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| prompt | string | Yes | Enter video description (3-2500 characters)... (default: Animate the still: dumplings sizzle and blister in a cast-iron pan as a lid lifts and steam billows upward, the camera pushing in slowly on the crisping golden edges. Audio: gentle sizzle, soft steam hiss.) |
| input_urls | string[] | No | Upload 0-2 images. Leave empty to generate video from text only. (image URL) |
| aspect_ratio | string | Yes | Select the frame dimensions. Default is 1:1. (options: 1:1 | 21:9 | 4:3 | 3:4 | 16:9 | 9:16) (default: 16:9) |
| resolution | string | No | Standard (480p) / High (720p) (options: 480p | 720p | 1080p) (default: 720p) |
| duration | number | Yes | video duration (range 4-12) (default: 8) |
| fixed_lens | boolean | No | Enable to keep the camera view static and stable. Disable for dynamic camera movement. (true/false) (default: false) |
| generate_audio | boolean | No | Enable to create sound effects for the video (Additional cost applies). (true/false) (default: false) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |

### Request example

```json
{
  "modelId": "bytedance-seedance-1-5-pro",
  "input": {
    "prompt": "A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.",
    "input_urls": [
      "https://example.com/input.jpg"
    ],
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": "8",
    "fixed_lens": false,
    "generate_audio": false,
    "nsfw_checker": true
  }
}
```

### Response example

```json
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 24
}
```

## Query Task

`GET https://you.bot/api/v1/task/{taskId}?model=bytedance-seedance-1-5-pro`

When `state` is `success`, the output is in `resultUrls`: `{ "state": "success", "resultUrls": [ ... ] }`. (Text models return inline in the create response.)

## Error Codes

| Code | Description |
|------|-------------|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed, check API Key |
| 402 | Insufficient account balance |
| 422 | Parameter validation failed |
| 429 | Request rate limit exceeded |
| 500 | Internal server error |
