# Seedance 1.5 Pro

> ByteDance's latest video model with synchronized audio generation, flexible aspect ratios, and enhanced motion control.

## Overview

- Submit: `https://api.poyo.ai/api/generate/submit`
- Status: `https://api.poyo.ai/api/generate/status/{task_id}`
- Page: https://poyo.ai/models/seedance-1-5-pro
- Model page ID: `seedance-1-5-pro`
- API model ID: `seedance-1.5-pro`
- Category: Video
- Auth: `Authorization: Bearer $POYO_API_KEY`
- Create a key at https://poyo.ai/dashboard/api-key

This model uses PoYo's unified async API. POST the JSON body below, then poll status with the returned `task_id` or receive a webhook on `callback_url`. Failed tasks are not charged.

## Pricing

- 480p - 4s - no audio: 9 credits ($0.045) per video
- 480p - 8s - no audio: 18 credits ($0.090) per video
- 480p - 12s - no audio: 21 credits ($0.105) per video
- 720p - 4s - no audio: 16 credits ($0.080) per video
- 720p - 8s - no audio: 32 credits ($0.160) per video
- 720p - 12s - no audio: 42 credits ($0.210) per video
- 1080p - 4s - no audio: 40 credits ($0.200) per video
- 1080p - 8s - no audio: 70 credits ($0.350) per video
- 1080p - 12s - no audio: 100 credits ($0.500) per video
- 480p - 4s - with audio: 18 credits ($0.090) per video
- 480p - 8s - with audio: 36 credits ($0.180) per video
- 480p - 12s - with audio: 42 credits ($0.210) per video
- 720p - 4s - with audio: 32 credits ($0.160) per video
- 720p - 8s - with audio: 64 credits ($0.320) per video
- 720p - 12s - with audio: 84 credits ($0.420) per video
- 1080p - 4s - with audio: 40 credits ($0.200) per video
- Plus 2 more pricing rows on the model page.

For more details, see https://poyo.ai/models/seedance-1-5-pro.

## API Information

The request envelope is always `{ model, input, callback_url? }`. Input fields below are nested under `input`.

### Request envelope

- `model` (`ModelEnum`, required):
  Seedance 1.5 Pro model identifier
  - Options: `"seedance-1.5-pro"`
- `callback_url` (`string`, optional):
  Webhook callback URL for result notifications
  - Examples: "https://your-domain.com/callback"

### Input Schema

Input parameters for generation

The API accepts the following `input` parameters:

- `prompt` (`string`, required):
  Enter video description. Must be between 3 and 2,500 characters.
  - Length: 3 to 2500 characters
  - Examples: "slow zoom, sunset glow"
- `image_urls` (`list`, optional):
  Reference image URLs for image-to-video generation (1st image as the first frame, 2nd image as the last frame). File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB
  - Array of string
  - Length: 0 to 2
  - Examples: `["https://example.com/first-frame.jpg","https://example.com/last-frame.jpg"]`
- `aspect_ratio` (`AspectRatioEnum`, required):
  Select the frame dimensions.
  - Options: `"1:1"`, `"21:9"`, `"4:3"`, `"3:4"`, `"16:9"`, `"9:16"`
  - Examples: "1:1"
- `resolution` (`ResolutionEnum`, optional):
  Standard (480p) / High (720p) / Ultra (1080p)
  - Options: `"480p"`, `"720p"`, `"1080p"`
  - Examples: "720p"
- `duration` (`DurationEnum`, required):
  Video duration in seconds
  - Options: `4`, `8`, `12`
  - Examples: `4`
- `fixed_lens` (`boolean`, optional):
  Whether to keep the camera lens fixed
  - Examples: `false`
- `generate_audio` (`boolean`, optional):
  Whether to generate an audio track
  - Examples: `true`

Required Parameters Example:

```json
{
  "model": "seedance-1.5-pro",
  "input": {
    "prompt": "slow zoom over a futuristic city at sunset, cinematic lighting",
    "aspect_ratio": "16:9",
    "duration": 4
  }
}
```

Full Example:

```json
{
  "model": "seedance-1.5-pro",
  "input": {
    "prompt": "slow zoom over a futuristic city at sunset, cinematic lighting",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 4,
    "fixed_lens": false,
    "generate_audio": true,
    "image_urls": [
      "https://example.com/first-frame.jpg",
      "https://example.com/last-frame.jpg"
    ]
  }
}
```

Seedance 1.5 Pro Image-to-Video:

```json
{
  "model": "seedance-1.5-pro",
  "input": {
    "prompt": "slow zoom, sunset glow",
    "image_urls": [
      "https://example.com/image.jpg"
    ],
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 4,
    "fixed_lens": false,
    "generate_audio": true
  }
}
```

### Output Schema

Submit returns a `task_id`. Poll `GET /api/generate/status/{task_id}` until `status` is `finished` or `failed`. Completed media is in `data.files`.

Response fields:

- `code` (`CodeEnum`, required):
  Business status code. `200` means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with `code: 400` in the body.
  
  - `200`: Success
  - `400`: Invalid request parameters
  - `401`: Missing or invalid API key
  - `402`: Insufficient credits
  - `403`: Permission denied
  - `404`: Resource not found
  - `408`: Request timeout
  - `429`: Rate limit exceeded
  - `500`: Internal server error
  - `502`: Upstream service error
  - `503`: Service unavailable
  
  See [Error Codes](/api-manual/error-codes) for details.
  - Options: `200`, `400`, `401`, `402`, `403`, `404`, `408`, `429`, `500`, `502`, `503`
  - Examples: `200`
- `data` (`object`, required):

Example Response:

```json
{
  "code": 200,
  "data": {
    "task_id": "task_example",
    "status": "finished",
    "files": [
      {
        "file_url": "https://storage.poyo.ai/seedance-1-5-pro/examples/crying-man-fal-output.mp4",
        "file_type": "video"
      }
    ]
  }
}
```

## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://api.poyo.ai/api/generate/submit \
  --header "Authorization: Bearer $POYO_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"model":"seedance-1.5-pro","input":{"prompt":"slow zoom over a futuristic city at sunset, cinematic lighting","aspect_ratio":"16:9","resolution":"720p","duration":4,"fixed_lens":false,"generate_audio":true}}'
```

### Python

```python
import json
import os
import time
import requests

API = "https://api.poyo.ai"
headers = {
    "Authorization": f"Bearer {os.environ['POYO_API_KEY']}",
    "Content-Type": "application/json",
}
payload = json.loads("{\n  \"model\": \"seedance-1.5-pro\",\n  \"input\": {\n    \"prompt\": \"slow zoom over a futuristic city at sunset, cinematic lighting\",\n    \"aspect_ratio\": \"16:9\",\n    \"resolution\": \"720p\",\n    \"duration\": 4,\n    \"fixed_lens\": false,\n    \"generate_audio\": true\n  }\n}")

submit = requests.post(f"{API}/api/generate/submit", headers=headers, json=payload)
submit.raise_for_status()
task_id = submit.json()["data"]["task_id"]

while True:
    status = requests.get(f"{API}/api/generate/status/{task_id}", headers=headers)
    status.raise_for_status()
    data = status.json()["data"]
    if data["status"] in ("finished", "failed"):
        print(data)
        break
    time.sleep(2)
```

### JavaScript

```javascript
const headers = {
  Authorization: `Bearer ${process.env.POYO_API_KEY}`,
  "Content-Type": "application/json",
};

const submit = await fetch("https://api.poyo.ai/api/generate/submit", {
  method: "POST",
  headers,
  body: JSON.stringify({
  "model": "seedance-1.5-pro",
  "input": {
    "prompt": "slow zoom over a futuristic city at sunset, cinematic lighting",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 4,
    "fixed_lens": false,
    "generate_audio": true
  }
}),
});

const submitted = await submit.json();
const taskId = submitted.data.task_id;

while (true) {
  const statusResponse = await fetch(`https://api.poyo.ai/api/generate/status/${taskId}`, { headers });
  const status = await statusResponse.json();
  if (["finished", "failed"].includes(status.data.status)) {
    console.log(status.data);
    break;
  }
  await new Promise((resolve) => setTimeout(resolve, 2000));
}
```

## Additional Resources

### Documentation

- [Model Playground](https://poyo.ai/models/seedance-1-5-pro)
- [API Documentation](https://docs.poyo.ai/api-manual/video-series/seedance-1-5-pro)
- [API Documentation (Markdown)](https://docs.poyo.ai/api-manual/video-series/seedance-1-5-pro.md)
- [Task status](https://docs.poyo.ai/api-manual/task-management/query-task-status)
- [Webhooks](https://docs.poyo.ai/api-manual/task-management/webhooks)

### Other agent-readable surfaces

- [Platform overview](https://poyo.ai/llms.txt)
- [Documentation index](https://docs.poyo.ai/llms.txt)
- [Full documentation text](https://docs.poyo.ai/llms-full.txt)
- Any other model: `https://poyo.ai/models/<model-id>/llms.txt`
