grok-imagine-video-1.5-fast
经非官方渠道生成 6 至 30 秒的 Grok 1.5 Fast 视频,可设置提示词、宽高比和分辨率。
更新于:从提示词到成片
This is a scene from a movie, she is having a conversation on the phone with a man, she speaks and pauses to listen then talks again. Her tone is hesitant then determined. She’s walking around slowly and talking on the phone. They are talking about a meetup on Thursday to discuss details.
The guy in the middle starts skateboarding slowly, then goes faster, then is going very fast. The camera follows his face from the side in a documentary coming-of-age style. He laughs and says, “I told you bro, this will be the best summer!” Sound: cars passing by, skateboard wheels on pavement, and two other teenagers laughing.
The character is showing off her fighting moves, no music.
grok-imagine-video-1.5-fast 能做什么
根据提示词生成
提交简洁提示词,通过一个 TTAPI 任务获取视频结果。
常用参数
设置提示词、模型、输出参数和回调即可接入。
异步查询
通过轮询或 Webhook 接收结果,避免耗时生成阻塞界面。
接入产品
grok-imagine-video-1.5-fast 的输出可以展示、保存或交给后续流程处理。
按操作计费,单位为 quota
按模型、操作和输出设置扣除 quota。
grok-imagine-video-1.5-fast 操作和请求字段
使用 TTAPI 密钥,按下方字段向接口发送请求。
/grok/generations使用 video_length、resolution_name、参考图和可选回调提交非官方 Grok 视频任务。
查看接口文档/grok/fetch取回非官方 Grok 视频结果。
查看接口文档/grok/extensions续写非官方渠道生成的 Grok 视频。
查看接口文档/grok/generations在 1.5 Fast 或 1.5 中使用 first_frame 指定开场图像。
查看接口文档/grok/generations在 1.5 Fast 或 1.5 中使用 last_frame 指定结尾图像。
查看接口文档/grok/generations给 1.5 Fast 或 1.5 指定开场和结尾图像。
查看接口文档/grok/generations在 1.5 Fast 或 1.5 片段中的指定时刻固定最多 4 张关键帧。
查看接口文档请求头
TT-API-KEYstring必填填写 TTAPI API 密钥。
Content-Typestring必填使用 application/json。
请求体
promptstring必填生成提示词。基础版、1.5 和 Lite 最多支持 4,096 字符,1.5 Fast 支持更长提示词。
modelenum选填默认 grok-imagine-video-1.5-fast,也支持 grok-imagine-video、grok-imagine-video-1.5 和 grok-imagine-video-1.5-lite。
aspect_ratioenum选填默认 16:9,支持 2:3、3:2、1:1、9:16 和 16:9。
video_lengthstring选填默认 10 秒。Fast 支持 6 至 30 秒,基础版、1.5 和 Lite 支持 1 至 15 秒。基础版用单图时最长 15 秒,多图时最长 10 秒。
resolution_nameenum选填默认 720p。所有模型均支持 480p 和 720p,1.5 和 Lite 支持 1080p,Lite 的 1080P 由 720P 放大。
refer_imagesstring[]按条件填写参考图 URL。Fast 最多支持 7 张,基础版支持多张,1.5 的参考图工作流仅用一张,其他 1.5 工作流使用文本或显式首尾帧设置。
first_framestring选填首帧图 URL,1.5 Fast、1.5 和 Lite 的首帧工作流支持。
last_framestring选填尾帧图 URL,1.5 Fast 和 1.5 支持。first_frame 和 last_frame 使用同一图像可形成循环效果。
reference_audiosobject[]选填用于旁白或配音的角色对象,每项含 voice_id,最多 3 项。
hook_urlstring选填任务完成或失败时调用的 URL,也可通过 Fetch 查询结果。
keyframesobject[]按条件填写1.5 Fast 或 1.5 的关键帧生视频必填。最多 4 项,每项含 image: { url } 和 timestamp_s。时间戳须位于片段内,相隔至少三分之一秒。可与 first_frame 和 last_frame 搭配。
发送请求并获取结果
复制当前模型的请求地址、鉴权请求头和请求体。
curl --request POST \
--url https://api.ttapi.io/grok/generations \
--header "TT-API-KEY: $TTAPI_KEY" \
--header 'Content-Type: application/json' \
--data '{"model":"grok-imagine-video-1.5-fast","prompt":"two anime friends laughing together on a sunlit snowy city street","aspect_ratio":"2:3","video_length":"6","resolution_name":"720p","first_frame":"https://example.com/first-frame.jpg","last_frame":"https://example.com/last-frame.jpg","reference_audios":[{"voice_id":"luna"}]}'