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 1.5 makes clips with sound from a prompt, animates a single image, or builds a scene from up to 7 reference images.
xai/grok-imagine-video/v1.5/image-to-videoThis model has other modes with their own ids: xai/grok-imagine-video/v1.5/text-to-video, xai/grok-imagine-video/v1.5/reference-to-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/v1.5/image-to-video",
"input": {
"prompt": "The man in the image looks up from his book, smiles and closes it as autumn leaves blow across the park bench.",
"image_url": "https://example.com/input.png"
}
}'
# 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/v1.5/image-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"The man in the image looks up from his book, smiles and closes it as autumn leaves blow across the park bench.","image_url":"https://example.com/input.png"}}'
# 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 desired changes or motion in the video. |
duration | integer | Video duration in seconds. |
resolution | string (enum) | Resolution of the output video. |
image_urlrequired | string (image URL) | URL of the input image for video generation. |
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 1.5 renders 1 to 15 seconds of video at 480p, 720p or 1080p, in seven aspect ratios from 16:9 to 9:16. Short lengths suit loops and reactions; longer ones fit a full small scene.
The image mode takes one picture and a prompt for the motion or the change. The reference mode follows up to 7 images for style and content at 480p or 720p; you tag them in the prompt as <IMAGE_0>, <IMAGE_1> and so on.
Review sound timing and facial detail; watch for changes in the subject across frames.