Quote Generation
quote_generationExact credit cost of a generate_image, edit_image or generate_video call before making it, with the caller's balance and plan eligibility. Use it whenever price or budget comes up instead of estimating. Free; nothing is reserved or started.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool": "<tool>"
},
"name": "quote_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | The call being priced | |
| count | No | generate_image only: how many parallel variations to price (1–4, default 1; capped by plan concurrency: Free 1, Basic 2, Pro 3, Studio 4) | |
| model | No | Model id as that tool accepts it; omitted means the tool's default | |
| quality | No | generate_image and edit_image with gpt-image-2.6 only | |
| duration | No | generate_video only: seconds | |
| resolution | No | generate_video: 480p, 720p, 768p, 1080p or 4k. generate_image and edit_image: 1k, 2k or 4k. Omitted means the model's default. | |
| with_image | No | generate_video only: true when an image_url will be animated | |
| image_count | No | edit_image only: how many image_urls will be passed (default 1); extra images cost more on gpt-image-2.6 | |
| output_format | No | generate_image and edit_image with gpt-image-2.6 only: gif for an animated GIF | |
| with_reference_images | No | generate_video only: true when reference_image_urls will be passed | |
| reference_video_seconds | No | generate_video only: length of the reference_video_url, rounded up to whole seconds |