Gemini Omni 1.1 Flash · POST /v1/videos · 视频生成
POST/v1/videos
Gemini Omni 1.1 Flash
公开模型名:gemini-omni-1.1-flash。
- 时长固定 10 秒。不传秒数时按 10 秒处理;显式传入其他秒数会被拒绝。
resolution:720p(默认)或1080p。- 参考图最多 7 张。首尾帧传
first_last_frame: true,并且必须正好 2 张。 - 不支持参考视频。
- 提交
POST /v1/videos,查询GET /v1/videos/{task_id}。响应model保持请求时的公开名。
cURL:参考图
curl --location --request POST 'https://api.horver.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-omni-1.1-flash",
"prompt": "让产品在柔和棚拍灯光下缓慢转动,背景保持干净",
"resolution": "720p",
"images": ["https://example.com/reference.png"]
}'
cURL:首尾帧 1080p
curl --location --request POST 'https://api.horver.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-omni-1.1-flash",
"prompt": "从第一张图自然过渡到第二张图,保持主体一致",
"resolution": "1080p",
"first_last_frame": true,
"images": [
"https://example.com/start.png",
"https://example.com/end.png"
]
}'
Request
Responses
- 200
提交成功。响应里的 model 保持请求时的公开名。