LLM cost calculator
llm_cost_estimateUSD cost of a prompt across 22 popular models (GPT, Claude, Gemini, Grok, DeepSeek, Llama, Mistral) from token counts or raw text, sorted cheapest first. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]
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": "llm_cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | or raw prompt text to count | |
| calls | No | number of calls | |
| models | No | comma list (default all) | |
| inputTokens | No | input tokens (default 1000) | |
| outputTokens | No | output tokens (default 500) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||