> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 视频生成

> 创建视频生成任务并轮询结果。

使用 `/v1/videos/generations` 创建视频生成任务。

```bash theme={null}
curl https://apiany.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.0",
    "prompt": "A cinematic product launch shot for an AI API platform",
    "duration": "10s",
    "resolution": "720p",
    "ratio": "16:9"
  }'
```

## 同步等待接口

`/v1/videos/generations/sync` 会创建视频任务并在同一个 HTTP 请求中等待结果。长耗时任务建议使用异步创建和任务轮询。
