Generate video (SPENDS CREDITS)
flow_generate_videoGenerate a video clip using text, a start frame, or up to 3 reference images. Credits are checked against a budget before approval to avoid unexpected charges.
Instructions
Generate a video clip in Flow. THIS SPENDS REAL CREDITS. The cost quoted by Flow is read and checked against expected_max_cost and the run budget BEFORE approval; if it exceeds either, the proposal is rejected and nothing is charged. The generation MODE is set by what you attach: start_frame_media_id gives Frames-to-Video (preserves the approved composition — the normal path), reference_media_ids gives Ingredients-to-Video (recomposes from up to 3 references), and attaching nothing gives Text-to-Video (least control). Compose in free stills first and animate an approved still rather than generating blind. Never call this twice for the same clip while one is in flight — a resubmit is a second charge. Model tier and aspect ratio are per-project settings; set them with flow_settings, not here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Motion prompt. With a start frame, describe ONLY movement, camera and ambient sound — the frame owns the composition | |
| no_wait | No | Approve and return immediately, for parallel batches. Collect later with flow_collect | |
| out_file | No | Output filename; relative paths resolve under FLOW_OUTPUT_DIR | |
| timeout_seconds | No | ||
| expected_max_cost | Yes | Reject the proposal if Flow quotes more than this. Veo 3.1 Fast is 20, Lite is 10 | |
| end_frame_media_id | No | Optional end frame, for an interpolation target | |
| reference_media_ids | No | Up to 3 reference images for Ingredients-to-Video. Recomposes the shot rather than preserving it | |
| start_frame_media_id | No | Library media id to use as the start frame (Frames-to-Video) |