Skip to main content
POST
Submit the request with VIDGO_API_KEY and save the returned task_id. Use Query Task Status to retrieve the video. Provide callback_url to receive a webhook when the task reaches finished or failed.

Grok Imagine Video 1.5 Image to Video

Animate a single image using a prompt that describes subject motion, camera movement, and sound. The image supplies the first frame and determines the video’s aspect ratio.

Request

Set model to xai/grok-imagine-video-v1.5/image-to-video. Place the following parameters inside input. Set optional callback_url at the request root.

prompt

Required string. Describe the scene and desired motion in 1–4,096 characters, including at least one non-whitespace character.

image_urls

Required array containing exactly one publicly accessible HTTP(S) image URL. Use a URL with a hostname and credential-free access.

resolution

Optional string: 480p, 720p, or 1080p. Default: 720p.

duration

Optional integer from 1 to 15 seconds. Default: 6.

Authorizations

Authorization
string
header
required

Use VIDGO_API_KEY.

Body

application/json

Set model and callback_url at the request root. Place generation parameters inside input.

model
enum<string>
required
Available options:
xai/grok-imagine-video-v1.5/image-to-video
Example:

"xai/grok-imagine-video-v1.5/image-to-video"

input
object
required
callback_url
string | null

Optional public HTTP(S) endpoint for task completion notifications. HTTPS is recommended. Omit, use null, or use an empty string to disable callbacks.

Response

Task submitted

code
enum<integer>
required
Available options:
200
data
object
required