Veo 3.1 Fast
ID:
google/veo-3Veo 3.1 Fast —— Google DeepMind 的快速高性价比 Veo 3.1 视频模型,支持原生音频(对话和音效)、图生视频,最高 1080p。
文生视频图生视频音频生成1080p
概览
Veo 3.1 Fast —— Google DeepMind 的快速高性价比 Veo 3.1 视频模型,支持原生音频(对话和音效)、图生视频,最高 1080p。
认证
所有 API 请求需要通过 Authorization 请求头以 Bearer 方式传递有效的 API 密钥。
快速开始
凭证
设置 RUNBASE_API_KEY 环境变量。
Shell
export RUNBASE_API_KEY=your-api-key创建运行
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3",
"input": {
"prompt": "一张陶瓷台灯的电影级产品照片"
}
}'运行记录
运行以异步方式处理。提交请求后,轮询获取结果。
创建运行
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3",
"input": { "prompt": "一张陶瓷台灯的电影级产品照片" }
}'获取运行状态
Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
-H "Authorization: Bearer $RUNBASE_API_KEY"获取结果
轮询状态接口,直到 status 为 "succeeded",然后从响应中读取 output.urls。
输入 Schema
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| prompt | string | 必填 | Prompt最多 5000 个字符 |
| aspect_ratio | string | 可选 | Aspect ratio选项: 16:99:16默认值:16:9 |
| resolution | string | 可选 | Resolution选项: 720p1080p默认值:720p |
| image_urls | string[] | 可选 | Frame images最多 2 张图片 |
输出 Schema
| 字段 | 类型 | 描述 |
|---|---|---|
| urls | string[] | 生成的输出 URL |
错误
API 使用标准 HTTP 状态码表示成功或失败。
| 状态码 | 描述 |
|---|---|
| 400 | Invalid request - missing or malformed parameters |
| 401 | Authentication failed - missing or invalid API key |
| 402 | Insufficient credits |
| 403 | Forbidden - IP not allowed, account banned, or API key credit limit exceeded |
| 404 | Run not found |
| 429 | Rate limit exceeded |
| 500 | Internal server error |

