Know your AI bill before you ship

The free, accurate API cost calculator for builders and teams. Compare token pricing across GPT-5.6, Claude Opus 4.8, Gemini 3, DeepSeek V4, Grok 4.5 and 50+ models โ€” with prompt caching, batch discounts, self-hosting and subscription break-even modeled in.

Start calculating โ€” free Talk to an AI cost expert โ†’
๐Ÿ“Š 50+ AI models ๐Ÿ”„ Prices verified Jul 2026 โœ… 100% free โ€” no signup ๐Ÿข 9 providers

๐Ÿ’ต Estimate your monthly API cost

Enter your workload and compare real monthly cost across every major model. Everything updates live.

~750 words โ‰ˆ 1,000 tokens
Model response length
API calls per day
Business days or full month

๐Ÿ“Š Cost comparison

Model โ‡… Input $/1M โ‡… Output $/1M โ‡… Context โ‡… Cost/request โ‡… Monthly cost โ‡… Start
Total requests/mo
3,000
๐Ÿ’ฐ Cheapest
-
-
Most expensive
-
-
๐Ÿ’ก Potential savings
-
cheapest vs priciest

๐Ÿ”ข Token counter & instant price

Paste a prompt or document to estimate tokens and see what one call costs on every model. Estimate uses ~4 characters per token (typical for English).

Length of the model's reply
Multiply the single-call cost
Estimated input tokens
0
0 chars ยท 0 words
๐Ÿ’ฐ Cheapest / call
-
-
Cheapest / month
-
at your volume
ModelInput $/1MOutput $/1MCost / callCost / month

๐Ÿ“Š Full model pricing matrix

Every model, side by side. "Blended" is the effective $/1M at your chosen input:output mix โ€” the fastest way to rank models on real-world cost.

Model Provider Input $/1M Output $/1M Cached in $/1M Context Blended $/1M

๐Ÿ–ฅ๏ธ Self-host vs API break-even

Renting a GPU only beats an API if you keep it busy. Enter your GPU economics and see the true cost per million tokens โ€” and the monthly volume where self-hosting starts to win.

e.g. H100 โ‰ˆ $2.50โ€“$3.50/hr
Sustained generation speed
Share of time actually generating
API model (blended 3:1)

Self-host cost ignores setup, DevOps, egress and idle-scaling overhead โ€” real all-in cost is typically 20โ€“60% higher. Treat the break-even as a floor, not a promise.

๐Ÿ” Flat subscription vs pay-as-you-go API

Should you buy a flat monthly seat/plan or pay per token on the API? Enter both and see the break-even volume where pay-as-you-go overtakes the subscription.

e.g. a $20 or $200 plan
Pay-as-you-go comparison

๐Ÿ’ก Your calculator says you could save a lot/mo

First Deploy AI cuts production AI costs โ€” model routing, prompt caching, batching and self-host trade-offs โ€” and ships the changes for you. Book a free 30-minute strategy call and we'll find the savings in your stack.

Book a free call โ†’
๐Ÿ’ก Common use cases
Click any card to load typical token values into the cost calculator.
๐Ÿ’ฌ

Support chatbot

Conversational AI with moderate context and responses.

In 800 ยท Out 400 ยท 100/day
๐Ÿ‘จโ€๐Ÿ’ป

Code assistant

Code generation, review, and debugging.

In 2,000 ยท Out 1,500 ยท 50/day
๐Ÿ“„

Document analysis

Summarize and extract from long documents.

In 10,000 ยท Out 1,000 ยท 20/day
โœ๏ธ

Content generation

Blog posts, marketing copy, creative writing.

In 500 ยท Out 2,000 ยท 200/day
๐Ÿ“Š

Data processing

Classification, extraction, structured output.

In 1,500 ยท Out 200 ยท 500/day
๐Ÿค–

AI agent / tool use

Multi-step reasoning with function calling.

In 3,000 ยท Out 2,500 ยท 30/day
๐Ÿ“š

RAG pipeline

Large-context retrieval-augmented generation.

In 50,000 ยท Out 2,000 ยท 10/day
๐Ÿท๏ธ

High-volume classify

Labeling, routing, categorization at scale.

In 200 ยท Out 50 ยท 10,000/day
๐Ÿš€ Get started with AI APIs
Sign up directly with the major providers โ€” most offer free trial credits.

OpenAI

GPT-5.6, GPT-5.5, GPT-4.1, o4-mini, 4.1-nano
From $0.10 / 1M tokens
Sign up free โ†’

Anthropic Claude

Opus 4.8, Sonnet 5, Haiku 4.5
From $1.00 / 1M tokens
Sign up free โ†’

Google Gemini

Gemini 3.1 Pro, 3.6 Flash, 2.5 Flash-Lite
From $0.10 / 1M tokens
Sign up free โ†’

xAI Grok

Grok 4.5, Grok 4.3, Grok 4 Fast
From $0.20 / 1M tokens
Sign up free โ†’

DeepSeek

DeepSeek V4 Pro, V4 Flash
From $0.14 / 1M tokens
Sign up free โ†’

Mistral AI

Large, Medium 3.5, Small 4, Codestral
From $0.15 / 1M tokens
Sign up free โ†’

Amazon Nova

Nova Micro, Lite, Pro, Premier
From $0.035 / 1M tokens
Open Bedrock โ†’

Meta Llama (hosted)

Llama 4 Maverick, Scout, 3.3 70B
From $0.18 / 1M tokens
Via Together โ†’

Cohere

Command A, R+, R, R7B
From $0.04 / 1M tokens
Sign up free โ†’
๐Ÿ“˜ How AI API pricing works (2026 guide)
Everything the calculator models โ€” in plain English.

Large-language-model APIs bill by the token โ€” roughly 4 characters, or about ยพ of a word. You pay separately for input tokens (your prompt, system message, context and documents) and output tokens (the model's reply). Almost every provider charges 3โ€“8ร— more for output than input, so long generations dominate your bill far more than long prompts.

The five levers that actually move your bill

  • Model choice. The spread is enormous: a frontier model like Claude Opus 4.8 ($5/$25 per 1M) can cost 100ร— more than a budget model like Amazon Nova Micro ($0.035/$0.14). Match the model to the task, not the hype.
  • Prompt caching. Reusing a large system prompt or context? Cached input tokens are billed at ~10% of the normal rate on OpenAI, Anthropic and Google. For agents with a fixed system prompt, this alone can cut 40โ€“70% off input cost. The calculator's "cache hit rate" slider models it.
  • Batch API. Non-urgent workloads (evals, back-office processing, embeddings) run at roughly half price if you accept a 24-hour turnaround. Toggle "Batch API" to see it.
  • Reasoning / thinking tokens. Reasoning models emit hidden thinking tokens billed at the output rate. A "cheap" reasoning model can cost more than a pricier standard model once you count them.
  • Self-hosting. Renting a GPU only wins at high, steady utilization. The Self-Host vs API tab shows the break-even โ€” most teams under ~500M tokens/month are cheaper on an API.

Input vs output: a worked example

Say you send 1,000 input tokens and get 500 output tokens per call, 100 calls/day, on GPT-5.6 ($5 in / $30 out per 1M). Input costs (1,000 รท 1,000,000 ร— $5) = $0.005; output costs (500 รท 1,000,000 ร— $30) = $0.015 โ€” so 75% of the per-call cost is output, even though you sent twice as many input tokens. Shortening responses is usually the highest-leverage cost cut you can make.

How to cut your AI bill without hurting quality

Route easy requests to a cheap model and reserve the frontier model for hard ones; cap output length; turn on prompt caching for fixed context; batch anything that isn't real-time; and measure per-feature cost so you know where the money actually goes. Teams that do all five routinely cut 50โ€“80%. If you'd rather have it done for you, First Deploy AI implements exactly these changes in production.

โ“ Frequently asked questions
Prices verified against official provider pages on July 25, 2026.
How much does the GPT-5.6 API cost? โ–พ
OpenAI's flagship GPT-5.6 (Sol) is $5 per 1M input tokens and $30 per 1M output tokens, with cached input at roughly $0.50. Lower tiers โ€” GPT-5.6 Terra ($2.50/$15) and Luna ($1/$6) โ€” trade a little quality for big savings. Use the calculator to see your exact monthly cost.
Why is output more expensive than input? โ–พ
Generating tokens is sequential and compute-heavy โ€” the model runs a full forward pass per output token โ€” whereas input is processed in parallel. That's why output is typically 3โ€“8ร— the input price, and why capping response length is the fastest way to cut costs.
What is prompt caching and how much does it save? โ–พ
If you resend the same large context (a system prompt, a document, few-shot examples), providers can cache it and bill those input tokens at ~10% of the normal rate. For agents and RAG with a fixed prefix, that often cuts 40โ€“70% off input cost. The calculator's cache-hit slider models the effect.
Is DeepSeek really that much cheaper? โ–พ
Yes โ€” DeepSeek V4 Pro lands around $0.44 input / $0.87 output per 1M, roughly 10ร— cheaper than a US frontier model, with a 1M-token context. For many non-frontier tasks it's extremely competitive; validate quality and data-residency requirements before moving production traffic.
Should I self-host an open model or use an API? โ–พ
Self-hosting only wins at high, steady utilization. A GPU costs the same whether it's 20% or 90% busy, so idle time destroys the economics. The Self-Host vs API tab computes your break-even; most teams under ~500M tokens/month are cheaper (and far simpler) on an API.
How accurate and current are these prices? โ–พ
Every frontier price here was verified against the official provider pricing page on July 25, 2026. Prices change often โ€” treat the numbers as a strong estimate and confirm on the provider's site before large commitments. Open-model hosted rates vary by host (Together, Groq, Fireworks) and are shown as typical values.
Is this calculator free? โ–พ
100% free, no signup, no paywall โ€” all five tools and all 50+ models. An optional Pro plan adds monthly price-drop alerts and CSV export and helps support the tool, but you never need it to get a full answer.

The calculator is free. Forever.

Every tool, every model, no signup. Pro is optional โ€” for teams who want alerts, exports, and to support the build.

Free
$0
Everything you need
  • All 5 calculators
  • 50+ models, 9 providers
  • Caching & batch modeling
  • Use-case presets
  • No signup, no limits
Use it now โ†’
Pro โ€” Monthly
$4.99/mo
Cancel anytime
  • Everything in Free
  • Monthly price-drop alerts
  • CSV / spreadsheet export
  • New-model email alerts
  • Cancel in one click
Start Monthly โ†’

๐Ÿ”’ Secure checkout via Stripe ยท Instant access ยท Questions? coltsinsider@gmail.com

First Deploy AI ยท production AI for teams

Spending more on AI than you should?

We cut production AI costs โ€” smart model routing, prompt caching, batching and self-host trade-offs โ€” then ship the changes for you. Idea to production in 48โ€“72 hours, not months. Bring your bill; we'll find the savings.

70+production AI apps shipped
48โ€“72hidea โ†’ production
20+ yrsenterprise engineering
Book a free 30-minute strategy call โ†’
A focused working session to scope real savings โ€” see firstdeploy.ai

๐Ÿ”Œ One API. Every AI model. Coming soon.

The AgentHive AI Gateway routes Claude, GPT-5.6, Gemini, Grok and more through a single endpoint with per-token billing and automatic cost routing. In private preview.

Request early access โ†’