xAI

Grok Imagine text to video

视频

6–30 秒文生视频,原生音频同步和唇形同步

模型健康状态 数据不足
curl -X POST https://runapi.ai/api/v1/grok_imagine/text_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-text-to-video",
  "prompt": "生成一段机械手在棋盘上落子的短视频,戏剧性打光,慢动作。"
}'
https://runapi.ai 1 endpoint
模型体验

体验 Grok Imagine text to video

选择任意模型,几秒内开始生成。

预计: $0.02-$0.03 / 秒

登录后即可使用 RunAPI 生成。

登录后生成

登录后即可使用可用语言模型开始生成。

规格

技术细节

提供商 xAI
模型 ID grok-imagine-text-to-video
模态 视频
任务类型 Asynchronous
API 端点 /api/v1/grok_imagine/text_to_video
计费单位 秒
输入参数 aspect_ratio, callback_url, duration_seconds, enable_safety_checker, model, motion_style, output_resolution, prompt, reference_image_urls
最大分辨率 480p, 720p
宽高比 2:3, 3:2, 1:1, 16:9, 9:16
目录状态 运行中
工作原理

3 步使用此模型

  1. 获取 API 密钥

    免费注册后,在控制台创建用于 grok-imagine-text-to-video 的 API 密钥。

  2. 发送请求

    向 /api/v1/grok_imagine/text_to_video 发送 POST 请求,并传入 grok-imagine-text-to-video 模型 ID 和参数。

  3. 获取结果

    轮询任务或按照回调获取已完成的 grok-imagine-text-to-video 结果。

该模型的核心能力

输出分辨率

根据已发布的 endpoint 规格,支持 480p, 720p。

灵活的参数配置

可配置文档中列出的 7 个参数,包括 aspect_ratio, duration_seconds, enable_safety_checker, motion_style, output_resolution。

Endpoint 覆盖

提供 1 个公开 endpoint:text_to_video。

Webhook 推送

异步任务支持回调 URL,任务完成时发送通知。

Grok Imagine text to video 定价

端点
分辨率
时长
价格
text_to_video
暂不可用
秒
$0.02-$0.03 / 秒
  • 输出分辨率:480p: $0.02 / 秒
  • 输出分辨率:720p: $0.03 / 秒
API 参考

端点规格

端点
POST /api/v1/grok_imagine/text_to_video
模型 ID
grok-imagine-text-to-video
任务类型
text_to_video
最大时长
暂无数据
分辨率
480p, 720p
宽高比
2:3, 3:2, 1:1, 16:9, 9:16
输出格式
暂无数据
平均生成时间
暂无数据

请求参数

prompt

必填 value

Video generation prompt.

aspect_ratio

可选 value

Output aspect ratio. (2:3, 3:2, 1:1, 16:9, 9:16)

callback_url

可选 value

Webhook URL for terminal Task delivery.

motion_style

可选 value

Video motion style. (fun, normal, spicy)

duration_seconds

可选 integer

Output duration in seconds.

output_resolution

可选 value

Output resolution. (480p, 720p)

reference_image_urls

可选 value

Not accepted by this model.

enable_safety_checker

可选 value

Enable content safety checks.

应用场景

广告与社交内容

从文字简报生成产品发布短视频和广告片段,将制作周期从数周缩短到数小时。

在线教育

将课程脚本批量转换为动画讲解视频,无需摄像设备和拍摄团队。

创作者工作流

直接从提示词生成社交平台短视频内容。

常见问题

Grok Imagine text to video 常见问题

如何选择 grok-imagine-text-to-video?

传入 quickstart 中显示的模型 ID。

该变体的限流?

Key 级限流随使用层级伸缩。当前限制见定价页。

能切到其它变体吗?

可以——变体只是参数,改 model 字段即可。

支持流式吗?

模型支持流式时,RunAPI 端到端流式。

质量问题在哪里报?

在公共 GitHub 仓库提 issue 或邮件联系 support。

需要单独的提供方账户吗?

不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。

需要团队接入支持?

我们可以协助团队接入、完成系统集成并解答技术问题。

联系我们