LLM API Cost Calculator
One calculator for any LLM API. Pick a preset model or type your own $/1M input and output rates with token counts. Cost = tokens ÷ 1,000,000 × price per 1M. Estimates only; each vendor’s official pricing prevails.
Math runs in your browser. Nothing is uploaded.
Estimated USD cost
—
Input cost
—
Output cost
—
Per 1k input tokens
—
Per 1k output tokens
—
Estimates only; official vendor pricing prevails (2026-10-30). Cost = tokens ÷ 1,000,000 × price per 1M.
OpenAI Token Cost Calculator · Claude Token Cost Calculator · Gemini Token Cost Calculator · Grok Token Cost Calculator · RAG Cost Calculator
More in this group
- Machine Translation API Cost Comparison Google vs Amazon translation API cost for one workload.
- Google Cloud Translation Cost Calculator Google Translate API chars × languages → monthly cost.
- Amazon Translate Cost Calculator Amazon Translate chars × languages → monthly cost.
- LLM Observability Cost Comparison Langfuse vs Braintrust vs LangSmith vs Helicone for one workload.
- Langfuse Cost Calculator Langfuse units (traces + observations + scores) → monthly cost.
- Braintrust Cost Calculator Braintrust GB processed + scores + retention → monthly cost.
- LLM Prompt Caching Cost Calculator No-cache vs cached prompt monthly cost and savings.
- DeepSeek Token Cost Calculator deepseek-flash / v4-pro cost, peak vs off-peak, cache hit/miss.
How it works
- How does the generic LLM API cost calculator work?
- Enter input and output tokens plus $/1M rates (or pick a preset). Cost = tokens ÷ 1,000,000 × price per 1M for each side, then sum.
- Which providers are linked?
- OpenAI, Claude, and Gemini each have a dedicated calculator with their common presets. This page accepts any custom rates.
- What is a per-1k breakdown?
- Per 1k = ($ / 1M) ÷ 1000. It helps compare short prompts when vendors quote per million.
- Can I mix providers?
- Yes—type any rates. For vendor-specific defaults open the OpenAI, Claude, or Gemini token pages.
- Are results billing-grade?
- No. They are planning estimates. Official invoices and vendor pricing prevail.