Estimate cost
estimate_costCalculates how many credits a generate_content request would cost, per format and in total, and whether the balance and what is left of today's daily credit limit cover it. Use it to answer what a format or a request costs. Free; nothing is charged.
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": {
"formats": "<formats>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | Yes | The formats to write, each listed once. | |
| source_url | No | Set when the drafts would be written from a link (adds the link fee). |