VARIANTE · xAI / Grok Imagine

Grok Imagine grok-imagine-image-to-video API

A model variant exposed through RunAPI's unified AI API.

Operational · video · Commercial use supported
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/grok-imagine -g
The -g flag installs globally so every project picks it up.
Or paste this prompt to your AI agent:
Install the Grok Imagine skill for me:

1. Clone https://github.com/runapi-ai/grok-imagine
2. Copy the skills/grok-imagine/ directory into your
   user-level skills directory (e.g. ~/.claude/skills/
   for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.
Switch variant
VISÃO GERAL

Grok Imagine grok-imagine-image-to-video is available through the same RunAPI auth, SDKs, and agent skill workflow.

  • Unified endpoint
  • SDK snippets
  • Agent install path
  • Gerações com falha não são cobradas
PREÇOS

PREÇOS

Gerações com falha não são cobradas
Image to video
$0.02-$0.03 / second
Output resolution: 480p $0.02
Output resolution: 720p $0.03
FICHA TÉCNICA

FICHA TÉCNICA

Model ID grok-imagine-image-to-video
Provedor xAI
Modalidade video
Task type asynchronous
Cobrança second
Endpoint /api/v1/grok_imagine/image_to_video
Commercial Yes
Status Operational
INÍCIO RÁPIDO

Quickstart — grok-imagine-image-to-video

runapi.ai
curl -X POST https://runapi.ai/api/v1/grok_imagine/image_to_video \
  -H "Authorization: Bearer $RUNAPI_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 short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
}'
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 short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.",
});
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 short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
)
@runapi.ai/grok-imagine v1
COMO FUNCIONA

How to use grok-imagine-image-to-video

01

Choose endpoint

Pick the endpoint and copy the SDK snippet.

02

Pass model ID

Use this variant ID in the request body.

03

Run task

Submit the request and store the returned task ID.

04

Collect output

Poll or receive the callback when the task finishes.

DIFERENÇAS

How grok-imagine-image-to-video compares

VS GROK-IMAGINE-EDIT-IMAGE

Input image becomes frame 1; animates with motion + camera

Prompt-guided style transfer and composition editing from one source image

VS GROK-IMAGINE-TEXT-TO-IMAGE

Input image becomes frame 1; animates with motion + camera

Aurora model; 7 aspect ratios; realistic/artistic/anime styles

VS GROK-IMAGINE-TEXT-TO-VIDEO

Input image becomes frame 1; animates with motion + camera

6–10s video from text with synchronized native audio and lip-sync

CASOS DE USO

Where to use this variant

Product video

Generate short production-ready clips from prompts.

Creative iteration

Test multiple directions quickly.

Agent workflows

Let agents create video assets via tool calls.

FAQ

Frequently asked questions about grok-imagine-image-to-video

How do I select grok-imagine-image-to-video?

Pass the model ID shown in the quickstart.

Is pricing usage-based?

Yes. Pricing is metered per call or unit.

COMEÇAR

Start with Grok Imagine today.