Estimate generation cost
estimate_costValidate a planned input against the model schema and return a free price estimate or missing requirements, enabling explicit user review before generation.
Instructions
Validate a planned input against the model schema and quote its list price without submitting anything. Free. status "estimated" gives a number; "needs_input" names what is missing (e.g. reference_video_seconds); "token_billed" and "unknown" mean no reliable number exists, so never present them as a price. Show the user the model, input and estimate and wait for explicit approval before calling generate_image or generate_video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Model request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async. | |
| model | Yes | ||
| reference_video_seconds | No | Total length in seconds of all reference_videos, when the input has any; used only for the estimate. |