estimate_cost
Estimate API response cost for a specific LLM model
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": {
"content": "<content>",
"model": "<model>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID (gpt-4, claude-3.5-sonnet, etc) | |
| content | Yes | API response content | |
| input_tokens | No | Optional input token count |