gemini-veo-3.1-fast
Veo 3.1 Fast 按提示词生成 8 秒 1080P 视频,可查询异步结果或续写。
更新于:Gemini Video 的提示词、参考素材和成片
A handheld shot follows a wok as it’s expertly flicked, sending vibrant, sizzling vegetables tumbling over themselves in a flash of motion and steam. Audio: a metallic clank and a sharp whoosh.
Camera soars through the barn to the cowboy riding away.
A medium shot frames an old sailor, his knitted blue sailor hat casting a shadow over his eyes, a thick grey beard obscuring his chin. He holds his pipe in one hand, gesturing with it towards the churning grey sea beyond the ship's railing. "This ocean, it's a force, a wild, untamed might. And she commands your awe, with every breaking light."
gemini-veo-3.1-fast 能做什么
根据提示词生成
提交简洁提示词,通过一个 TTAPI 任务获取视频结果。
常用参数
设置提示词、模型、输出参数和回调即可接入。
异步查询
通过轮询或 Webhook 接收结果,避免耗时生成阻塞界面。
接入产品
Gemini Video 的输出可以展示、保存或交给后续流程处理。
按操作计费,单位为 quota
按模型、操作和输出设置扣除 quota。
请求头与提交参数
使用 TTAPI 密钥,按下方字段向接口发送请求。
/gemini/video/generations提交 Gemini Video 生成任务。
查看接口文档/gemini/video/extend续写已完成的 Gemini 视频。
查看接口文档/gemini/video/fetch查询 Gemini Video 任务结果。
查看接口文档请求头
TT-API-KEYstring必填填写 TTAPI API 密钥。
Content-Typestring必填使用 application/json。
请求体
promptstring必填描述场景和动作的提示词。
modelstring必填Veo 或 Omni 模型 ID。
aspect_ratioenum必填可选 16:9 或 9:16。
durationstring选填所选模型支持的视频时长。
resolutionenum选填所需的输出分辨率。
generation_typeenum选填选择 frame 或 reference 生成方式。
reference_imagesstring[]按条件填写用于首帧或参考图生成的图像素材。
reference_videosstring[]选填所选工作流支持的参考视频。
hookUrlstring选填任务完成时调用的回调 URL。
发送请求并获取结果
复制当前模型的请求地址、鉴权请求头和请求体。
curl --request POST \
--url https://api.ttapi.io/gemini/video/generations \
--header "TT-API-KEY: $TTAPI_KEY" \
--header 'Content-Type: application/json' \
--data '{"prompt":"a paper plane above a city","model":"veo-3.1-fast","aspect_ratio":"16:9","resolution":"1080p","duration":"8","hookUrl":"https://example.com/webhooks/gemini-video"}'