Quote a clip
quote_videoPrice a video generation before spending credits: retrieve the credit cost, output dimensions, and warnings so users can approve the cost before rendering.
Instructions
Price one generate_video call WITHOUT spending credits: its credits (unit_credits per second of duration_s), its width and height, and warnings. Always call this first and show the user the price before generate_video. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| model | Yes | ||
| camera | No | ||
| prompt | Yes | ||
| duration_s | Yes | ||
| last_frame | No | ||
| references | No | ||
| resolution | Yes | ||
| first_frame | No | ||
| aspect_ratio | Yes |