image_to_video
Transform a source image into a short video using Grok Imagine. Specify a prompt, motion style, duration, and aspect ratio to generate video output, returning a task ID and URLs.
Instructions
Create a Grok Imagine task on RunAPI (image to video). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| index | No | Zero-based source image index; used only with source_task_id. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Optional video generation prompt. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. | |
| callback_url | No | Webhook URL for terminal Task delivery. | |
| motion_style | No | Video motion style; spicy requires source_task_id. | |
| source_task_id | No | Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both. | |
| duration_seconds | No | Output duration in seconds. | |
| poll_interval_ms | No | ||
| source_image_url | No | Public source image URL; provide this or source_task_id, but not both. | |
| output_resolution | No | Output resolution. | |
| reference_image_urls | No | Not accepted by this model. | |
| enable_safety_checker | No | Enable content safety checks. |