text_to_video
Generate a video from a text description using Agnes AI. Optionally include images for image-to-video or keyframe animation.
Instructions
Generate a video from text (and optional image(s)) using Agnes AI.
This is an async operation that polls until completion (may take several minutes).
Args: prompt: Text description of the video content. model: Model name. Default: agnes-video-v2.0 width: Video width. Default: 1152 height: Video height. Default: 768 num_frames: Total frames (8n+1 rule, max 441). Common values: 81(~3s), 121(~5s), 241(~10s), 441(~18s) frame_rate: FPS, 1-60. Default: 24 image: Optional single image URL for image-to-video. images: Optional list of image URLs for multi-image video / keyframe animation. When provided, 'image' is ignored. negative_prompt: Optional negative prompt to exclude from generation. seed: Optional random seed (-1 for random). mode: Generation mode (e.g. 'ti2vid', 'keyframes'). Optional. num_inference_steps: Number of inference steps. Optional. output_dir: Directory to save the downloaded video. Defaults to ~/agnes_output.
Returns: dict with video_id, status, video_url, local_path, seconds, size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| seed | No | ||
| image | No | ||
| model | No | agnes-video-v2.0 | |
| width | No | ||
| height | No | ||
| images | No | ||
| prompt | Yes | ||
| frame_rate | No | ||
| num_frames | No | ||
| output_dir | No | ||
| negative_prompt | No | ||
| num_inference_steps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||