Generate video
generate_videoGenerate a video clip for the company (xAI Imagine Video 1.5, 3 credits): text-to-video, image-to-video, multi-image reference (up to 7), or video edit with native audio. Use when an operator or agent needs social, product, narrated, or brand video up to 15s / 1080p. This is the only video generation door.
Routing: Prefer generate_image_xai → user approves → generate_video(artifact_id) over pure text-to-video when an approved still exists; pure T2V is fine when none exists. MCP/autonomous: artifact_id, not image_url.
[sensitive-tier, initiates a multi-step agent process — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time. Call it on the first clear ask; the card is the yes — do not re-ask in chat.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the video to generate. Include visual scene, audio/voice direction, mood, and brand elements. For multi-image: describe how the subjects from each image interact. For video editing: describe the changes to make. Avoid precise on-screen text animation (prefer burned-in design tools) and many incompatible camera cuts without clear staging — both are still hard for short-form video models. | |
| duration | No | Video duration in seconds (1–15, primitive max). Use the length the shot needs — not an FO soft cap. Default 5 only when omitted. Not supported for video editing. | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| image_url | No | Chat door only. MCP/autonomous must pass artifact_id — a URL is refused and never queued as an Allow card. | |
| video_url | No | Chat door only. MCP/autonomous must pass artifact_id of the video to edit (input capped at 8.7s). | |
| image_urls | No | Chat door only (up to 7). MCP/autonomous: artifact_ids. | |
| resolution | No | Video resolution. 480p (fast draft, API default when omitted), 720p (HD), 1080p (full HD on text-to-video and image-to-video) — prefer the highest resolution that fits the deliverable, not a permanent draft default. Reference-to-video is automatically clamped to 720p (primitive). Not supported for video editing. | |
| artifact_id | No | ID of a single existing artifact from the MEDIA IN THIS CONVERSATION block. The system resolves a fresh signed URL and auto-detects: image artifacts → image-to-video, video artifacts → video editing. For multiple images, use artifact_ids instead. | |
| artifact_ids | No | Array of artifact IDs (up to 7, primitive max) for reference-to-video. System resolves fresh signed URLs for each. | |
| aspect_ratio | No | Aspect ratio. Default: 16:9 (YouTube/hero/landscape); 9:16 (Reels/Shorts/Stories); 1:1 (feed square). For image-to-video, defaults to the input image ratio. Not supported for video editing. | |
| save_to_drive | No | If true, also save the video to Google Drive. Defaults to false. |