跳转到主要内容
POST
/
generate
/
k
/
veo3-image-to-video
Veo 3.1 图像转视频
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/veo3-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "imageUrls": [
    "https://example.com/image1.jpg"
  ],
  "prompt": "animate the scene with smooth camera movement",
  "aspectRatio": "16:9",
  "enableTranslation": true,
  "model": "veo3_fast",
  "seeds": 12345,
  "watermark": ""
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
使用 Google DeepMind 的 Veo 3.1 模型将图片转换为视频。 模型特点:
  • 双模式支持 - 单图动画或首尾帧过渡两种生成模式
  • 角色一致性 - 跨场景保持人物外观一致
  • 音频同步 - 自动生成匹配的音效和环境音
  • 高清输出 - 1080P 画质,真实物理效果

授权

Authorization
string
header
必填

请使用您的 API Token 进行认证

请求体

application/json

Task parameters

imageUrls
string[]
必填

图片 URL 列表(必填)- 用于视频生成的图片 URL 1张图片:从单张图片生成视频;2张图片:首尾帧生成视频

Required array length: 1 - 2 elements
示例:
["https://example.com/image1.jpg"]
prompt
string
必填

提示词(必填)- 视频生成的文本描述

Minimum string length: 1
示例:

"animate the scene with smooth camera movement"

aspectRatio
enum<string>
默认值:16:9

宽高比(可选)- 视频宽高比,默认 16:9

可用选项:
16:9,
9:16,
Auto
示例:

"16:9"

enableTranslation
boolean
默认值:true

启用翻译(可选)- 启用翻译,默认 true

示例:

true

model
enum<string>
默认值:veo3_fast

模型(可选)- veo3(质量优先)或 veo3_fast(速度优先),默认 veo3_fast

可用选项:
veo3,
veo3_fast
示例:

"veo3_fast"

seeds
integer

随机种子(可选)- 范围 10000-99999

必填范围: 10000 <= x <= 99999
示例:

12345

watermark
string

水印(可选)- 水印标识

示例:

""

响应

OK

task_id
string
必填

Task ID

示例:

"01234567-89ab-cdef-0123-456789abcdef"