Price a generation before running it
media_quoteRead-onlyIdempotent
What generate would charge for exactly these settings, at the key's own rates: the units billed, the charge, and the developer's own price for the same request where one is on record. The settings are checked as a real request's would be, so a wrong value fails here, not at the model. Nothing runs and nothing is charged. Needs the key. Live from POST /v1/generations/quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The model's settings, as media_model lists them under params: prompt, size or aspect_ratio, resolution, duration, image_urls, text, voice... A setting left out takes the model's default. | |
| model | Yes | A media model id from list_media_models. |