omni-1.2-flash

别名Gemini Omni 1.2 Flash
由 Google 提供视频

Gemini Omni 1.2 Flash 支持文生视频、图生视频、视频编辑和续写,输出 360p 至 4K,按秒计费。

更新于:
输入文本和媒体图像或视频
输出360p–4K16:9 或 9:16
返回方式异步凭 jobId 查询视频链接
价格起价 3quota / 秒
视频示例16:9 预览
海边陶艺工坊

Cinematic travel editorial film following a young ceramic artist opening her seaside workshop at sunrise. She has short curly dark hair, freckles and a relaxed, thoughtful expression. She wears a faded indigo linen shirt with rolled sleeves, cream trousers and a clay-stained canvas apron. The workshop sits inside a weathered Mediterranean building: pale peach plaster walls, arched windows, wooden shelves filled with handmade bowls, a pottery wheel and a small courtyard overlooking the sea. Morning sunlight streams through the windows, catching suspended dust and illuminating the translucent edges of unfinished porcelain. A restrained palette of terracotta, indigo, warm ivory and sea green. Tactile details: wet clay, woven linen, chipped paint and rippling water. Camera movement is quiet and deliberate, alternating intimate 85mm close-ups with wider 35mm environmental compositions. Shallow depth of field for hands and objects, deeper focus when revealing the workshop. Warm natural highlights, soft blue shadows, subtle film grain and gentle highlight bloom. Movements feel observed rather than performed. Maintain the same artist, wardrobe, pottery and workshop throughout. No dialogue, text or logos. An independent craft magazine brought to life. Shot-by-shot beat sheet — five sequential beats, compressed to fit the selected clip duration: 1. OPENING THE WORKSHOP From inside the dim workshop, the camera slowly pushes toward a closed wooden shutter. The artist opens it, letting golden sunlight sweep across the room. She pauses with one hand on the frame, looking toward the sea. Medium-wide composition, soft backlight outlining her curls. 2. PREPARING THE CLAY Close-up of her hands pressing a lump of wet clay onto the pottery wheel. Her fingers leave distinct impressions before smoothing the surface. A slow lateral camera slide reveals a shallow bowl of cloudy water and a folded linen cloth beside the wheel. 3. SHAPING THE VESSEL Three-quarter view as she leans forward and draws the spinning clay into a small rounded vessel. The camera makes a gentle partial orbit, keeping her hands and the vessel in focus. The shape changes gradually and continuously under her fingertips. 4. INSPECTING THE FINISH She lifts a finished sea-green ceramic cup toward the window and slowly turns it, examining its uneven handmade rim. Tight close-up: sunlight travels across the glaze, revealing tiny variations in color. Her softly blurred face remains behind the cup. 5. THE FIRST QUIET MOMENT In the courtyard, she sets the cup on a worn stone table and sits beside it. A breeze moves her shirt sleeve and the leaves of a nearby olive tree. The camera slowly pulls back through the doorway, framing her against the morning sea. Hold the final composition for a quiet beat.

1080p · 8s · 16:9
生成示例

Gemini Video 的提示词、参考素材和成片

模型能力

omni-1.2-flash 能做什么

文本与首帧输入

可从提示词开始,也可用一张图像确定开场画面。

参考素材

最多用十张参考图引导生成。

编辑或续写

用一个公开视频链接编辑原片或追加 3 至 10 秒。

取回生成的视频

保存任务 ID,查询任务状态和视频链接,也可设置回调。

计费

按操作计费,单位为 quota

按模型、操作和输出设置扣除 quota。

omni-1.2-flash官方定价

生成按请求时长计费,续写只计新增秒数,编辑按源视频的实际时长计费。减去 0.15 秒后向上取整,最低计 1 秒,最高计 15 秒。无法读取时长或源视频超过 15 秒时,请求会被拒绝。

分辨率每秒价格
360p3 quota (≈$0.03)
720p5 quota (≈$0.05)
1080p5 quota (≈$0.05)
4K10 quota (≈$0.10)
API 请求

请求头与提交参数

使用 TTAPI 密钥,按下方字段向接口发送请求。

生成POST
/gemini/video/generations

提交生成、编辑或续写任务,取得 data.jobId。

查看接口文档
查询结果GET
/gemini/video/fetch

查询时必须将返回的 jobId 作为查询参数。成功后从 data.video_url 获取链接。

查看接口文档
POSThttps://api.ttapi.org/gemini/video/generations

请求头

TT-API-KEYstring必填

填写 TTAPI API 密钥。

Content-Typestring必填

使用 application/json。

请求体

promptstring必填

描述场景和动作的提示词。

modelenum必填

使用 omni-1.2-flash。

aspect_ratioenum必填

可选 16:9 或 9:16。

resolutionenum选填

可选 360p、720p(默认)、1080p 或 4K。

durationinteger选填

文本或图像输入支持 3 至 15 秒,默认 10 秒。extend 指定新增 3 至 10 秒,默认 10 秒。edit 省略 duration,结果随源视频时长。编辑按源视频实际时长减去 0.15 秒后向上取整计费,最低 1 秒、最高 15 秒。时长无法读取或源视频超过 15 秒时,拒绝请求。

generation_typeenum按条件填写

frame 需要一张图,reference 支持一到十张。edit 与 extend 必须有一段视频,不能带图。省略时,一张图按首帧处理,两张及以上按参考图处理。传视频必须指定 edit 或 extend。

reference_imagesstring[]按条件填写

最多十个 HTTP(S) URL,不支持 Base64。带图片的请求不能同时包含视频。

reference_videosstring[]按条件填写

edit 或 extend 必须只提供一个可公开访问的 HTTP(S) URL。编辑时须能读取源视频时长。

negative_promptstring选填

描述要排除的内容,空值时省略。

hookUrlstring选填

任务完成或失败时通知的回调 URL。

查看 TTAPI 接入文档
接入示例

发送请求并获取结果

复制当前模型的请求地址、鉴权请求头和请求体。

curl --request POST \
  --url https://api.ttapi.org/gemini/video/generations \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"A slow aerial shot above a misty lake at sunrise","model":"omni-1.2-flash","aspect_ratio":"16:9","resolution":"720p","duration":10}'