LLM API Cost Calculator
Estimate the cost of any LLM API call per request and per month.
Results update automatically as you type.
- Input cost
- $0.00250
- Output cost
- $0.00500
- Per request
- $0.00750
- Per day
- $7.50
- Per month
- $225.00
Estimate what any large language model API will cost you. Enter your input and output token counts, pick a model, and see the cost per request, per day, and per month. Use it to budget an app, compare models, or sanity-check a provider's bill before you commit.
How this is calculated
This calculator uses the api cost formulas described in our methodology. All figures are estimates for planning; verify current pricing with each provider before relying on them.
Worked example (defaults)
With the default inputs above, here is the result:
- Input cost
- $0.00250
- Output cost
- $0.00500
- Per request
- $0.00750
- Per day
- $7.50
- Per month
- $225.00
Frequently asked questions
How is LLM API cost calculated?+
Cost = (input tokens / 1,000,000 x input price) + (output tokens / 1,000,000 x output price). Providers price input and output tokens separately, and output is usually more expensive.
What are input vs output tokens?+
Input tokens are everything you send (system prompt, history, user message). Output tokens are what the model generates. You pay for both, at different rates.
How can I reduce cost?+
Use a smaller or cheaper model, shorten prompts, cap output length, enable prompt caching for repeated context, and use batch pricing for non-real-time jobs.