---
title: "AI API Cost Calculator: Price Any LLM Call by Model"
description: "Free AI cost calculator: set input and output tokens, pick from 50 LLM models, and see the real per-call, monthly and annual API bill."
url: "https://wpwebhooks.org/tools/llm-cost-calculator/"
date: "2026-07-29"
---

[WP Webhooks](https://wpwebhooks.org/)/ [Tools](https://wpwebhooks.org/tools/)/ AI cost calculator

# AI Cost Calculator for LLM API Calls

Set the token size of a real request, pick a model, and see what it actually costs — per call, per month, per year.

Rates verified 28 September 2026 / 50 models / 6 providers

cost = (input\_tokens × input\_rate + output\_tokens × output\_rate) ÷ 1,000,000

Model

Promotional rate through 31 Dec 2026

Input tokens 4,700

$0.00352 — the prompt, system message and tool schemas you send.

Output tokens 390

$0.00146 — billed at 5.0× the input rate on this model. Reasoning tokens count here.

Cached input 0%

Cache hits bill at $0.075 / 1M.

Calls per month 10,000

Input cost

$0.00352

Output cost

$0.00146

Per-call cost

$0.00499

Output is 7.7% of the tokens but 29% of the cost.

Per month

$49.88

Per year

$598.50

Rate expires 31 December 2026

$598.50/yr assumes the introductory rate holds for 12 months. It does not. From 1 January 2027 this becomes Gemini 3.6 Flash (standard) at $1.5 / $7.5, or $1,197/yr — 100% more. Budget against that.

If you resell this as credits

weighted = 4,700 + 5.0 × 390 = 6,650

→ 7 credits at 1,000 weighted tokens each

One credit backs $0.00071 of spend on this model, for any input/output mix.

Cheapest for this call is gpt-5-nano at $0.00039 — 12.8× less than your pick. Over a year that is $551.58 of difference.

## The same call, every model

4,700 input and 390 output tokens priced against all 50 models. Cheapest to most expensive — a 540× spread for identical work.

| # | Model | Provider | Per call | Per year | vs cheapest |
| --- | --- | --- | --- | --- | --- |
| 1 | gpt-5-nano | OpenAI | $0.00039 | $46.92 | — |
| 2 | GLM-4.7-FlashX | Z.ai | $0.00049 | $58.20 | 1.2× |
| 3 | gpt-6-luna | OpenAI | $0.00067 | $79.80 | 1.7× |
| 4 | GLM-5.3-Flash | Z.ai | $0.0009 | $108.00 | 2.3× |
| 5 | GLM-4.5-Air | Z.ai | $0.00137 | $164.28 | 3.5× |
| 6 | gpt-5.6-luna | OpenAI | $0.00141 | $168.96 | 3.6× |
| 7 | gpt-5.4-nano | OpenAI | $0.00143 | $171.30 | 3.7× |
| 8 | Gemini 3.1 Flash-Lite | Google | $0.00176 | $211.20 | 4.5× |
| 9 | deepseek-flash (was V4 Flash) | DeepSeek | $0.00188 | $225.36 | 4.8× |
| 10 | gpt-5-mini | OpenAI | $0.00196 | $234.60 | 5.0× |
| 11 | GLM-5.3-FlashX | Z.ai | $0.00223 | $267.18 | 5.7× |
| 12 | Gemini 3.5 Flash-Lite | Google | $0.00238 | $286.20 | 6.1× |
| 13 | GLM-4.7 | Z.ai | $0.00368 | $441.36 | 9.4× |
| 14 | Gemini 3.6 Flash (promo) | Google | $0.00499 | $598.50 | 12.8× |
| 15 | Gemini 3.7 Flash (promo) | Google | $0.00499 | $598.50 | 12.8× |
| 16 | Gemini 3.8 Flash (promo) | Google | $0.00499 | $598.50 | 12.8× |
| 17 | gpt-5.4-mini | OpenAI | $0.00528 | $633.60 | 13.5× |
| 18 | GLM-5 | Z.ai | $0.00595 | $713.76 | 15.2× |
| 19 | Kimi K2.6 | Moonshot | $0.00602 | $723.00 | 15.4× |
| 20 | Claude Haiku 4.5 | Anthropic | $0.00665 | $798.00 | 17.0× |
| 21 | deepseek-v4-pro | DeepSeek | $0.00775 | $929.81 | 19.8× |
| 22 | GLM-5.2 | Z.ai | $0.0083 | $995.52 | 21.2× |
| 23 | GLM-5.3 | Z.ai | $0.0083 | $995.52 | 21.2× |
| 24 | gpt-5 | OpenAI | $0.00977 | $1,173 | 25.0× |
| 25 | gpt-5.1 | OpenAI | $0.00977 | $1,173 | 25.0× |
| 26 | Gemini 3.6 Flash (standard) | Google | $0.00997 | $1,197 | 25.5× |
| 27 | Gemini 3.7 Flash (standard) | Google | $0.00997 | $1,197 | 25.5× |
| 28 | Gemini 3.8 Flash (standard) | Google | $0.00997 | $1,197 | 25.5× |
| 29 | Gemini 3.5 Flash | Google | $0.0106 | $1,267 | 27.0× |
| 30 | gpt-6-sol | OpenAI | $0.0133 | $1,596 | 34.0× |
| 31 | Claude Sonnet 5 | Anthropic | $0.0133 | $1,596 | 34.0× |
| 32 | Claude Sonnet 5.5 | Anthropic | $0.0133 | $1,596 | 34.0× |
| 33 | gpt-5.2 | OpenAI | $0.0137 | $1,642 | 35.0× |
| 34 | gpt-5.6-terra | OpenAI | $0.0141 | $1,690 | 36.0× |
| 35 | Gemini 3.1 Pro | Google | $0.0141 | $1,690 | 36.0× |
| 36 | gpt-5.4 | OpenAI | $0.0176 | $2,112 | 45.0× |
| 37 | Kimi K3 | Moonshot | $0.0199 | $2,394 | 51.0× |
| 38 | gpt-5.6-solpremium | OpenAI | $0.0266 | $3,192 | 68.0× |
| 39 | Claude Opus 5.5 | Anthropic | $0.0266 | $3,192 | 68.0× |
| 40 | Claude Opus 5 | Anthropic | $0.0333 | $3,990 | 85.0× |
| 41 | gpt-5.5premium | OpenAI | $0.0352 | $4,224 | 90.0× |
| 42 | gpt-6-astrapremium | OpenAI | $0.0665 | $7,980 | 170.1× |
| 43 | Claude Fable 5premium | Anthropic | $0.0665 | $7,980 | 170.1× |
| 44 | Claude Fable 5.1premium | Anthropic | $0.0665 | $7,980 | 170.1× |
| 45 | Claude Mythos 5premium | Anthropic | $0.0665 | $7,980 | 170.1× |
| 46 | Claude Mythos 5.1premium | Anthropic | $0.0665 | $7,980 | 170.1× |
| 47 | gpt-5-propremium | OpenAI | $0.1173 | $14,076 | 300.0× |
| 48 | gpt-5.2-propremium | OpenAI | $0.1642 | $19,706 | 420.0× |
| 49 | gpt-5.4-propremium | OpenAI | $0.2112 | $25,344 | 540.2× |
| 50 | gpt-5.5-propremium | OpenAI | $0.2112 | $25,344 | 540.2× |

## What changed since the last check

Every rate movement caught between 13 September 2026 and 28 September 2026, re-read from each provider's own documentation. The change column is the move in the cost of a 4,700 / 390 call, not in the headline rate.

| Model | Provider | Was | Now | Per call |
| --- | --- | --- | --- | --- |
| Claude Opus 5.5 New model, released 22 Sep, priced below Opus 5 ($5 / $25); cache hits $0.20 (0.05×) | Anthropic | — | $4.00 / $20.00 | new |
| Claude Sonnet 5.5 New model, released 28 Sep, at the Sonnet 5 rate | Anthropic | — | $2.00 / $10.00 | new |
| gpt-6-sol New model; same input as gpt-5.6-terra, cheaper output; cached input $0.20 | OpenAI | — | $2.00 / $10.00 | new |
| gpt-6-luna New budget model at half the gpt-5.6-luna rate; cached input $0.01 | OpenAI | — | $0.10 / $0.50 | new |
| GLM-5.3-FlashX New model between GLM-5.3-Flash and GLM-4.7; cache hits $0.075 | Z.ai | — | $0.37 / $1.25 | new |
| Claude Sonnet 5 The scheduled 1 Sep increase to $3 / $15 was cancelled — the $2 / $10 introductory rate is now the standard price | Anthropic | $3.00 / $15.00 | $2.00 / $10.00 | \-33% |
| Claude Fable 5.1 New model at the Fable 5 rate; cache hits $0.25 (0.025×) instead of $1.00 | Anthropic | — | $10.00 / $50.00 | new |
| Claude Mythos 5.1 New model, limited availability, same rates as Fable 5.1 | Anthropic | — | $10.00 / $50.00 | new |
| gpt-6-astra New premium model; cached input $1.00 | OpenAI | — | $10.00 / $50.00 | new |
| Gemini 3.8 Flash New model at the 3.6 / 3.7 Flash promotional rate through 31 Dec 2026, then $1.50 / $7.50 | Google | — | $0.75 / $3.75 | new |
| deepseek-flash (was deepseek-v4-flash) Renamed and cut; cache hits $0.006; peak hours now weekdays only | DeepSeek | $0.44 / $1.32 | $0.30 / $1.20 | \-27% |
| GLM-5.3-Flash New budget model | Z.ai | — | $0.15 / $0.50 | new |
| Kimi K2.6 Newly tracked here — Moonshot's budget general model; K3 itself is unchanged | Moonshot | — | $0.95 / $4.00 | new |
| gpt-5.6-luna | OpenAI | $1.00 / $6.00 | $0.20 / $1.20 | \-80% |
| gpt-5.6-terra | OpenAI | $2.50 / $15.00 | $2.00 / $12.00 | \-20% |
| gpt-5.6-sol | OpenAI | $5.00 / $30.00 | $4.00 / $20.00 | \-24% |
| Gemini 3.6 Flash Promotional rate through 31 Dec 2026, then back to $1.50 / $7.50 | Google | $1.50 / $7.50 | $0.75 / $3.75 | \-50% |
| Gemini 3.7 Flash New model, introductory rate through 31 Dec 2026 | Google | — | $0.75 / $3.75 | new |
| deepseek-v4-flash Repriced into peak / off-peak tiers; peak shown | DeepSeek | $0.14 / $0.28 | $0.44 / $1.32 | +237% |
| deepseek-v4-pro Repriced into peak / off-peak tiers; peak shown | DeepSeek | $0.435 / $0.87 | $1.32 / $3.96 | +225% |
| GLM-5.3 New model at the GLM-5.2 rate | Z.ai | — | $1.40 / $4.40 | new |

**How to read this.** Rates are per million tokens, taken from each provider's own documentation on 28 September 2026. Published pricing changes often — check the source before you budget against it.

-   The default 4,700 / 390 split is a planning or tool-calling request: a large prompt, a short structured answer. Chat workloads invert it, which changes the ranking.
-   Cached input is only applied to models whose provider publishes a flat cache-hit rate. The rest ignore the slider rather than guess.
-   Batch APIs on OpenAI, Google and Anthropic discount both directions by 50% — halve any figure here if the work is not interactive.

The reasoning behind the credit formula, the output-weight ratios, and where each rate came from is written up in [what an AI feature actually costs per call](https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/).

/FAQ

## Questions about AI pricing.

Rates come from each provider's own documentation — the full write-up is in the LLM cost article.

How do you calculate the cost of an LLM API call? +

Multiply input tokens by the model input rate, output tokens by the output rate, and divide by 1,000,000. On Gemini 3.6 Flash ($0.75 in / $3.75 out) a 4,700-input, 390-output call is (4,700 × 0.75 + 390 × 3.75) ÷ 1,000,000 = $0.00499. Every provider bills in exactly that shape, so the only hard part is knowing your real token size.

Why does the calculator default to 4,700 input and 390 output tokens? +

That is a measured production request for a planning or tool-calling task: a large system prompt plus tool schemas going in, a short structured decision coming back. It is deliberately not a chat workload, which inverts the ratio and changes which model is cheapest. Move the sliders to match your own traffic — and expect real calls to run 1.5 to 2 times larger than a thin test sample.

Why are output tokens more expensive than input tokens? +

Generating tokens is sequential, while input can be processed in parallel, and providers price accordingly. The ratio is typically 5× on Anthropic, Google Flash and Kimi K3, 6–8× across the OpenAI GPT-5 line, and 3× on DeepSeek V4. Because reasoning tokens are billed as output, a model that always thinks can cost more than its visible answer suggests.

Why is the cached-input slider disabled for some models? +

Because that provider does not publish a flat per-token cache-hit rate. OpenAI, Anthropic, Moonshot, DeepSeek and Z.ai all do, so the slider applies their real discount — typically 0.1× the base input rate, and as low as 0.03× on DeepSeek. Only Google is disabled here: its context-caching price carries a separate per-hour storage charge, so a single per-token rate would understate the real cost.

Which LLM API is the cheapest? +

At the default call size, gpt-5-nano ($0.05 / $0.40 per million) and GLM-4.7-FlashX ($0.07 / $0.40) are the cheapest paid options, followed by the new gpt-6-luna ($0.10 / $0.50, about $0.0007 a call) and GLM-5.3-Flash ($0.15 / $0.50), then GLM-4.5-Air and gpt-5.6-luna at around $0.0014 a call. The DeepSeek Flash model left it in August 2026 at $0.44 / $1.32 and is back on its edge since September as deepseek-flash at $0.30 / $1.20. Cheapest only matters if quality holds for your task, so A/B a candidate on real requests before switching, and note that naming is not a price guide: Kimi K3 costs half as much again per call as Claude Sonnet 5.

How should I charge credits if I resell AI usage? +

Charge from the token counts the provider returns, not a flat price per request, because a flat rate always undercharges your largest calls. Weight output tokens by the model output-to-input price ratio, divide by a fixed tokens-per-credit constant, and settle after the call succeeds. One credit then backs a fixed amount of provider cost for any input/output mix.

How current are these prices? +

Every rate was read from the provider's own documentation on 28 September 2026 — never from aggregator sites, which drift. Published pricing changes often, and introductory rates expire — Gemini 3.6, 3.7 and 3.8 Flash all double on 1 January 2027 — though not always: Claude Sonnet 5's planned move from $2/$10 to $3/$15 on 1 September 2026 was cancelled, and $2/$10 is now its standard rate. The change log on this page records every rate movement we have caught since 29 July 2026, including a 50% cut on Gemini 3.6 Flash and a roughly 3× rise on DeepSeek V4. Verify against the provider before you budget against any figure here.

/Ready

## Your next automation is  
one sentence away.

[Try the Live Preview](https://playground.wordpress.net/?blueprint-url=https://wpwebhooks.org/blueprint.json) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"WebApplication","name":"AI API Cost Calculator","url":"https://wpwebhooks.org/tools/llm-cost-calculator/","applicationCategory":"DeveloperApplication","operatingSystem":"Any","browserRequirements":"Requires JavaScript","inLanguage":"en","description":"Free AI cost calculator: set input and output tokens, pick from 50 LLM models, and see the real per-call, monthly and annual API bill.","datePublished":"2026-07-29","dateModified":"2026-09-28","isAccessibleForFree":true,"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Per-call cost for 50 models across 6 providers","Adjustable input and output token counts","Cached-input pricing where the provider publishes a cache-hit rate","Monthly and annual projections from call volume","Token-linked credit charge for reselling AI usage"],"publisher":{"@type":"Organization","name":"WP Webhooks","url":"https://wpwebhooks.org"}}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"WP Webhooks","item":"https://wpwebhooks.org/"},{"@type":"ListItem","position":2,"name":"Tools","item":"https://wpwebhooks.org/tools/"},{"@type":"ListItem","position":3,"name":"AI API Cost Calculator","item":"https://wpwebhooks.org/tools/llm-cost-calculator/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How do you calculate the cost of an LLM API call?","acceptedAnswer":{"@type":"Answer","text":"Multiply input tokens by the model input rate, output tokens by the output rate, and divide by 1,000,000. On Gemini 3.6 Flash ($0.75 in / $3.75 out) a 4,700-input, 390-output call is (4,700 × 0.75 + 390 × 3.75) ÷ 1,000,000 = $0.00499. Every provider bills in exactly that shape, so the only hard part is knowing your real token size."}},{"@type":"Question","name":"Why does the calculator default to 4,700 input and 390 output tokens?","acceptedAnswer":{"@type":"Answer","text":"That is a measured production request for a planning or tool-calling task: a large system prompt plus tool schemas going in, a short structured decision coming back. It is deliberately not a chat workload, which inverts the ratio and changes which model is cheapest. Move the sliders to match your own traffic — and expect real calls to run 1.5 to 2 times larger than a thin test sample."}},{"@type":"Question","name":"Why are output tokens more expensive than input tokens?","acceptedAnswer":{"@type":"Answer","text":"Generating tokens is sequential, while input can be processed in parallel, and providers price accordingly. The ratio is typically 5× on Anthropic, Google Flash and Kimi K3, 6–8× across the OpenAI GPT-5 line, and 3× on DeepSeek V4. Because reasoning tokens are billed as output, a model that always thinks can cost more than its visible answer suggests."}},{"@type":"Question","name":"Why is the cached-input slider disabled for some models?","acceptedAnswer":{"@type":"Answer","text":"Because that provider does not publish a flat per-token cache-hit rate. OpenAI, Anthropic, Moonshot, DeepSeek and Z.ai all do, so the slider applies their real discount — typically 0.1× the base input rate, and as low as 0.03× on DeepSeek. Only Google is disabled here: its context-caching price carries a separate per-hour storage charge, so a single per-token rate would understate the real cost."}},{"@type":"Question","name":"Which LLM API is the cheapest?","acceptedAnswer":{"@type":"Answer","text":"At the default call size, gpt-5-nano ($0.05 / $0.40 per million) and GLM-4.7-FlashX ($0.07 / $0.40) are the cheapest paid options, followed by the new gpt-6-luna ($0.10 / $0.50, about $0.0007 a call) and GLM-5.3-Flash ($0.15 / $0.50), then GLM-4.5-Air and gpt-5.6-luna at around $0.0014 a call. The DeepSeek Flash model left it in August 2026 at $0.44 / $1.32 and is back on its edge since September as deepseek-flash at $0.30 / $1.20. Cheapest only matters if quality holds for your task, so A/B a candidate on real requests before switching, and note that naming is not a price guide: Kimi K3 costs half as much again per call as Claude Sonnet 5."}},{"@type":"Question","name":"How should I charge credits if I resell AI usage?","acceptedAnswer":{"@type":"Answer","text":"Charge from the token counts the provider returns, not a flat price per request, because a flat rate always undercharges your largest calls. Weight output tokens by the model output-to-input price ratio, divide by a fixed tokens-per-credit constant, and settle after the call succeeds. One credit then backs a fixed amount of provider cost for any input/output mix."}},{"@type":"Question","name":"How current are these prices?","acceptedAnswer":{"@type":"Answer","text":"Every rate was read from the provider's own documentation on 28 September 2026 — never from aggregator sites, which drift. Published pricing changes often, and introductory rates expire — Gemini 3.6, 3.7 and 3.8 Flash all double on 1 January 2027 — though not always: Claude Sonnet 5's planned move from $2/$10 to $3/$15 on 1 September 2026 was cancelled, and $2/$10 is now its standard rate. The change log on this page records every rate movement we have caught since 29 July 2026, including a 50% cut on Gemini 3.6 Flash and a roughly 3× rise on DeepSeek V4. Verify against the provider before you budget against any figure here."}}]}
```
