Estimate credits
estimate_generationUse before anything likely to cost over 100 credits, or whenever the user asks what something costs. Free. Returns the credits a call would reserve and how the price is worked out.
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_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| model | No | Model id; the category default if omitted. | |
| seconds | No | Seconds of music or sound. | |
| category | No | ||
| duration | No | Seconds of video. | |
| characters | No | Characters of speech. | |
| resolution | No | Tier, e.g. 1k, 2k, 720p, 1080p. |