estimate_image_cost
Estimate image generation credits and save a 10-minute quote bound to the exact prompt, model settings, and uploaded reference IDs before submitting a generation request.
Instructions
Estimate image credits and save a 10-minute quote bound to the exact prompt, model options and uploaded reference IDs. Unless the user specified a model, pass default_model_type from list_image_models. Select the model’s image operation and reference limits from that catalog. Does not submit generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | No | ||
| quality | Yes | Use a quality from this model. Nano Banana 2.1 uses 24/25/26; GPT Image 2.5 uses 18–23. | |
| model_type | Yes | Actual model_type from list_image_models. Select a model and its own capability and pricing combination. | |
| description | Yes | Image prompt; the quote is bound to this exact prompt. | |
| aspect_ratio | No | ||
| image_quality | No | ||
| reference_image_ids | No | Optional IDs from upload_reference_image in this account/environment. Omit for text-to-image. |