grok-imagine-video-1.5-fast

由 xAI 提供视频

经非官方渠道生成 6 至 30 秒的 Grok 1.5 Fast 视频,可设置提示词、宽高比和分辨率。

更新于:
输入提示词文本
模型1款可用
返回方式异步结果链接
价格9 quota6 秒档价格未公布
视频示例2:3 portrait 预览
视频示例

two anime friends laughing together on a sunlit snowy city street, warm backlight, falling snow, handheld close-up

文生视频 · 非官方渠道 · 6s · 1168 × 1728 · 2:3 portrait · 24 fps
生成示例

从提示词到成片

01 · 打电话的女子文生视频
文生视频 · 无参考图
提示词

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.

02 · 街头滑板少年文生视频
文生视频 · 无参考图
提示词

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.

03 · 游戏角色招式演示文生视频
文生视频 · 无参考图
提示词

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。

非官方渠道固定价格官方定价
时长价格计费单位
10 seconds9 quota / 段
>10 to 20 seconds20 quota / 段
>20 to 30 seconds30 quota / 段
API 请求

grok-imagine-video-1.5-fast 操作和请求字段

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

生成POST
/grok/generations

使用 video_length、resolution_name、参考图和可选回调提交非官方 Grok 视频任务。

查看接口文档
首帧POST
/grok/generations

在 1.5 Fast 或 1.5 中使用 first_frame 指定开场图像。

查看接口文档
尾帧POST
/grok/generations

在 1.5 Fast 或 1.5 中使用 last_frame 指定结尾图像。

查看接口文档
首尾帧POST
/grok/generations

给 1.5 Fast 或 1.5 指定开场和结尾图像。

查看接口文档
关键帧POST
/grok/generations

在 1.5 Fast 或 1.5 片段中的指定时刻固定最多 4 张关键帧。

查看接口文档
POSThttps://api.ttapi.io/grok/generations

请求头

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 搭配。

查看 TTAPI 接入文档
接入示例

发送请求并获取结果

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

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"}]}'