Estimate a generation's credit cost
estimate_costCredit cost of one image, edit or isolate at a size and reference count, from the table renders are charged by. action is generate (default), edit or isolate. Spends nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Which tool you are pricing: generate_image, edit_image or isolate_reference_item. | generate |
| resolution | No | Ignored for isolate, which is always 1K. For edit, the source image's size. | 1K |
| referenceImageCount | No | generate: how many imageInput URLs generate_image would be called with. Edit and isolate always include the source photo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ||
| resolution | Yes | ||
| estimatedCreditCost | Yes | ||
| referenceImageCount | Yes |