Seedance 2.5 即将上线了解更多

Grok Imagine Video API

使用 xAI 的 Grok Imagine 将创意转化为 6-30 秒动态视频。提供 fun、normal、spicy 三种风格模式,无需视频编辑技能即可创作。

价格: $0.012 - 0.024(~ 0.8 - 1.6 credits) per second

可能偶发不可用,更适合开发和测试场景。

所有版本使用同一个 API 端点,仅 model 参数不同。

86 (建议:2,000)
6s
6s30s

Click Generate to see preview

History

最多保留20条

0 运行中 · 0 已完成

您的生成历史将显示在这里

Pricing

Grok Imagine 1.0 Text to Video Beta
Text to Video
resolution:480p
Price:
$0.012/ second
(0.8 Credits)
Grok Imagine 1.0 Text to Video Beta
Text to Video
resolution:720p
Price:
$0.024/ second
(1.6 Credits)

If an upstream route is unavailable, EvoLink can use the next available option where fallback coverage exists, helping teams keep costs and operations predictable.

xAI Grok Imagine Video API 创意视频生成

从文本或图片生成 6-30 秒视频,支持 fun、normal、spicy 三种风格模式。

Grok Imagine Video API 展示

使用 Grok Imagine Video API 可以构建什么

文生视频

使用 Grok Imagine 将文本提示转换为动态视频。选择 fun、normal 或 spicy 模式来匹配您的创意愿景。

文生视频展示

图生视频动画

使用 Grok Imagine 的图生视频功能让静态图片动起来。上传图片并描述您想要的动作。

图生视频展示

规模化创意内容

快速生成多个视频变体,用于社交媒体、营销活动或创意项目。

内容扩展展示

为什么选择 Grok Imagine Video API

Grok Imagine Video API 提供灵活的视频生成功能,具有独特的风格模式,适合创意内容创作。

多种风格模式

选择 fun、normal 或 spicy 模式来匹配您的创意愿景和内容需求。

文本和图片支持

从文本提示生成视频或为现有图片添加自然动作。

灵活的时长

创建 6-30 秒视频,支持多种宽高比选项。

如何使用 Grok Imagine Video API

按照以下步骤使用 Grok Imagine Video API 生成视频。

1

准备输入

编写文本提示或准备图片 URL 用于图生视频。

2

配置参数

设置时长(6-30 秒)、模式(fun/normal/spicy)和宽高比。

3

生成并下载

提交请求并在准备好后下载生成的视频。

Grok Imagine Video API 核心功能

来自 xAI 的强大视频生成能力。

T2V

文生视频

直接从文本描述生成视频,支持自定义参数。

I2V

图生视频

将静态图片动画化为具有自然动作的动态视频。

模式

风格模式

选择 fun、normal 或 spicy 模式获得不同的创意效果。

时长

灵活时长

根据需求生成 6-30 秒视频。

格式

宽高比

支持 16:9、9:16、1:1、2:3、3:2 宽高比,适配不同平台。

API

简单集成

通过 Evolink AI 统一接口轻松集成 API。

Grok Imagine Video API 常见问题

Everything you need to know about the product and billing.

Grok Imagine Video API 是 xAI 的视频生成服务,可从文本提示或图片创建视频。支持多种风格模式和时长选项。
Grok Imagine 提供三种风格模式:fun(有趣和创意)、normal(平衡和自然)、spicy(大胆和戏剧性)。
您可以使用 Grok Imagine Video API 生成 6 至 30 秒任意整数时长的视频。
Grok Imagine 支持 16:9(横屏)、9:16(竖屏)、1:1(方形)、2:3 和 3:2 宽高比。
POST
/v1/videos/generations

Create Video

Grok Imagine Text to Video (grok-imagine-text-to-video-beta) - Generate video from text prompt.

Asynchronous processing mode, use the returned task ID to .

Generated video links are valid for 24 hours, please save them promptly.

Request Parameters

modelstringRequiredDefault: grok-imagine-text-to-video-beta

Video generation model name.

Examplegrok-imagine-text-to-video-beta
promptstringRequired

Text prompt describing the video content to generate.

ExampleA cat playing piano in a cozy room
durationintegerOptionalDefault: 6

Video duration in seconds. Any integer from 6 to 30.

Notes
  • Range: 6 ~ 30 seconds (step 1)
Example6
qualitystringOptionalDefault: 480p

Video resolution quality.

ValueDescription
480pStandard definition (default)
720pHigh definition
Example480p
modestringOptionalDefault: normal

Style mode for video generation.

ValueDescription
funPlayful and creative style
normalBalanced and natural style
spicyBold and dramatic style
Examplenormal
aspect_ratiostringOptionalDefault: 16:9

Video aspect ratio.

ValueDescription
16:9Landscape
9:16Portrait
3:2Landscape
2:3Portrait
1:1Square
Example16:9
callback_urlstringOptional

HTTPS callback address after task completion.

Notes
  • Triggered on completion, failure, or cancellation
  • HTTPS only
  • Max length: 2048 chars
  • Timeout: 10s, Max 3 retries
Examplehttps://your-domain.com/webhooks/video-completed

Request Example

{
  "model": "grok-imagine-text-to-video-beta",
  "prompt": "A cat playing piano in a cozy room",
  "duration": 6,
  "quality": "480p",
  "mode": "normal",
  "aspect_ratio": "16:9"
}

Response Example

{
  "created": 1757169743,
  "id": "task-unified-1757169743-abc123",
  "model": "grok-imagine-text-to-video-beta",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 120,
    "video_duration": 6
  },
  "type": "video",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 4.8,
    "user_group": "default"
  }
}