Generate video
generate_videoCreate a video clip from a text prompt, optionally animating a start image, via Poe video bots; save the result locally and return its path and URL.
Instructions
Generate a video clip from a text prompt with a Poe video bot (default: Veo-3; others include Sora-2, Kling-2.1-Master, Runway-Gen-4-Turbo, Hailuo-02, Veo-3-Fast). Optionally animate a start image. Video can take several minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Poe bot name, e.g. Veo-3, Sora-2, Kling-2.1-Master | |
| prompt | Yes | Describe the scene, motion, camera and sound | |
| output_dir | No | Folder to save files in. Defaults to /root/poe-media | |
| parameters | No | Extra bot-specific parameters sent with the request (Poe's extra_body), e.g. {"aspect_ratio": "16:9"}. Names differ per bot; see the bot's page at poe.com/<bot>/api. | |
| start_image | No | Local image path to animate (image-to-video) | |
| aspect_ratio | No | e.g. 16:9 or 9:16 | |
| prompt_flags | No | Poe-style flags appended to the prompt, e.g. "--aspect 16:9 --duration 8". Use when a bot ignores `parameters`. | |
| duration_seconds | No | Clip length, if the bot supports it |