Video xAI

Grok Imagine Video API

Use the Grok Imagine Video API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.

runapi.ai
curl -X POST https://runapi.ai/api/v1/grok_imagine/image_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image-to-video",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";

const client = new GrokImagineClient();
const result = await client.imageToVideo.run({
    model: "grok-imagine-image-to-video",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\GrokImagine\GrokImagineClient;

$client = new GrokImagineClient();
$result = $client->imageToVideo->run([
        'model' => 'grok-imagine-image-to-video',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        'prompt' => 'Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light.',
]);
require "runapi/grok_imagine"

client = RunApi::GrokImagine::Client.new
result = client.image_to_video.run(
    model: "grok-imagine-image-to-video",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."
)
npx skills add runapi-ai/grok-imagine -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/grok-imagine v1
OVERVIEW

About Grok Imagine Video

The Grok Imagine Video API delivers a strong quality-to-cost ratio in the video space. Multiple variants let you pick the tier that matches your latency, quality, and budget targets — start on a fast or lite variant for prototyping, then graduate to pro or max for production. Install the Grok Imagine Video skill to bring docs, typed schemas, pricing notes, and step-by-step setup into your coding workspace. The skill works with Claude Code, Codex, Gemini CLI, Cursor, and VS Code, so your agent has the right context before you write integration code. All variants share a single RunAPI API key, unified billing in USD, and the same async task lifecycle — submit, poll or stream, and receive results via webhook callback.

Provider
xAI
Modality
Video

Available Versions

Variant Billing Pricing
grok-imagine-image-to-video second $0.020 View →
grok-imagine-text-to-video second $0.020 View →
grok-imagine-video-1.5-fast call $0.570 View →
grok-imagine-video-1.5-preview second $0.080 View →
PRICING

Grok Imagine Video Pricing

Endpoint Resolution Duration Price
image_to_video 480p, 720p $0.02-$0.03 / second

Prices shown for grok-imagine-image-to-video. Other variants retain their own endpoint pricing.

PRICING

Utility endpoints

Shared endpoints for this model line, such as extension, enhancement, or conversion actions.

Extend video
$0.10-$0.30 / video
Extension length: 6s · Output resolution: 480p $0.10
Extension length: 6s · Output resolution: 720p $0.20
Extension length: 10s · Output resolution: 480p $0.20
Extension length: 10s · Output resolution: 720p $0.30
Agent integration

Run Grok Imagine Video From an Agent

HOW IT WORKS

Get Started with Grok Imagine Video

  1. Create an API key

    Sign up and generate an API key from the dashboard.

  2. Pick a version

    Choose the version that best matches your quality and cost requirements.

  3. Send a request

    Submit your prompt and parameters to the model's documented endpoint.

  4. Get your result

    Poll the task or set a webhook, then download the completed output.

CONTEXT

About Grok Imagine Video on RunAPI

The Grok Imagine Video API exposes a video model from xAI, accessible through RunAPI with a single API key and per-call billing. Developers call Grok Imagine Video the same way they call any other model in the RunAPI catalog — set the model parameter, submit a request, and receive structured JSON. The model skill packages docs, typed schemas, pricing notes, and setup steps so your coding agent has the right context before you write integration code. Billing is unified across all providers, failed generations are never charged, and results are retrievable by task ID.

Provider
xAI
See all →
Modality
Video
Browse models →

Why Use Grok Imagine Video Through RunAPI

One auth, every provider

A single RunAPI API key unlocks the whole model catalog across all providers. No separate accounts to create, no API keys to rotate per integration, and no credential management overhead. Add a new model to your app by changing one parameter.

Unified pricing & billing

Per-call pricing in USD, billed monthly into a single invoice. No subscription tiers, no minimum spend, and failed generations are never charged. The pricing page and check_pricing API show exact costs before you commit to a model.

Schema-first SDK

Typed schemas, parameter constraints, and setup notes are packaged in the model skill so your implementation starts from the right contract. The skill loads into Claude Code, Codex, Gemini CLI, Cursor, and VS Code — your agent knows the correct request shape before you write a line of code.

Grok Imagine Video Questions

Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

Is there a free tier?

Creating an account and API key is free. API calls use prepaid, pay-as-you-go billing; add funds before making requests.

Do you stream results?

Where streaming is available, RunAPI streams end-to-end.

How are failures billed?

Failed generations are not charged.

Are outputs cached?

Generated outputs are stored and retrievable by task ID. Inputs are not cached.

Can I use commercially?

Yes — commercial use is included for every variant unless a model license explicitly restricts it, which is called out on the variant page.

SIMILAR MODELS

Similar Video Models

Start generating with Grok Imagine Video