Gemini Omni Flash 1.2
Text to video · Image to video · Video editing
Starting price $0.0433 / second
By xAI
xAI's Grok Imagine Video makes clips with sound from a written scene, animates an image you upload or changes a short clip you already have.
xai/grok-imagine-video/text-to-videoThis model has other modes with their own ids: xai/grok-imagine-video/image-to-video, xai/grok-imagine-video/edit-video.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-imagine-video/text-to-video",
"input": {
"prompt": "A red vintage tram climbs a steep street at dusk while its bell rings. Shop signs flicker on and people step aside as the camera follows from the sidewalk."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "xai/grok-imagine-video/text-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"A red vintage tram climbs a steep street at dusk while its bell rings. Shop signs flicker on and people step aside as the camera follows from the sidewalk."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
promptrequired | string | Text description of the desired video. |
duration | number (enum) | Video duration in seconds. |
resolution | string (enum) | Resolution of the output video. |
aspect_ratio | string (enum) | Aspect ratio of the generated video. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Grok Imagine Video renders 1 to 15 seconds at 480p or 720p, in seven aspect ratios from wide 16:9 to vertical 9:16. You set the length to the second.
The image mode starts from your picture and follows a prompt about what should move or change. Its aspect ratio can follow the image, so a portrait photo stays portrait. The edit mode changes a clip you upload by a written instruction, at 480p or 720p, using its first 8 seconds.
Watch the whole clip with sound; check timing, subject continuity and distracting background changes.