estimate_ai_cost
Estimate token count and USD API cost of a text across major AI models (OpenAI GPT, Anthropic Claude, Google Gemini), and whether it fits each context window. Token counts are approximate. Pass text, or tokens directly.
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_ai_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| tokens | No | ||
| output_tokens | No | Expected reply length in tokens (default: same as input) |