curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "google/veo3.1-fast/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "720p",
"sound": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Google
Veo 3.1 Fast 文生视频
Veo 3.1 Fast API 可根据文本生成视频场景,可选生成声音,支持横屏或竖屏,输出最高 4K。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "google/veo3.1-fast/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "720p",
"sound": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- google/veo3.1-fast/text-to-video - 根据文本提示词生成视频场景。
功能
- 根据文本提示词生成视频场景。
- 输出分辨率可选
720p、1080p、4k。 - 通过
sound控制是否生成音频,默认为true。
时长选项
- 4、6、8 秒 - 将
duration设为其中一个值。默认:8 秒。
高级参数
model 和可选的 callback_url 放在请求根级,下列参数放在 input 中。
只传本工作流支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。
提示词
prompt:必填。描述场景和期望的运动。- 传入时提示词不能为空白。
分辨率
resolution:720p、1080p、4k。默认:720p。
宽高比
aspect_ratio:auto、16:9、9:16。默认:16:9。
音频
sound:设为true启用音频生成,设为false关闭。默认:true。
定价
价格取决于所选模型及相关输出设置。当前费率请查看 Vidgo 仪表盘。 积分在提交时扣除,任务失败时退还。授权
使用 VIDGO_API_KEY。
请求体
application/json