创建 Gemini Omni 视频
创建 Gemini Omni 视频生成任务。任务创建后,请使用通用视频任务查询接口获取生成状态和结果。
task_id。请使用 查询视频任务 接口轮询任务状态,任务完成后从 result.video_url 获取视频地址。支持的模型
| model | 说明 |
|---|---|
Gemini-Omini | 标准 Gemini Omni,支持 4/6/8/10 秒与 720p/1080p/4k |
omni-10s | 固定 10 秒、720p,支持最多 7 张参考图(图片或视频 URL) |
Omni-Flash-Ext、gemini-omni 等别名会归一化为 Gemini-Omini。
参考视频与生成模式
标准版Gemini-Omini 支持以下高级参数以实现视频参考和不同的使用模式:
generation_type(string):生成类型,可选frame(首帧模式,image_urls只能传 1 张图片作为视频首帧)或reference(参考模式,image_urls可以传 1 张或 3 张图片作为参考图)。默认为reference。video_urls(array):参考视频 URL 列表(目前最多支持 1 个视频)。注意:上传参考视频(使用video_urls)时不需要传入duration,且duration与video_urls不可以同时传入。
omni-10s 示例
omni-10s 会忽略请求中的 duration 与 resolution,统一按 10 秒、720p 计费(模型名 omni-10s)。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
Model name. Gemini-Omini, Omni-Flash-Ext, and gemini-omni normalize to Gemini-Omini; omni-10s is a fixed 10s model (720p, up to 7 reference images).
Gemini-Omini, Omni-Flash-Ext, gemini-omni, omni-10s Text prompt for video generation
Video duration in seconds. Default: 6. Only supports: 4, 6, 8, 10. Note: duration is not required when uploading a reference video, and duration and video_urls cannot be passed at the same time.
Video resolution. Defaults to 720p.
720p, 1080p, 4k Video aspect ratio, for example 16:9 or 9:16. Takes precedence over orientation.
Video orientation. Used only when aspect_ratio is empty: landscape maps to 16:9, portrait maps to 9:16.
landscape, portrait Reference image URL list. omni-10s supports up to 7 images.
Compatibility field for common OpenAPI image inputs; used when image_urls is empty. omni-10s supports up to 7 images.
Generation type. frame: first frame mode (image_urls can only accept 1 image as the first frame of the video); reference: reference mode (image_urls can accept 1 or 3 images as style/subject reference). Defaults to reference.
frame, reference Reference video URL list (currently supports up to 1 video). Note: duration is not required when uploading a reference video, and duration and video_urls cannot be passed at the same time.