Grok Imagine is xAI’s AI video generation model for creating high-quality videos with realistic motion, native audio, and synchronized speech. Grok Imagine 1.5 introduces faster generation speeds, improved motion physics, and stronger visual consistency for modern AI video applications.
No video yet. Submit the form to generate video.
Explore different use cases and parameter configurations
Transparent pricing with no hidden fees. Pay as you go.
| Rule & Modality | Channel | Credits | Price (USD) | Official / Reference Price | Daily Savings |
|---|---|---|---|---|---|
grok- imagine-image-to-video-480p videogrokresolution: 480p | Starter | 0.3per second | $0.001 | - | - |
grok- imagine-image-to-video-720p videogrokresolution: 720p | Starter | 0.55per second | $0.003 | - | - |
grok- imagine-image-to-video-1080 videogrokresolution: 1080p | Starter | 0.95per second | $0.004 | - | - |
Competitor pricing costs $363.640/day more
ApiPass is 72.73% lower, estimated at Based on 1,000 10-second videos/day
grok- imagine-image-to-video-480p
resolution: 480p
ApiPass Price
$0.014
3 credits per second
Competitor Prices
Complete guide to using grok-imagine
Animate static imagery into coherent, short-form video assets via the asynchronous grok-imagine/image-to-video endpoint, seamlessly accessible through the ApiPass platform. Built to handle complex temporal consistency, the Grok model preserves source depth maps and lighting physics while generating fluid camera motion—engineered for programmatic embedding inside creative platforms and automated asset pipelines.

The Grok Imagine Image-to-Video model (accessible via ApiPass API) animates reference images into high-quality video outputs while preserving the original look, composition, and visual fidelity of the source asset.
Provide image_urls to animate uploaded or externally hosted images. The API supports up to 7 reference images, each 10MB or smaller, in JPEG, PNG, or WEBP format. Use prompt references like @image1 or @image2 to guide how each image should influence the generated video.
Use task_id from a previous grok-imagine/text-to-image generation and select a specific image with index. Valid index values are 0 through 5, with a default of 0. This workflow is useful when you want to generate images first and then animate the best result.
Control video generation with prompt, mode, duration, resolution, and aspect_ratio. Choose fun, normal, or spicy mode; set duration from 6 to 30 seconds; and output at 480p or 720p. External image_urls mode does not support spicy mode, so use normal or fun for that workflow.
Transform a still image into a smooth short video while preserving the original composition and visual identity.
Choose fun for more playful results, normal for balanced motion, or spicy for more dynamic and intense generation. When you use external image_urls, spicy mode is not supported; use task_id mode when you need access to all mode values.
Generate short video clips from 6 to 30 seconds at 480p or 720p. Aspect ratio options include 2:3, 3:2, 1:1, 16:9, and 9:16, making the API suitable for landscape previews, square content, and vertical social clips.
Create short, shareable videos from product images, portraits, concept art, or campaign visuals. Use motion prompts to add camera movement, background dynamics, and rhythmic visual changes for engaging social-ready clips.
Embed image-to-video generation into creative tools or developer platforms to create dynamic banners, animated previews, background videos, and personalized motion content based on user-provided images or previously generated assets.
Turn still product photos, character designs, and creative concepts into short animated sequences. Add motion, perspective shifts, lighting transitions, and cinematic camera moves while preserving the original visual identity.
Quickly test motion ideas, storytelling beats, and visual directions before investing in full production. The API is ideal for design research, creative iteration, and generating animated samples from static imagery.
The API supports two mutually exclusive input workflows: external image URLs or a previous text-to-image task_id. Choose the workflow that matches your asset source and mode requirements.
Use image_urls when you already have external or uploaded images that you want to animate. This workflow supports up to 7 images, each 10MB or smaller, in JPEG, PNG, or WEBP format. Do not send task_id with image_urls, and do not use spicy mode with external images.
Use task_id when you want to animate an image generated by a previous grok-imagine/text-to-image task. index selects one of the six generated images, from 0 to 5, and defaults to 0. This workflow supports all mode values, including spicy.
New ApiPass users can use free credits to test image-to-video generation before moving into production. Try different prompts, modes, durations, resolutions, and aspect ratios to validate quality and integration behavior.
The createTask endpoint supports the optional channel parameter. auto lets ApiPass allocate tasks across available channels based on pricing and stability metrics, while starter, regular, and official provide different cost and reliability profiles.
Video generation is asynchronous. The createTask endpoint returns a taskId and queued status. For production workflows, provide callBackUrl to receive completion or failure notifications, and use /api/v1/jobs/recordInfo as a polling fallback.
Open the ApiPass Playground, select the grok-imagine/image-to-video model, provide your image_urls or a previous task_id, and enter a motion prompt.
Use exactly one input source. Choose image_urls for external images, or choose task_id with index for an image generated by a previous grok-imagine/text-to-image task. Never send image_urls and task_id together.
Send a POST request to the ApiPass endpoint /api/v1/jobs/createTask with the model parameter set explicitly to grok-imagine/image-to-video. Store the returned taskId for callback or polling.
All APIs require authentication via Bearer Token.
Authorization: Bearer
Create an asynchronous image-to-video task with grok-imagine/image-to-video. Provide either external reference image URLs or a previous Grok text-to-image task_id plus index, then describe the desired motion with an optional prompt.
1{
2 "model": "grok-imagine/image-to-video",
3 "channel": "auto",
4 "callBackUrl": "https://your-domain.com/api/callback",
5 "input": {
6 "image_urls": [
7 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
8 ],
9 "prompt": "Make the reference image come alive with a slow cinematic camera push-in, soft atmospheric motion, subtle parallax, and natural lighting changes.",
10 "mode": "normal",
11 "duration": "6",
12 "resolution": "480p",
13 "aspect_ratio": "16:9"
14 }
15}modelRequiredstringApiPass model endpoint name. For this endpoint, use grok-imagine/image-to-video.
grok-imagine/image-to-video
channelOptionalstringDefault channel is auto. APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics; starter is ultra-low-cost with limited quotas and weaker stability; regular is standard and much cheaper than official APIs with moderate stability; official uses the model native API with high stability, fast task execution, and official pricing.
Default channel is auto. APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics; starter is ultra-low-cost with limited quotas and weaker stability; regular is standard and much cheaper than official APIs with moderate stability; official uses the model native API with high stability, fast task execution, and official pricing.
Available options:
auto
callBackUrlOptionalstringCallback URL that ApiPass will call when the task finishes or fails. Recommended for production workflows so you do not need to rely only on polling.
https://your-domain.com/api/callback
image_urlsOptionalarray<string>External reference image URLs for video generation. Use this field when you want to animate uploaded or externally hosted images. Do not provide task_id at the same time.
Provide either image_urls or task_id. image_urls supports up to 7 images, each image must be 10MB or smaller, and supported formats are JPEG, PNG, and WEBP. You can reference images in the prompt with @image1, @image2, and so on. External image mode does not support spicy mode.
[ "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png" ]
task_idOptionalstringTask ID from a previous grok-imagine/text-to-image generation. Use it together with index to select one Grok-generated image. Do not provide image_urls at the same time.
Provide either task_id or image_urls. task_id can be up to 100 characters. This mode supports all mode values, including spicy.
task_grok_12345678
indexOptionalintegerSelects which image to use from the previous Grok image task when task_id is provided. Grok generates 6 images per task, so valid values are 0 through 5.
Default is 0. This parameter is only used with task_id and is ignored when image_urls is provided.
0
promptOptionalstringText prompt describing the desired video motion.
Although optional, a clear prompt is recommended. Describe the action, camera movement, rhythm, subject, environment, and motion dynamics. English prompts are supported. Maximum length is 5000 characters.
Make the scene come alive with a slow cinematic camera push-in and subtle atmospheric motion.
modeOptionalstringControls the motion style and intensity.
Default is normal. fun is more creative and playful, normal is balanced, and spicy is more dynamic and intense. When using external image_urls, spicy mode is not supported and should not be used.
Available options:
normal
durationOptionalstringDuration of the generated video in seconds. The schema type is string, but the value should be an integer number of seconds from 6 to 30.
Valid values are integer seconds from 6 to 30, with a step of 1.
6
resolutionOptionalstringResolution of the generated video.
Default is 480p.
Available options:
480p
aspect_ratioOptionalstringAspect ratio of the generated video.
Default is 16:9. This parameter applies to multi-image generation mode. In single-image mode, the video dimensions follow the input image aspect ratio.
Available options:
16:9
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "grok-imagine/image-to-video",
6 "channel": "auto",
7 "callBackUrl": "https://your-domain.com/api/callback",
8 "input": {
9 "image_urls": [
10 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
11 ],
12 "prompt": "Make the reference image come alive with a slow cinematic camera push-in, soft atmospheric motion, subtle parallax, and natural lighting changes.",
13 "mode": "normal",
14 "duration": "6",
15 "resolution": "480p",
16 "aspect_ratio": "16:9"
17 }
18}'
19
20curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
21 -H "Authorization: Bearer YOUR_API_KEY" \
22 -H "Content-Type: application/json" \
23 -d '{
24 "model": "grok-imagine/image-to-video",
25 "channel": "auto",
26 "callBackUrl": "https://your-domain.com/api/callback",
27 "input": {
28 "task_id": "task_grok_12345678",
29 "index": 0,
30 "prompt": "Animate the selected image with a smooth forward camera move, gentle subject motion, and cinematic depth.",
31 "mode": "spicy",
32 "duration": "6",
33 "resolution": "480p",
34 "aspect_ratio": "16:9"
35 }
36}'1{
2 "taskId": "task_xxx",
3 "status": "queued"
4}taskIdUnique task ID for the created asynchronous generation job. Use this value to query task status.
statusInitial task status after creation, such as queued.

ByteDance
ByteDance
Starting from
0 credits
ByteDance
ByteDance
Starting from
0 credits
ByteDance
ByteDance
Turn text, images, video clips, and audio into cinematic, audio-synced videos with a single API call.
Starting from
0 credits
MiniMax
MiniMax
Starting from
0 credits
ByteDance
ByteDance
Generate cinematic 4K AI videos up to 30 seconds with Seedance 2.5's multimodal power.
Starting from
0 credits
Google Veo 3.1 is the latest state-of-the-art generative video model designed to transform text and image prompts into high-fidelity cinematic visuals. Building upon its predecessors, Veo 3.1 features significant upgrades in prompt adherence, visual realism, and native audio generation, creating 8-second clips with synchronized sound effects and dialogue.
Starting from
0 credits
wan
wan
Starting from
0 credits
Runway
Runway
Starting from
0 credits
Kling
Kling
Transform text prompts and images into high-quality videos with advanced AI. Generate cinematic content with customizable duration, aspect ratio, and audio capabilities.
Starting from
0 credits
ByteDance
ByteDance
Generate realistic human animation videos by combining a portrait image with audio, producing natural lip-sync, facial expressions, and body movements.
Starting from
0 credits
MiniMax
MiniMax
Generate high-quality AI videos from text prompts or images with MiniMax's Hailuo 2.3 model. Support for both 6s and 10s durations, 768p and 1080p resolutions, with intelligent prompt optimization.
Starting from
0 credits
Kling
Kling
Starting from
0 credits
Luma
Luma
Starting from
0 credits
Kling
Kling
Kling v3 video generation model, supports text-to-video and image-to-video, up to 15 seconds, 1080p pro mode
Starting from
0 credits
Kling
Kling
Generate realistic talking avatar videos from a single image and audio file using Kling AI Avatar v2 API. Create lifelike lip-sync animations with natural expressions and body movements.
Starting from
0 credits
Starting from
0 credits
kling
kling
Starting from
0 credits