文生视频 API
使用 Buble 视频模型通过 prompt 生成视频。
文生视频 API
视频模型使用 mode: "text_to_video"。
推荐模型
| 模型 | Key | 优势 |
|---|---|---|
| Veo 3.1 Fast | google/veo3.1-fast | 固定 8 秒的快速电影感视频。 |
| Veo 3.1 Quality | google/veo3.1-quality | 更高质量的 Veo 3.1 输出。 |
| Sora 2 | openai/sora-2 | 叙事与表演类场景。 |
| Kling 3.0 | kling/kling-v3 | 动作、产品运动和人物镜头。 |
| Seedance 2.0 Fast | doubao/seedance-2.0-fast | 灵活时长和快速视频生产。 |
示例
curl https://buble.ai/api/v1/generations \
-H "Authorization: Bearer $BUBLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao/seedance-2.0-fast",
"mode": "text_to_video",
"prompt": "A stylish 5-second social ad for a smart travel backpack, fast clean cuts, city morning light, premium lifestyle cinematography",
"duration": "5s",
"resolution": "720p",
"aspect_ratio": "9:16",
"audio": "false",
"web_search": "false"
}'