Grok Imagine Text to Video: Turn Prompts into Clips

Last verified: October 19, 2026

Grok Imagine suits work where you need several takes of a short clip quickly and want to settle on the best one. xAI built it for speed and low cost as well as output quality, so creative teams can try several directions side by side and narrow down fast. Grok Imagine text-to-video on Vidofy turns a written description into a clip of up to 30 seconds. Besides the usual social and widescreen shapes, you can frame it in a 2:3 portrait or 3:2 landscape ratio.

For text-to-video, xAI lets you set three things besides the prompt: duration, aspect ratio and resolution. The form gives you the same three choices as Video Duration, Aspect Ratio and Resolution. Everything else about the shot, from the subject to the camera move, goes in the prompt. That's why there's an Enhance Prompt button under the box to turn a rough idea into a fuller description.

Explore more text to video

Grok Imagine Settings at a Glance

What you write, what you can set and what you get back from each run.

Input

A text prompt of up to 2,048 characters

Video Duration

6 to 30 seconds

Resolution

480P or 720P

Aspect Ratio

1:1, 2:3, 3:2, 9:16, 16:9

Output

1 video per run

Typical Time

About 79 seconds

How Do You Get Better Results from Grok Imagine?

Write the Sound Into the Prompt

Grok Imagine generates audio along with the picture, and its videos come with an audio track by default. Add a short sound line to the prompt after the action: the ambience of the place, the one sound effect that matters, and whether music plays and in what mood. That way you direct the soundtrack along with the shot instead of leaving it to the model.

Choose 2:3 or 3:2 for Photographic Framing

xAI's aspect-ratio guidance links 3:2 and 2:3 to photography. Pick them when a clip should feel like a moving still, such as an editorial portrait, a lookbook frame or a landscape you could hang on a wall. In Aspect Ratio, choose 2:3 for a full-length figure or a tall subject and 3:2 for a horizontal scene. Then describe a composition in the prompt that fits that frame.

Draft Short at 480P, Finish at 720P

Longer clips and higher resolutions take more time to generate. The quickest way to a working prompt is to run short drafts at 480P in Resolution with a brief Video Duration. Once the action, the camera and the look are right, set the length you need and 720P for the final. Treat the drafts as tests of your wording, not previews of exact frames, because the final render is a new generation.

How Do You Turn a Prompt into a Grok Imagine Video?

Four steps take you from a written prompt to a downloaded clip.

1

Describe the shot in the "Prompt" box

In the "Prompt" box, write who or what is in the shot, what happens, where it takes place, how the camera moves and what it should sound like. The box holds up to 2,048 characters, which is plenty for one well-described scene. Spend them on concrete details rather than piled-up adjectives. Starting from a rough idea? Click "Enhance Prompt" under the box to see fuller versions. Your text stays as you wrote it until you pick a suggestion, so you can compare first.
2

Set "Video Duration", "Resolution" and "Aspect Ratio"

In "Video Duration", pick any whole number of seconds from 6 to 30. It starts at 6. Give a short clip one clear action, and keep the longer lengths for scenes your prompt describes as changing over time. "Resolution" offers 480P and 720P, and 720P is the sharper of the two. "Aspect Ratio" offers 1:1 (the default), 2:3, 3:2, 9:16 and 16:9. Match it to where the clip will play before you generate, because the scene is composed for that frame from the start.
3

Click "Generate"

Click "Generate" once the prompt and all three settings are right for this take. Each run returns one video, made from exactly what's in the form at that moment, so changing anything afterwards means a new run.
4

Download the finished clip

Watch the clip all the way through before downloading it, and check the things your prompt asked for: the action, the camera move and the framing. Download the takes that work, and save the prompt text with each file so you can reuse the wording for related shots.

Grok Imagine on Vidofy vs. xAI's Own API

Two ways to turn a prompt into a Grok Imagine clip: the Vidofy form or xAI's developer API.

How you run it You write a prompt, choose three settings, click Generate and download the clip from the same screen, without writing any code. xAI's Grok Imagine API is meant for code: your program starts a request, checks on it using the returned request ID, and fetches the video link when it is ready. Creators who shape clips by hand should use the form, while developers who need video generated inside their own app or pipeline should call the API.
Length of one take The Video Duration control here goes past 15 seconds, so a single run can hold a longer continuous take. xAI's API documentation lists videos of up to 15 seconds. Generate here when a single unbroken take has to run longer than 15 seconds; shorter shots can be made through the form or the API.
Framing options Aspect Ratio covers square, vertical and widescreen, plus the portrait and landscape photographic ratios. xAI's API also lists 4:3, 3:4, 21:9 and 5:2 alongside those shapes. The form covers social, web and photo-style framing, while a brief that specifies 21:9 or 5:2 points to the API.
Output resolution Resolution switches between a quicker draft-quality option and HD. xAI's API lists 480p, 720p and 1080p output. Clips headed for social feeds or the web are well served by the HD option here, while a deliverable that must be 1080p calls for the API.
Use the Vidofy form when you want to shape clips by hand, need a single take longer than 15 seconds, or are delivering for social, web or photo-style frames. Turn to xAI's API when generation has to run from code or the spec calls for 1080p, 21:9 or 5:2.

Fixing Common Grok Imagine Problems

Problems that come up when turning prompts into clips, and what to change before the next run.

My prompt is too long for the box

The Prompt box stops at its character limit. Prompts usually hit it when they try to script several scenes at once or say the same thing more than once in different words. Cut back to one scene: keep the subject, the action, the setting, the camera move and one line about sound, and drop adjectives that repeat each other. If you need the other scenes, give each one its own run. Generate again once the shorter prompt fits.

I need a longer video than the duration setting allows

The longest Video Duration setting is the limit for a single run, so a longer piece has to be built from several clips. Split it into shots and write a prompt for each one. Use the same wording for the character, wardrobe, location and lighting in every prompt so the clips cut together more smoothly. Generate the shots one at a time, then join them in your video editor.

I want several versions of the same idea to choose from

Each run gives you a single clip, so make your own set of options. Run the same prompt again to get another take, or write two or three versions of the key line (a different camera move, time of day or style) and run each one. Keep Video Duration, Resolution and Aspect Ratio the same across those runs so you can compare the takes fairly.

Frequently Asked Questions

Do I need to upload an image to use Grok Imagine here?

No. The only input here is your text prompt. The subject, setting, action and camera work all come from what you write in the Prompt box.

Can I make vertical Grok Imagine videos for Reels, TikTok or Shorts?

Yes. Choose the vertical option in Aspect Ratio before you click Generate. Each run uses whatever ratio is selected, and the form doesn't start on vertical. Write the prompt for a tall frame too: a standing figure, a subject that rises or falls through the shot, or a close-up that fills the height will use the space better than a wide horizontal pan.

How long does a Grok Imagine video take to generate?

A typical run takes about 79 seconds, based on the average of recent successful generations on Vidofy. Yours may be faster or slower: generation time depends on how detailed the scene is as well as on the settings you choose.

What makes one Grok Imagine generation cost more than another?

The credit cost of each run is calculated from the options you choose. Once you're signed in, it appears above the Generate button, so you can see it before you start. Of the settings on the form, Video Duration is the one that changes it. Getting suggestions from Enhance Prompt doesn't use credits.