Generate a clip
generate_videoCreate a paid silent video clip from text, first/last frames, or reference images; preview the credit price first, then poll the run until the clip is ready.
Instructions
Generate one silent clip (paid): a NEW run of skill generate_video, charged unit_credits per second of duration_s once it is delivered. Modes: text; first_frame (first_frame, optional last_frame, of the requested aspect ratio within 2%); reference (1 to 4 references). Call quote_video first and show the user the price. Poll the run with get_run; once it succeeded, generation.url is the clip. A reference is {upload_id, rights_confirmed: true} for a picture from upload_image or create_upload (rights_confirmed states you may use the people and works in it), {run_id} of a succeeded generate_image run of this account until its reusable_until, or {asset_id} of a picture asset from create_asset, whose rights were confirmed when it was made. A generation that fails is charged nothing. An identical request returns the same run it started before, so a call repeated after a lost answer starts nothing new; to make another one with the same request on purpose, pass attempt 2. While generations are closed it answers generations_disabled or generations_marking_pending and charges nothing. Price: 3 to 90 credits per second of clip, by model and size. Quote first with quote_video; list_prices names every price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| model | Yes | ||
| camera | No | ||
| prompt | Yes | ||
| attempt | No | ||
| duration_s | Yes | ||
| last_frame | No | ||
| references | No | ||
| resolution | Yes | ||
| first_frame | No | ||
| aspect_ratio | Yes |