Veo 3
谷歌Veo 3:高品质视频生成
功能特性
- 文本到视频生成
- 高品质输出
- 多种宽高比
- 可选水印去除
定价
| Model | Credits |
|---|---|
| veo3 (high quality) | 130 (~$1.44) |
| veo3_fast (faster) | 30 (~$0.33) |
端点
POST
/api/v1/videos/generate参数
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| model | string | 必需 | "veo3" or "veo3_fast" |
| type | string | 可选 | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | 必需 | Text description of the video |
| image_urls | string[] | 可选 | Input image URLs for image-to-video |
| input_image | string | 可选 | Deprecated. Alias for image_urls[0] |
| aspect_ratio | string | 可选 | "16:9", "9:16", or "Auto" (aliases: "landscape", "portrait", "square") |
| watermark | boolean | 可选 | Include watermark (default: true) |
| seeds | number | 可选 | Random seed for reproducibility |
| enable_fallback | boolean | 可选 | Enable fallback providers |
| enable_translation | boolean | 可选 | Auto-translate non-English prompts |
请求示例
{
"model": "veo3",
"prompt": "A drone shot flying over a tropical beach at sunset",
"aspect_ratio": "16:9"
}响应示例
{
"success": true,
"data": {
"task_id": "task_veo123",
"credits_used": 130,
"remaining_credits": 370,
"model": "veo3"
}
}代码示例
curl -X POST https://gateway.bananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "veo3",
"prompt": "A drone shot flying over a tropical beach at sunset",
"aspect_ratio": "16:9"
}'