LLM API Cost Calculator
dev_llm_cost_calculatorCalculate the API cost of an LLM call: input and output tokens × published per-million prices for 15 current models (OpenAI, Anthropic, Google, DeepSeek, xAI, Meta). Batch multiplier included for monthly estimates. — x402 price $0.001/call (USDC, eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Number of calls | |
| model | Yes | Model | |
| inputTokens | Yes | Input tokens | |
| outputTokens | Yes | Output tokens |