FREE · NO SIGNUP · UPDATED JUL 2026

LLM API Cost Calculator — Claude vs GPT vs Gemini

Enter your tokens per request, requests per day, and whether you use caching or the Batch API. See exactly which model is cheapest for your workload, ranked instantly.

Deep-dive calculators by provider

Why LLM costs are hard to estimate

Every provider prices input and output tokens separately, and output tokens usually cost 4–6× more than input tokens. On top of that, prompt caching (roughly 90% off repeated context) and Batch APIs (roughly 50% off) can change your real bill dramatically depending on how your app is architected. Most "pricing pages" only show the sticker price per model — they don't project it against your actual request volume. This tool does that math for you in one page, with no signup and no data leaving your browser (all calculations run client-side in JavaScript).

Tips to cut your LLM API bill

Frequently asked questions

Which LLM API is cheapest in 2026?

It depends on your input/output ratio and volume. Lightweight models (Claude Haiku 4.5, Gemini Flash-Lite, GPT-5.6 Luna) are cheapest for high-volume simple tasks; flagship models cost far more per token but handle harder reasoning. Use the calculator with your real numbers to compare.

How much does prompt caching save?

Most providers charge roughly 10% of the standard input rate for cached tokens — a 90% discount on repeated context such as a long system prompt.

How much does the Batch API save?

Batch APIs typically cost about 50% less than real-time calls, in exchange for asynchronous (non-instant) delivery of results.

Is this calculator accurate?

It uses publicly published rates checked periodically (see the last-updated date above). Prices change often — always confirm against the official pricing page linked below the results table before budgeting a production workload.