Estimate generation cost
estimate_media_costRead-only
Estimate what a generation will cost in credits before running it. Read-only and free. exact=true means computed from the model's price list; approximate=true means the vendor names the final sum itself (video and music) and the number is a best guess; both false means there is nothing to estimate from — and zero credits does NOT mean free.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The words to say — speech only, their length drives the price (optional). | |
| tier | No | Tier to price. Omit to use the default tier of that modality. | |
| params | No | Model settings, as declared by the vendor for the chosen tier — for example {"aspect_ratio":"16:9","resolution":"720p","duration":"4"}. Call list_ai_tiers to see which keys this tier accepts, their allowed values and defaults. Values are strings. Unknown keys are ignored rather than rejected. | |
| modality | Yes | What is going to be generated: image | video | audio | music | 3d | |
| title_id | No | Which game this is for — a label, optional (see the generate_* tools). |