# Seedance 1.0 (Text / Image)

**What**：Seedance 1.0 Pro / Pro Fast sub-models: same endpoint, set model to one of the sub-models below for text-to-video or image / first-last frame video, up to 4K.

**When**：Use for 1080P / 2K / 4K output, or the cheaper Pro Fast for quick drafts. Reference mode and audio are not supported.

## Endpoints
- POST `/v1/videos`
- GET `/v1/videos/{id}`
- GET `/v1/videos/{id}/content`

> This page uses the unified API: create with `POST /v1/videos`, poll with `GET /v1/videos/{id}`, authenticate with `Authorization: Bearer <key>`; errors use the OpenAI format.

Creating returns a video object right away (`status: queued`). Poll `GET /v1/videos/{id}` until `status` is `completed` or `failed`; `url` is the result address, or download it with `GET /v1/videos/{id}/content`.

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| model | string | Yes | Sub-model: seedance-1.0-pro / seedance-1.0-pro-fast |
| prompt | string | — | Video description (required for text-to-video, optional with images) |
| seconds | integer | — | Duration (sec) 3-10, default 5 (alias duration) |
| resolution | string | — | 480P / 720P / 1080P / 2K / 4K, default 720P |
| ratio | string | — | Aspect ratio, e.g. 16:9 / 9:16 / 1:1 (image mode follows the first frame) |
| imageUrls | array | — | Image mode: ≤2 images used as first / last frame in order (or pass firstFrameUrl / lastFrameUrl) |
| firstFrameUrl / lastFrameUrl | string | — | First / last frame image URL (optional) |
| seed | integer | — | Random seed (optional) |

`model`, `prompt`, `seconds`, `size` and `input_reference` are the common fields; the other fields are specific to this model channel and go in the same body under their own names. `seconds` / `size` (must be `WIDTHxHEIGHT`) are only translated when the matching channel field is absent.

## Request example
```bash
curl https://api.novapi.ai/v1/videos \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedance-1.0-pro",
  "prompt": "a young woman in a red raincoat walking through a rainy neon-lit city street at night, cinematic tracking shot",
  "seconds": 3,
  "resolution": "480p",
  "ratio": "16:9"
}'
```

```python
import os, requests

r = requests.post(
    "https://api.novapi.ai/v1/videos",
    headers={"Authorization": "Bearer " + os.environ["API_KEY"]},
    json={
        "model": "seedance-1.0-pro",
        "prompt": "a young woman in a red raincoat walking through a rainy neon-lit city street at night, cinematic tracking shot",
        "seconds": 3,
        "resolution": "480p",
        "ratio": "16:9",
    },
)
print(r.json())  # poll GET /v1/videos/{id} until status is completed
```

```ts
const resp = await fetch("https://api.novapi.ai/v1/videos", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "seedance-1.0-pro",
    "prompt": "a young woman in a red raincoat walking through a rainy neon-lit city street at night, cinematic tracking shot",
    "seconds": 3,
    "resolution": "480p",
    "ratio": "16:9"
  }),
});
console.log(await resp.json()); // poll GET /v1/videos/{id} until status is completed
```

## Response example
```json
{
  "id": "video_<task-id>",
  "object": "video",
  "model": "seedance-1.0-pro",
  "status": "queued",
  "progress": 0,
  "created_at": <unix-seconds>,
  "completed_at": null,
  "expires_at": null,
  "error": null
}
```

```json
{
  "id": "video_<task-id>",
  "object": "video",
  "model": "seedance-1.0-pro",
  "status": "completed",
  "progress": 100,
  "created_at": <unix-seconds>,
  "completed_at": <unix-seconds>,
  "expires_at": null,
  "error": null,
  "url": "https://..."
}
```

```bash
curl https://api.novapi.ai/v1/videos/video_<task-id> \
  -H "Authorization: Bearer $API_KEY"

# completed: "status": "completed", "progress": 100, and a "url" field with the result
curl -L https://api.novapi.ai/v1/videos/video_<task-id>/content \
  -H "Authorization: Bearer $API_KEY" \
  --output result.mp4
```
