Skip to content
Dashboard

Grok Imagine Video 1.5 Lite

Grok Imagine Video 1.5 Lite is xAI's lightweight video generation model for turning text prompts and images into clips with native audio. It supports videos from 1 to 15 seconds in 480p, 720p, and 1080p, with seven aspect ratios for formats including widescreen 16:9 and vertical 9:16. Your use is subject to SpaceXAI's Terms & Privacy Policies.

View API reference
Price
$0.02, Per second
Lowest available configuration
import { experimental_generateVideo as generateVideo } from 'ai';
const result = await generateVideo({
model: 'spacexai/grok-imagine-video-1.5-lite',
prompt: 'A serene mountain lake at sunrise.'
});
Read docs

Copy link to headingPlayground

Try out Grok Imagine Video 1.5 Lite by SpaceXAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

spacexai logo
Images
Add up to 7 images
Prompt

Duration8s
1s15s
Resolution
Aspect ratio
Videos to generate
spacexai logo

Your generated video will appear here.

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Checking availability for your team
Provider
Input
Output
Capabilities
ZDR
No Training
Free AI Gateway Credit
Release Date
$0.01/img
$0.02/sec+2 more
10/01/2026

Getting started

Generate videos with Grok Imagine Video 1.5 Lite using the experimental_generateVideo function from AI SDK 6 or later. AI Gateway handles routing and polls until the video is ready.

Install the AI SDK (pnpm add ai dotenv), create an API key from the API Keys page, and set it as AI_GATEWAY_API_KEY in your environment. Full setup is covered in the video generation quickstart.

index.ts
import { experimental_generateVideo as generateVideo } from 'ai';
import fs from 'node:fs';
import 'dotenv/config';
async function main() {
const result = await generateVideo({
model: 'spacexai/grok-imagine-video-1.5-lite',
prompt: 'A drone shot of a coastal cliff with crashing waves at golden hour.',
});
// Save the generated video
fs.writeFileSync('output.mp4', result.videos[0].uint8Array);
console.log('Video saved to output.mp4');
}
main().catch(console.error);

Top-level parameters

Load the common, top-level parameters supported across video models.

top-level-params.ts
import { experimental_generateVideo as generateVideo } from 'ai';
import fs from 'node:fs';
import 'dotenv/config';
async function main() {
const result = await generateVideo({
model: 'spacexai/grok-imagine-video-1.5-lite',
prompt: 'A drone shot of a coastal cliff with crashing waves at golden hour.',
duration: 5,
aspectRatio: '16:9',
resolution: '1280x720',
});
// Save the generated video
fs.writeFileSync('output.mp4', result.videos[0].uint8Array);
console.log('Video saved to output.mp4');
}
main().catch(console.error);
ParameterTypeRequiredDescription
promptstringNoText description of the video to generate.
durationnumberNoVideo length in seconds. 1-15 seconds.
resolutionstringNoResolution ('854x480', '1280x720', '1920x1080').
aspectRatiostringNoAspect ratio ('1:1', '16:9', '9:16', '4:3', '3:4', '3:2', '2:3').
generateAudiobooleanNoGenerate synchronized audio with the video.

Input limits

InputFormatsSourcesMax countMax sizeLimits
Image—url, base647——
Audio—url———

Provider options

Pass provider-specific options under providerOptions.xai.

provider-options.ts
import { experimental_generateVideo as generateVideo } from 'ai';
import fs from 'node:fs';
import 'dotenv/config';
async function main() {
const result = await generateVideo({
model: 'spacexai/grok-imagine-video-1.5-lite',
prompt: 'A drone shot of a coastal cliff with crashing waves at golden hour.',
duration: 5,
providerOptions: {
xai: {
pollTimeoutMs: 600000,
},
},
});
// Save the generated video
fs.writeFileSync('output.mp4', result.videos[0].uint8Array);
console.log('Video saved to output.mp4');
}
main().catch(console.error);

Pass these under providerOptions.xai in your generateVideo call.

ParameterTypeRequiredDescription
providerOptions.xai.pollIntervalMsnumberNoHow often to check task status. Defaults to 5000.
providerOptions.xai.pollTimeoutMsnumberNoMaximum wait time. Defaults to 600000 (10 minutes).

Copy link to headingMore models by SpaceXAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free AI Gateway Credit
Release Date
500K2.5 s83 tps
$2/M+1 more
$6/M+1 more
Read$0.50/M
$5/K
+2
xai logo
09/21/2026
500K1.9 s73 tps
$2/M+1 more
$6/M+1 more
Read$0.50/M
$5/K
+2
xai logo
08/12/2026
500K1.4 s76 tps
$2/M+1 more
$6/M+1 more
Read$0.30/M
$5/K
+4
xai logo
07/08/2026
1M1.2 s134 tps
$1.25/M+1 more
$2.50/M+1 more
Read$0.20/M
$5/K
+4
vertex logo
xai logo
04/30/2026
1M0.8 s
$0.20/M
$0.50/M
Read$0.05/M
—
+3
vertex logo
11/19/2025
1M0.5 s143 tps
$0.20/M
$0.50/M
Read$0.05/M
—
+2
vertex logo
11/19/2025