BlockRun
Get started

Grok Imagine Video

xai
Video

xAI's Grok Imagine video generation. Text or image to video, configurable 1–15s clips at $0.05/sec.

Pricing
$0.05/sec
Default 8s · max 15s
Model ID
xai/grok-imagine-video
Endpoint
POST /api/v1/videos/generations
Image input:✓ supported
Payment:USDC on Base via x402
Code Examples
from blockrun_llm import LLMClient

client = LLMClient()  # uses BLOCKRUN_WALLET_KEY (never sent to server)
job = client.video_generate(
    model="xai/grok-imagine-video",
    prompt="a red apple slowly spinning on a wooden table",
    duration_seconds=8,
    image_url="https://example.com/seed.jpg",  # optional
)
print(job["data"][0]["url"])  # MP4 URL

Try It — Video Generation

Type a prompt below and click Generate.

Output: downloadable MP4. Payment in USDC via x402 — no API key.

~$0.4200 USDC

Connect your wallet to generate. Pay-per-call in USDC on Base via x402 — no API key needed.

About xAI Grok Imagine Video

xAI's Grok Imagine video generation. Text or image to video, configurable 1–15s clips at $0.05/sec. It is built by xAI and served through BlockRun's video generation API, which means you can call it without an account, an API key, or a subscription. Requests are paid for individually, in USDC, at the moment they are made.

What it costs

Grok Imagine Video is billed by the length of the clip it produces. A default 8-second generation costs $0.421, settlement fee included, and the maximum supported length is 15 seconds. The exact price is quoted in the 402 before you pay. Generation is asynchronous: the API returns a job you poll, and the finished MP4 is mirrored to BlockRun storage so the URL does not expire.

Specifications

Default duration
8 seconds
Maximum duration
15 seconds
Input modes
Text-to-video and image-to-video
Payment
Pay-per-call USDC via x402
Output hosting
Permanent MP4 hosting on BlockRun

Calling it from your code

Pass xai/grok-imagine-video as the model field to the video generation endpoint. The response contains a job id; poll it until the clip is ready.

The first request comes back as an HTTP 402 carrying a signed price quote. Your client signs that quote with a wallet holding USDC and retries; the second request returns the completion, and the payment settles on-chain. Client libraries handle this handshake for you, so in practice it is a single call. See the documentation for request and response shapes, or browse the full catalog of 71 chat models to compare alternatives.

Other video models

Every model on BlockRun is reached through the same endpoint and the same payment flow, so switching is a one-line change to the model field. These are the closest alternatives to Grok Imagine Video: