AI API Cost Calculator
Estimate monthly LLM API costs from token volume.
Calculated locally in your browser using representative pricing figures.
- Separates input and output token pricing, which usually differ several-fold.
- Scales a per-request figure to a daily and monthly total.
- Runs in your browser — no account, no data collected.
Why this is private
- Calculated locally in your browser using representative pricing figures.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Estimates monthly API cost for a given model based on input/output tokens per request and request volume.
How to use it
- 1Choose a model.
- 2Enter typical input and output tokens per request.
- 3Enter your expected daily request volume.
Tips
- Pricing shown is a representative snapshot for planning purposes — always confirm current rates on the provider's pricing page before budgeting.
Frequently asked questions
What people use it for
Budget a new featureEstimate the monthly bill before committing to a model for a chat or summarisation feature.
Compare two modelsRun the same volume against a cheaper and a stronger model to see the cost gap.
Justify prompt optimisationSee how much trimming input tokens per request saves at scale.
Sanity-check an invoiceCompare your actual spend against the expected figure for your traffic.
Related tools
All ai & llm toolsToken CounterExact token counts for OpenAI models, plus calibrated per-model estimates for Claude, Llama, Gemini and Mistral.Context Window CalculatorSee how much of a model's context window your text uses.JSONL ValidatorValidate a JSONL (JSON Lines) file line by line.JSONL FormatterFormat or minify a JSONL file, with malformed lines isolated instead of failing the whole file.
Ready to use AI API Cost Calculator?
AI API Cost Calculator