Estimate Cost
estimate_costWork out how many credits a generation will cost and whether the user's balance covers it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | What to price. 'edit' = edit_image. | image |
| model | No | Image, edit or video model ID (see list_models). | |
| quality | No | Image quality. | |
| duration | No | Video length in seconds. | |
| num_images | No | Number of images (also the number of product placement pictures). | |
| resolution | No | Video resolution, e.g. '720p'. | |
| aspect_ratio | No | Image aspect ratio, e.g. '16:9'. | |
| upscale_type | No | Upscale mode. |