grok-4.20
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI Grok Imagine Video 1.5 generates video from text, a first-frame image, or up to three reference images.
Resolution
480
720
Without video input
16% off$0.0672/ M
$0.1176/ M
With video input
16% off$0.0672/ M
$0.1176/ M
Input
Text
Output
Video
{
"model": "xai/grok-imagine-video-1.5",
"prompt": "晨曦微露的高山湖泊,湖面如镜倒映雪峰与流云,镜头沿湖岸缓缓横移,薄雾轻笼水面,金色阳光穿透云层洒落林间,远处飞鸟掠过天际,电影级画质,柔和自然光,4K 质感。",
"duration": 5,
"resolution": "480",
"aspect_ratio": "adaptive",
"generate_audio": true,
"seed": -1,
"group": "default"
}{}API
Drop-in code to call this model with EasyAPI's OpenAI-compatible API.
Create an API key from your dashboard and set it as an environment variable:
Replace sk-xxxxxxxx with your API token from the console (Bearer token).
Create API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxUse xai/grok-imagine-video-1.5 with the EasyAPI API:
curl https://token.easyapi.com/v1/videos \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"xai/grok-imagine-video-1.5","prompt":"A golden retriever running on a sunny beach, cinematic camera movement","duration":5,"resolution":"720p","aspect_ratio":"adaptive","generate_audio":false,"seed":-1,"size":"1280x720","input_references":[{"type":"image","url":"https://cdn.example.com/portrait.jpg","role":"first_frame"}]}'Submits a video generation task from a text prompt.
https://token.easyapi.com/v1/videosBearer $EASYAPI_API_KEYapplication/jsonxai/grok-imagine-video-1.5根据 prompt 提交视频生成任务,响应含任务 ID 或结果 URL。 Docs
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Yes | 模型 ID,如 bytedance/seedance-2.0;当前使用 xai/grok-imagine-video-1.5 |
prompt | string | Yes | 视频描述,建议包含主体、动作、场景、镜头和风格。不同模型上限不同:Sora 500 字,Hailuo 2000 字,Wan T2V 1500 字、I2V 800 字。Gate.AI 本身不设硬性上限,超出后由上游拒绝并透传 502 / 503。 |
duration | integer | No | 视频时长(秒),支持 4–15 |
resolution | string | No | 输出分辨率:480p、720p 或 1080p |
aspect_ratio | string | No | 宽高比:16:9、4:3、1:1、3:4、9:16、21:9 或 adaptive |
generate_audio | boolean | No | 是否生成音频 |
seed | integer | No | 随机种子,-1 到 4294967295;相同 seed 不保证完全一致 |
size | string | No | 精确输出尺寸,如 1280x720 |
input_references | array | No | 可选参考素材数组,用于图生视频、首尾帧驱动、视频风格迁移或音频驱动生成 |
input_references[].type | string | Yes | 参考素材类型:image、video 或 audio,必须与 role 匹配 |
input_references[].url | string | Yes | 参考素材的 HTTPS 地址 |
input_references[].role | string | Yes | 参考素材用途:first_frame、last_frame、reference_video 或 reference_audio。first_frame/last_frame 各最多 1 个;last_frame 出现时必须同时提供 first_frame |
metadata | object | No | 业务透传字段,用于审计或来源标记 |
webhook_url | string | No | 任务完成或失败后的回调地址 |
Official OpenAI and other SDKs work by swapping the base URL. See integration guide
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI
Multi-agent variant that dispatches sub-agents in parallel for deep research, multi-step reasoning, and tool orchestration.
$3.4/ M
$10.2/ M
$0.34/ M
$0/ M
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI
Grok 4.3 is a reasoning model from xAI that supports text and image inputs with text output. It is suited for agentic workflows, instruction following, long-document analysis, and deep research. The model supports a 1M token context window. Requests above 200K total tokens are billed at a higher rate.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M