跳转到主要内容
使用 /v1/videos/generations 创建视频生成任务。
curl https://api.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 请求中等待结果。长耗时任务建议使用异步创建和任务轮询。