xAI: Grok Imagine Video

Coming soonQuick Start

Grok Imagine Video is xAI's video generation model, released 2026-05, that creates short clips from text, a still image, or reference images. It outputs 1–15 second videos at 24 fps in 480p or 720p across seven aspect ratios, and supports reference-to-video generation with up to seven images for consistent characters and settings.

This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.

Modalities
inTextinImageoutVideo
Per second
$0.070720p
Resolution
480p · 720p
Duration
1–15s

Capabilities

VisionStructured output

Video pricing

Billed per second of generated video. The rate depends on the output resolution, and on whether audio is generated with it.

Resolution
Per second
480p
$0.050
720p
$0.070
Duration
1–15s
Aspect ratios
16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 3:2 · 2:3

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="x-ai/grok-imagine-video",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Grok Imagine Video into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free