Generate a video
adsoptimiser_generate_videoGenerate ad videos from a text prompt or by animating an image via URL, local path, or finished image job. Returns a job id; poll progress with the job status tool.
Instructions
Start an ad video generation (text-to-video, or image-to-video from source_image_path, source_image_url or source_job_id). Uses one video generation from the plan allowance and counts toward the daily video quota. Returns immediately with a job id; videos take one to several minutes, so check progress with adsoptimiser_get_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | grok-imagine-video (default) or grok-imagine-video-1.5; see adsoptimiser_list_models. | |
| prompt | Yes | What should happen in the video. | |
| duration | No | Seconds, 1 to 15. | |
| voice_ids | No | Preset voices (Grok Video 1.5, text-to-video, max 720p). Tag speech in the prompt as <AUDIO_0>..<AUDIO_2>. | |
| resolution | No | Defaults to 720p. 1080p is Grok Video 1.5 only and costs about 3x more. | |
| aspect_ratio | No | Defaults to 9:16 (TikTok vertical). | |
| source_job_id | No | Animate the image from this finished image job. | |
| source_image_url | No | Animate this image (image-to-video). | |
| source_image_path | No | Animate this local image (absolute path; image-to-video). It is uploaded first. |