跳转到主要内容
POST
/
v1
/
predictions
curl --request POST \
  --url https://api.shuyou.ai/v1/predictions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "veo-3.1-fast-generate-preview",
  "function": "video",
  "input": {
    "prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
    "aspect_ratio": "16:9",
    "resolution": "720P",
    "duration": 8,
    "generate_audio": true
  }
}
'
{
  "data": {
    "task_id": "2c4d50261173430290971a2395a3b607",
    "task_status": "processing"
  }
}

概览

Google Veo 3.1 Fast Generate Previewveo-3.1-fast-generate-preview)支持:
  • 文生视频 — 仅传 prompt
  • 首尾帧first_frame_urllast_frame_url
相比 veo-3.1-generate-preview 生成更快(不支持参考图模式)。

输入参数

FieldRequiredDefaultNotes
prompt最多 1000 字符
aspect_ratio16:916:99:16
resolution720P720P1080P4K
duration8468(秒)
generate_audiotrue是否生成配套音频
negative_prompt反向提示词
first_frame_url首帧图片 URL
last_frame_url尾帧图片 URL

授权

Authorization
string
header
必填

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
enum<string>
默认值:veo-3.1-fast-generate-preview
必填

模型 ID。本接口使用 veo-3.1-fast-generate-preview

可用选项:
veo-3.1-fast-generate-preview
示例:

"veo-3.1-fast-generate-preview"

function
enum<string>
必填

任务类型。视频生成须为 video

可用选项:
video
示例:

"video"

input
object
必填
webhook
string<uri>

可选。任务完成、失败或取消时的 HTTPS 回调地址。

响应

异步任务已创建

data
object
必填