Tools Web

Calculators

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

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.