generate_video
Generate a video from a text prompt via Google Flow (Veo models).
video_model_key options: abra_t2v_4s (default, 7 credits), veo_3_1_t2v_lite
(10cr, visibly cleaner), veo_3_1_t2v (100cr, "Quality" tier), veo_3_1_t2v_fast (20cr).
project_id: put the clip into a project made with create_project instead of the
account's default one — one project per end client keeps their work separate.
Video generation routinely takes 1-3+ minutes, so this almost always returns
a job_id rather than a finished result — call check_job with it, waiting a
few seconds between checks, until status is 'done' or 'failed'.
beats: how many DISTINCT action phases the prompt describes — "ears flick back",
"tail lashes", "strikes the ball", "ball flies off" are four. Give it and the server
picks the clip length for you (about two phases per second) and says in the reply what
it picked and why. Measured 31.08.2026: the model STRETCHES whatever you describe over
whatever length you ask for, so one phase in four seconds comes out as slow motion, and
the same text at six seconds instead of four loses 15% of its movement. Adjectives are
not phases: "springy cartoon motion" adds nothing. Leave beats out and the length you
passed is used unchanged.
seed (all video tools): the result always reports the seed it used. Same seed + same
prompt + same inputs = the same clip, so a good take can be re-made. A fixed seed does
NOT keep the composition when the prompt changes — use edit_video for that.
idempotency_key: optional, any string unique to this logical request (e.g. a uuid).
Repeating a call with the same key within 24h returns the SAME job instead of a
new one — use it when you may retry after a timeout or a busy error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| beats | No | ||
| voice | No | ||
| aspect | No | VIDEO_ASPECT_RATIO_LANDSCAPE | |
| prompt | Yes | ||
| project_id | No | ||
| voice_text | No | ||
| voice_style | No | ||
| idempotency_key | No | ||
| include_preview | No | ||
| video_model_key | No | abra_t2v_4s |