Free tool for developers building with AI
AI API Cost Calculator
Your monthly bill for a model, from calls and tokens, at the vendor's list price on 23 November 2026.
Runs in your browser. Nothing you type leaves this page.
Your monthly bill
| Line | Amount |
|---|
List prices only, before volume discounts, free tiers, fast or priority modes and regional surcharges. Vendors bill in dollars; AED and SAR are shown at the pegs and your card adds its own fee.
What an AI API costs
AI model vendors charge by the token, a fragment of text of about four characters, with one price for the tokens you send and a higher price for the tokens the model writes back. Prices are quoted per million tokens and differ by a factor of a hundred between the smallest and largest models.
Three things move the bill more than the headline rate. Output costs five times input on most models, and reasoning models write thinking tokens you never see but pay for. Repeated prompt prefixes can be cached at a tenth of the input price or less. And batch requests, which return within hours, cost about half.
This page holds the list prices of twenty-five current models from six vendors as of 23 November 2026, and works out a month's bill from your own numbers.
How the bill is calculated
Tokens per month are calls per day times days times tokens per call, for input and output separately. Input tokens cost the input rate per million, or the cached rate for the share you serve from cache. Output tokens cost the output rate. Batch pricing uses the vendor's batch rates where it has them, about half on most vendors and 20 percent off on Grok. The total is in dollars, converted to dirhams at 3.6725 and riyals at 3.75.
- Multiply calls per day by days, then by input tokens and by output tokens per call.
- Price the input tokens at the input rate, with the cached share at the cached rate.
- Price the output tokens at the output rate, thinking tokens included.
- Use the batch rates where offered, and convert to local currency at the peg.
Worked example
A support bot makes 1,000 calls a day with 2,000 input and 500 output tokens each, for 30 days: 60 million input and 15 million output tokens.
- Claude Opus 5.5 at USD 4 and 20 per million: 240 + 300 = USD 540 a month, about AED 1,983
- GPT-6.2 Sol at USD 2 and 10: 120 + 150 = USD 270 a month
- Gemini 3.8 Flash at USD 0.75 and 3.75: 45 + 56.25 = USD 101.25 a month, and USD 202.50 from 1 January 2027 when its price doubles
On batch pricing each figure halves. On a reasoning model the 500 output tokens would include the thinking, so the real bill is often higher.
Where the prices come from
Every price is read from the vendor's own pricing page on 23 November 2026. Vendors change prices with notice of weeks, sometimes days, so the page states its date and is refreshed monthly.
- Anthropic: Claude Fable 5.2 at USD 8 and 40, Opus 5.5 at 4 and 20, Sonnet 5.5 and Sonnet 5 at 2 and 10, Haiku 5.5 at 0.10 and 0.50 below 100,000 prompt tokens, Fable 5.1 at 10 and 50, Opus 5 at 5 and 25, Haiku 4.5 at 1 and 5 per million tokens; cached input at a tenth or less; batch at half. Fast mode doubles the rate on Opus 5.5 and Fable 5.2.
- OpenAI: GPT-6.2 Astra at USD 8 and 40, GPT-6.2 Sol and GPT-6.1 Sol at 2 and 10, GPT-6.1 Terra at 1 and 5, GPT-6 Luna at 0.10 and 0.50, GPT-6 Astra at 10 and 50; requests above 272,000 tokens pay a higher tier; batch at half.
- Google: Gemini 4 Carbon at USD 2 and 10 that doubles on 1 December 2026, Gemini 4 Neon at 3 and 15, Gemini 4 Hydrogen at 1.50 and 7.50, Gemini 3.8 Flash at 0.75 and 3.75 that doubles on 1 January 2027, Flash-Lite at 0.30 and 2.50, Gemini 3.1 Pro Preview at 2 and 12 below 200,000 tokens; batch at half. Gemini 4 output prices include thinking tokens.
- Mistral: Large 4 at USD 0.70 and 2.10, Small 4 at 0.15 and 0.60; cached input at 10 percent of input and batch at half by Mistral's stated rules.
- DeepSeek: V4.1-Flash at USD 0.30 and 1.20 in peak hours and half that off-peak, one model for chat and thinking, no batch rate. xAI: Grok 4.7 at USD 2 and 6, Grok 4.3 at 1.25 and 2.50, double above 200,000 tokens, batch at 20 percent off.
- Token counting: an image costs a few hundred to a few thousand input tokens depending on the vendor's formula, and audio and video are priced per second on Gemini. This page prices text only.
Prices last checked on 23 November 2026.
Sources
Who this calculator is for
Developers, product teams and founders sizing an AI feature before they build it, or checking a bill after.
It does not cover
- Images, audio and video, which each vendor tokenises by its own formula.
- Fast, priority and regional modes, free tiers, committed-use discounts and enterprise contracts.
- Model quality. A cheaper model that needs two calls costs more than a dearer one that needs one.
Terms used on this page
- Token
- The unit vendors bill by: a piece of text of about four characters in English, fewer in Arabic. A thousand tokens is about 750 English words.
- Input and output tokens
- Input is what you send, prompt and context included. Output is what the model writes back. Output costs around five times input.
- Cached input
- A repeated prompt prefix the vendor stores and re-reads at a lower price, often a tenth of the input rate, with a small write charge on some vendors.
- Batch pricing
- A discounted rate, usually half, for requests submitted in bulk and returned within hours rather than seconds.
- Reasoning model
- A model that thinks before answering. The thinking tokens are hidden from you and billed at the output rate.
- Context window
- The most tokens a single request can hold, input and output together. Some vendors raise the price above a threshold inside it.
- List price
- The per-million-token rate on the vendor's public page, before discounts and surcharges.
- Peg
- The fixed exchange rate between a Gulf currency and the dollar: 3.6725 dirhams and 3.75 riyals. Vendors bill in dollars.
Questions people ask
How much does the Claude API cost?
On 23 November 2026, Claude Haiku 5.5 is USD 0.10 per million input tokens and 0.50 per million output on prompts below 100,000 tokens, Sonnet 5.5 is 2 and 10, Opus 5.5 is 4 and 20, and Fable 5.2 is 8 and 40. Cached input is a tenth or less and batch is half.
Which is cheapest, Claude, GPT or Gemini?
At the small end, Claude Haiku 5.5 and GPT-6 Luna at USD 0.10 and 0.50 are cheapest, with Gemini 3.5 Flash-Lite at 0.30 and 2.50. In the mid range, Sonnet 5.5 and GPT-6.2 Sol both cost 2 and 10. Pick by quality on your task, then compare the bill here.
How many tokens is a page of text?
About 500 words of English is roughly 650 to 700 tokens. Arabic takes more tokens per word on most tokenizers, so budget around a third more.
Why is my bill higher than the calculator says?
The usual reasons: thinking tokens on reasoning models billed as output, long contexts crossing a vendor's price tier, retries, and system prompts repeated on every call. Caching the system prompt is the first fix.
Does prompt caching save money?
Yes, when calls share a long prefix such as a system prompt or document. Cached input costs a tenth of the input rate or less on most vendors, after a small write charge on some. It does nothing for output.
Can I pay in dirhams or riyals?
Vendors bill in dollars. The page converts at the pegs so you can budget; your card issuer adds its own conversion fee.
How current are these prices?
Read from each vendor's page on 23 November 2026 and refreshed monthly. Gemini 4 Carbon doubles on 1 December 2026 and Gemini 3.8 Flash on 1 January 2027; both are flagged in the result.
Why do token counts differ between vendors?
Each vendor has its own tokenizer. The same prompt can be 30 percent more tokens on one than another, so a calculator with one token count per vendor is an estimate. Measure with the vendor's own counter.
Made in Dubai by Redsprint
We design and build apps with AI inside, and we try the models side by side on cost and quality. This calculator is one of our free tools for developers.