xAI

Grok Imagine image to video

Video

Input image becomes frame 1; animates with motion + camera

Model health Healthy
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 short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
}'
https://runapi.ai 1 endpoint
Playground

Try Grok Imagine image to video

Pick any model and generate in seconds.

Estimated: $0.02-$0.03 / second

Sign in to generate with RunAPI.

Sign in to generate

Sign in to start generating with your available language models.

Specifications

Technical details

Provider xAI
Model ID grok-imagine-image-to-video
Modality Video
Task types Asynchronous
API endpoint /api/v1/grok_imagine/image_to_video
Billing unit second
Input parameters aspect_ratio, callback_url, duration_seconds, enable_safety_checker, index, model, motion_style, output_resolution, prompt, reference_image_urls, source_image_url, source_task_id
Max resolution 480p, 720p
Aspect ratios 2:3, 3:2, 1:1, 16:9, 9:16
Catalog status Operational
HOW IT WORKS

Use This Model in 3 Steps

  1. Get Your Key

    Sign up for free and create an API key for grok-imagine-image-to-video from the dashboard.

  2. Send a Request

    POST to /api/v1/grok_imagine/image_to_video with the grok-imagine-image-to-video model slug and your parameters.

  3. Get Results

    Poll the task or follow the callback to retrieve the completed grok-imagine-image-to-video result.

What this model offers

Output resolution

Supports 480p, 720p from the published endpoint schema.

Flexible parameters

Configure 10 documented parameters, including aspect_ratio, duration_seconds, enable_safety_checker, index, motion_style.

Endpoint coverage

Exposes 1 public endpoint(s): image_to_video.

Webhook delivery

Asynchronous tasks accept a callback URL for completion notifications.

Grok Imagine image to video Pricing

Endpoint
Resolution
Duration
Price
image_to_video
Not available
second
$0.02-$0.03 / second
  • Output resolution: 480p: $0.02 / second
  • Output resolution: 720p: $0.03 / second
API REFERENCE

Endpoint Specification

Endpoint
POST /api/v1/grok_imagine/image_to_video
Model ID
grok-imagine-image-to-video
Task Types
image_to_video
Max Duration
Unavailable
Resolutions
480p, 720p
Aspect Ratios
2:3, 3:2, 1:1, 16:9, 9:16
Output Format
Unavailable
Avg Generation Time
Unavailable

Request parameters

index

Optional integer

Zero-based source image index; used only with source_task_id.

prompt

Optional value

Optional video generation prompt.

aspect_ratio

Optional value

Output aspect ratio. (2:3, 3:2, 1:1, 16:9, 9:16)

callback_url

Optional value

Webhook URL for terminal Task delivery.

motion_style

Optional value

Video motion style; spicy requires source_task_id. (fun, normal, spicy)

source_task_id

Optional value

Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both.

duration_seconds

Optional integer

Output duration in seconds.

source_image_url

Optional value

Public source image URL; provide this or source_task_id, but not both.

output_resolution

Optional value

Output resolution. (480p, 720p)

reference_image_urls

Optional value

Not accepted by this model.

enable_safety_checker

Optional value

Enable content safety checks.

USE CASES

Ad & social content

Generate product launch clips and short-form ads from a text brief, cutting production from weeks to hours.

E-learning

Convert lesson scripts into animated explainer videos at scale without a camera or crew.

Creator workflows

Produce viral short-form content for social platforms directly from a prompt.

Usage metrics

Trusted by developers
536
API Calls / Day
10.1%
Success Rate
43.7s
Avg Generation

Verified customer feedback is not available for this model yet.

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.

What's the rate limit on this variant?

Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.

Can I switch variants later?

Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.

Does it stream?

Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.

Where do I report quality issues?

Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.

Do I need a separate provider account?

No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.

Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

Contact Us