---
title: "LLM API Pricing 2026: Real Cost Per Call, Compared"
description: "LLM API pricing compared across OpenAI, Google, Anthropic and Chinese models like Kimi K3 — with the token math for what one real AI call costs."
url: "https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/"
date: "2026-07-29"
---

# LLM API Pricing 2026: Real Cost Per Call, Compared

**TL;DR:** at a realistic production request size of ~4,700 input and ~390 output tokens, one AI API call costs anywhere from **$0.0004 to $0.035** across the standard model tiers — an 88× spread driven purely by model choice, rising to $0.21 on a pro tier.

-   Output tokens cost **5–8×** input tokens almost everywhere, so response length moves your bill more than prompt length.
-   "Chinese model" does not mean "cheap". Kimi K3 lists at $3 / $15 per million — the same per-call cost as Claude Sonnet 5 at standard pricing.
-   DeepSeek V4 Flash, at $0.14 / $0.28, is roughly **26×** cheaper per call than Kimi K3.
-   If you resell AI as credits, charge from _actual_ token usage. A flat price per request always undercharges your largest requests.

/ The unit

## What does a single **AI API call** actually cost?

Multiply your input tokens by the model's input rate, your output tokens by its output rate, and add them. That is the whole formula — every provider on this page bills per million tokens in exactly that shape:

`cost = (input_tokens × input_rate + output_tokens × output_rate) / 1,000,000`

Worked through on Gemini 3.6 Flash, which lists at $1.50 per million input and $7.50 per million output, for a call of 4,700 input and 390 output tokens:

-   input — 4,700 × $1.50 ÷ 1,000,000 = **$0.00705**
-   output — 390 × $7.50 ÷ 1,000,000 = **$0.00293**
-   total — **$0.00998**, the $0.0100 you will see in the table below

Ten thousand of those calls is $99.80. A million is $9,980. That is the entire economics of an AI feature, and it is worth doing this arithmetic once by hand before trusting any dashboard. If you would rather drag a slider than reach for a calculator, every figure on this page is live in the [LLM API cost calculator](https://wpwebhooks.org/tools/llm-cost-calculator/).

What makes the number hard to predict is not the arithmetic, it is knowing your real token size. Measured request sizes are almost always different from the ones people assume when they estimate. Every figure on this page uses one fixed reference call — **4,700 input tokens and 390 output tokens** — which is typical of a planning or tool-calling request: a substantial system prompt plus tool schemas going in, a short structured decision coming back. Scale the results linearly for your own workload, and expect real traffic to run 1.5–2× larger than a thin test sample.

That asymmetry — a fat prompt and a thin response — matters, because it is the opposite of a chat workload. If your calls generate long prose answers instead, the output-rate column below dominates and the ranking changes.

/ The majors

## How much do the major providers charge **per million tokens**?

Here are the current published rates for the standard (non-batch, non-cached) tiers at each of the three largest Western providers, with the per-call cost worked out at the reference size above. Premium and pro tiers are a separate table further down. All rates verified against provider documentation on 29 July 2026.¹

| Provider | Model | Input / 1M | Output / 1M | Per call |
| --- | --- | --- | --- | --- |
| OpenAI | `gpt-5-nano` | $0.05 | $0.40 | $0.0004 |
| OpenAI | `gpt-5.4-nano` | $0.20 | $1.25 | $0.0014 |
| OpenAI | `gpt-5-mini` | $0.25 | $2.00 | $0.0020 |
| OpenAI | `gpt-5.4-mini` | $0.75 | $4.50 | $0.0053 |
| OpenAI | `gpt-5.6-luna` | $1.00 | $6.00 | $0.0070 |
| OpenAI | `gpt-5` / `gpt-5.1` | $1.25 | $10.00 | $0.0098 |
| OpenAI | `gpt-5.2` | $1.75 | $14.00 | $0.0137 |
| OpenAI | `gpt-5.4` / `gpt-5.6-terra` | $2.50 | $15.00 | $0.0176 |
| OpenAI | `gpt-5.5` / `gpt-5.6-sol` | $5.00 | $30.00 | $0.0352 |
| Google | `Gemini 3.1 Flash-Lite` | $0.25 | $1.50 | $0.0018 |
| Google | `Gemini 3.5 Flash-Lite` | $0.30 | $2.50 | $0.0024 |
| Google | `Gemini 3.6 Flash` | $1.50 | $7.50 | $0.0100 |
| Google | `Gemini 3.5 Flash` | $1.50 | $9.00 | $0.0106 |
| Google | `Gemini 3.1 Pro` (preview) | $2.00 | $12.00 | $0.0141 |
| Anthropic | `Claude Haiku 4.5` | $1.00 | $5.00 | $0.0067 |
| Anthropic | `Claude Sonnet 5` (intro) | $2.00 | $10.00 | $0.0133 |
| Anthropic | `Claude Sonnet 5` (from 1 Sep) | $3.00 | $15.00 | $0.0200 |
| Anthropic | `Claude Opus 5` | $5.00 | $25.00 | $0.0333 |

Three things stand out. First, the budget tier is genuinely cheap: `gpt-5-nano` at $0.0004 per call is 25× cheaper than Gemini 3.6 Flash and 83× cheaper than Opus 5, for a task that may not need frontier reasoning at all. Second, the "flash" and "mini" labels are not a reliable guide to price. Gemini 3.6 Flash costs $0.0100 per call — more than Claude Haiku 4.5 at $0.0067, and 5× more than `gpt-5-mini`, despite all three sitting in the same nominal tier.

Third, and least intuitive: a higher generation number does not mean a higher price. `gpt-5.6-luna` costs $0.0070 per call, comfortably _less_ than the older `gpt-5.2` at $0.0137 — while `gpt-5.4-mini` at $0.0053 costs 2.7× its `gpt-5-mini` predecessor. Within a single vendor's line-up the suffix is a product-positioning label, not a rung on a price ladder. The only reliable ordering is the one you compute yourself.

Note the moving target in that table: [Anthropic's published pricing](https://platform.claude.com/docs/en/about-claude/pricing) puts Claude Sonnet 5 on introductory pricing of $2 / $10 through 31 August 2026, after which it becomes $3 / $15. If you budget against the intro rate, your per-call cost rises 50% on 1 September without any change on your side.

/ Premium tiers

## What about the **premium and pro** models?

They exist, and they are priced in a different league. The table above deliberately covers the standard tiers — the models you would realistically put behind a per-request product feature. Each provider also publishes a premium line above them:

| Provider | Model | Input / 1M | Output / 1M | Per call |
| --- | --- | --- | --- | --- |
| Anthropic | `Claude Fable 5` | $10.00 | $50.00 | $0.0665 |
| Anthropic | `Claude Mythos 5` (limited availability) | $10.00 | $50.00 | $0.0665 |
| OpenAI | `gpt-5-pro` | $15.00 | $120.00 | $0.1173 |
| OpenAI | `gpt-5.2-pro` | $21.00 | $168.00 | $0.1642 |
| OpenAI | `gpt-5.4-pro` / `gpt-5.5-pro` | $30.00 | $180.00 | $0.2112 |

Read those per-call figures against the standard table and the gap is stark: $0.2112 ÷ $0.0004 means `gpt-5.5-pro` costs **528×** what `gpt-5-nano` costs for the same request, and $0.2112 ÷ $0.0100 puts it at 21× Gemini 3.6 Flash. Ten thousand calls: $4 on nano, $100 on Flash, $2,112 on pro. Anthropic's premium pair sits lower, at $0.0665 — double Opus 5 and about twice the top of the standard table.

Nothing here says these models are overpriced; a task that genuinely needs them is a task the cheap tiers will fail at, and one correct answer beats twenty wrong ones. But they are a poor fit for a metered, per-request feature — at $0.21 a call, a thousand requests is $211, which reprices your product rather than your infrastructure. Reserve them for low-volume, high-stakes steps and route the routine work elsewhere.

/ Chinese models

## Are **Chinese models** the cheap option — and where does Kimi K3 land?

Some are dramatically cheaper. Kimi K3 is not one of them. The assumption that a Chinese lab automatically means budget pricing breaks down as soon as you read the published rate cards side by side:

| Provider | Model | Input / 1M | Cached input | Output / 1M | Per call |
| --- | --- | --- | --- | --- | --- |
| Moonshot | `Kimi K3` | $3.00 | $0.30 | $15.00 | $0.0200 |
| DeepSeek | `deepseek-v4-flash` | $0.14 | $0.0028 | $0.28 | $0.0008 |
| DeepSeek | `deepseek-v4-pro` | $0.435 | $0.0036 | $0.87 | $0.0024 |
| Z.ai | `GLM-4.7-FlashX` | $0.07 | — | $0.40 | $0.0005 |
| Z.ai | `GLM-4.7` | $0.60 | — | $2.20 | $0.0037 |
| Z.ai | `GLM-5.2` | $1.40 | — | $4.40 | $0.0083 |

[Moonshot prices Kimi K3](https://platform.kimi.ai/docs/pricing/chat-k3) at $3.00 per million input tokens on a cache miss, $0.30 on a cache hit, and $15.00 per million output tokens, across a 1,048,576-token context window. At the reference call size that is (4,700 × $3 + 390 × $15) ÷ 1,000,000 = $0.01995 — _identical_ to Claude Sonnet 5 at its post-September standard rate, and double Gemini 3.6 Flash. Against DeepSeek V4 Flash's $0.00077, that is 26× the cost of the same call: 10,000 requests is $200 on K3 and $7.67 on DeepSeek. K3 is positioned as a frontier model and priced like one.

> Kimi K3 and Claude Sonnet 5 cost exactly the same per call. DeepSeek V4 Flash costs 26× less than either. "Chinese model" is not a pricing tier. — per-call arithmetic at 4,700 in / 390 out

At the other end, [DeepSeek](https://api-docs.deepseek.com/quick_start/pricing/) publishes `deepseek-v4-flash` at $0.14 input / $0.28 output, which works out to $0.0008 per call — and its cache-hit input rate of $0.0028 per million is the most aggressive discount on this page, 50× below its own cache-miss rate. [Z.ai's GLM line](https://docs.z.ai/guides/overview/pricing) spans nearly the same range on its own, from GLM-4.7-FlashX at $0.07 / $0.40 up to GLM-5.2 at $1.40 / $4.40, with GLM-4.7-Flash listed at no cost at all.

The practical lesson is that provider nationality tells you nothing about price. Read the rate card, compute your own per-call number, and rank by that.

![Cyberpunk illustration titled “What an AI Feature Actually Costs Per Call”: over a rainy neon city, a green holographic HUD shows COST = (input_tokens × input_rate + output_tokens × output_rate) / 1,000,000, with an INPUT column reading input_tokens = 500 and input_rate = $10 / 1M and an OUTPUT column reading output_tokens = 200 and output_rate = $30 / 1M, feeding boxes labelled INPUT COST $0.0050 and OUTPUT COST $0.0060 into a SUM box and a final SUM to TOTAL box reading $0.0110. A chrome-and-neon android woman looks on in profile.](https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/og_image.jpg)

/ Output weight

## Why does **output pricing** dominate the bill?

Because every provider charges several times more for tokens the model writes than for tokens you send. The ratio is remarkably consistent:

-   **6–8×** — OpenAI: 8× across `gpt-5`, `gpt-5.1` and `gpt-5.2`, and 6× on the newer `gpt-5.4` and `gpt-5.6` models.
-   **5×** — Anthropic across Haiku, Sonnet and Opus, Google's Gemini 3.6 Flash, and Moonshot's Kimi K3.
-   **2×** — DeepSeek V4, the flattest ratio of the group.
-   **3.1×** — Z.ai's GLM-5.2.

Run the reference call through that lens. Output is 390 of 5,090 total tokens — **7.7%** of the volume. But on Gemini 3.6 Flash it is $0.00293 of a $0.00998 bill, or **29%** of the money. Those 390 tokens cost nearly four times what their share of the token count suggests. Double the response to 780 tokens and the call goes to $0.01291, up 29%; double the _prompt_ to 9,400 tokens instead and it goes to $0.01703, up 71% — but you had to add 4,700 tokens to do it, twelve times as many as the output change. Trimming a verbose system prompt feels productive; capping `max_output_tokens` and asking for terse structured output usually saves more.

Reasoning models complicate this further, because reasoning tokens are billed as output. A model that always thinks before answering can spend more on the invisible trace than on the visible reply — the same behaviour that makes reasoning models good at planning tasks is what makes their bills volatile. If you route a planning step to a reasoning model, measure the output-token distribution, not just the mean.

/ Caching

## How much does **prompt caching** change the math?

Substantially, if your prompt has a large stable prefix. Cached input is billed at a fraction of the normal input rate, so a long system prompt and tool schema block — exactly the shape of an agent request — can be reused across calls almost for free.

| Provider | Cache-hit input rate | Relative to base input |
| --- | --- | --- |
| OpenAI (`gpt-5` – `gpt-5.2`) | $0.005 – $0.175 / 1M | 0.1× |
| Anthropic | $0.10 – $0.50 / 1M | 0.1× |
| Moonshot (Kimi K3) | $0.30 / 1M | 0.1× |
| DeepSeek V4 | $0.0028 – $0.0036 / 1M | 0.02× |

Anthropic also charges a write premium — 1.25× base input for a five-minute cache, 2× for a one-hour cache — which means caching pays for itself after a single read on the short TTL, or two reads on the long one. Work it through on Sonnet 5 at introductory pricing ($2 in / $10 out, cache hits at $0.20), assuming 4,000 of the 4,700 input tokens are a cacheable prefix:

-   cached input — 4,000 × $0.20 ÷ 1,000,000 = $0.0008
-   fresh input — 700 × $2.00 ÷ 1,000,000 = $0.0014
-   output — 390 × $10.00 ÷ 1,000,000 = $0.0039
-   total — **$0.0061**, against $0.0133 uncached

That is a **54% cut** with no quality trade-off — better than dropping from Sonnet 5 to Haiku 4.5 ($0.0067), and you keep the stronger model.

Batch APIs are the other lever: [Anthropic](https://platform.claude.com/docs/en/about-claude/pricing) and [OpenAI](https://developers.openai.com/api/docs/pricing) both discount asynchronous batch processing by 50%, and [Google](https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing) does the same. If the work is not interactive — nightly enrichment, bulk classification, backfills — half your bill is available for the cost of queueing the job. That is a natural fit for any system that already runs work through a [background job queue](https://wpwebhooks.org/blog/wordpress-job-queue/).

/ Reselling

## What goes wrong when you **resell AI calls** as flat-price credits?

You lose money on exactly the requests that cost you the most. A flat "one request = N credits" price is a fixed charge over a variable cost, so it overcharges small calls and undercharges large ones — and large calls are precisely what heavy users make.

Work the numbers on a hypothetical plan: a $249/year tier with a 5,000-credit monthly pool, charging 7 credits per request. That pool buys 8,571 requests a year. At $0.010 per call the provider bill is $86; at a realistic build size of $0.015 it is $129. Comfortable. Now scale the same structure up to a $649/year tier with a 30,000-credit pool: 51,429 requests a year, costing $514 to $771. The margin has narrowed from 65% to somewhere between 21% and a loss, without anything changing except the size of the pool.

The leak is not the pool size, it is that the charge does not move with the request. A user whose prompts are three times larger than average pays exactly the same as one whose prompts are tiny.

| Concern | Flat price per request | Charge from actual tokens |
| --- | --- | --- |
| Large requests | Undercharged — the loss tail | Cost proportionally more credits |
| Small requests | Overcharged — feels unfair | Cost less, down to a floor |
| Margin per credit | Varies with request size | Constant regardless of mix |
| Model swap | Requires re-pricing every tier | Only the $/credit backing changes |
| Failed provider call | Pre-charged, needs a refund path | Charged after success — nothing to refund |

/ Token-linked credits

## How do you make credits **track actual cost**?

Compute the charge from the token counts the provider returns, using a weight that mirrors that model's own output-to-input price ratio. Two constants per tier are enough:

PHP — token-linked credit charge

```
// Weight output tokens by the model's own output/input price ratio.
// Gemini 3.6 Flash: $1.50 in / $7.50 out  ->  weight 5.
$weighted = $usage['input_tokens'] + 5 * $usage['output_tokens'];

// 1 credit = 1,000 weighted tokens, minimum 1 credit per call.
$credits = max( 1, (int) ceil( $weighted / 1000 ) );

// Reference call: 4700 + 5 * 390 = 6650 weighted -> 7 credits.
```

The weight is the whole trick. When `output_weight` equals the provider's output/input price ratio, one credit maps to a _fixed_ dollar amount of provider cost for any input/output mix. On Gemini 3.6 Flash at weight 5 and 1,000 weighted tokens per credit, one credit is always about $0.0015 of API spend — whether the call was a fat prompt with a one-word answer or a short prompt with a long essay.

FIG 01 — Charging credits from actual token usage

Two details make this safe in production. Charge _after_ the provider call, not before: a failed request then costs the user nothing and there is no refund path to build. And gate on balance before the call rather than trying to predict the charge — check that the remaining pool is above zero, let the request through, then settle the real cost. The maximum you can overshoot is bounded by your own input and output caps, so a hard `max_output_tokens` is what keeps the tail finite.

A model with a different ratio just needs a different weight. Swapping to a provider whose output costs 8× input means weight 8; swapping to DeepSeek means weight 2. The [cost calculator](https://wpwebhooks.org/tools/llm-cost-calculator/) works the credit charge out for any model and token size, so you can see what one credit is actually backing before you publish a price. Because credits are charged from real usage, changing models changes what a credit costs you, not whether the pricing structure still holds.

/ In production

## What should you actually **measure**?

Per-call token counts, from day one. Almost every cost surprise traces back to a team that estimated token size instead of logging it. Concretely:

1.  **Log `input_tokens` and `output_tokens` on every call**, alongside the model name. Without the model name, a later price change makes the history unreadable.
2.  **Watch the distribution, not the mean.** The 95th-percentile request is what determines your worst case; a mean hides the reasoning traces that ran ten times longer than usual.
3.  **Bound the tail explicitly.** Cap input length and set `max_output_tokens`. Those two limits are the only hard ceiling on what one call can cost you.
4.  **Model the 100%-utilisation case.** If every customer consumed every credit they paid for, would each tier still be profitable? Typical usage is far below that, but the ceiling is what a single heavy account can reach.
5.  **Re-check rate cards quarterly.** Introductory pricing expires, new tiers land below old ones, and a model you chose on price six months ago may no longer be the cheap option.

None of this requires a sophisticated billing system. It requires that the number you charge and the number you are charged come from the same measurement. Once those are linked, model selection becomes a quality decision with a known cost consequence — which is the position you want to be in before you wire an AI step into an [agent architecture](https://wpwebhooks.org/blog/wordpress-ai-agent-plugin-architecture/) that runs on live traffic.

/Footnotes

¹ All rates read from provider documentation on 29 July 2026: [OpenAI API pricing](https://developers.openai.com/api/docs/pricing), [Gemini API pricing](https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing), [Claude pricing](https://platform.claude.com/docs/en/about-claude/pricing), [Kimi K3 pricing](https://platform.kimi.ai/docs/pricing/chat-k3), [DeepSeek pricing](https://api-docs.deepseek.com/quick_start/pricing/), and [Z.ai GLM pricing](https://docs.z.ai/guides/overview/pricing). Per-call figures are computed at 4,700 input / 390 output tokens and rounded to four decimal places. Published rates change frequently — verify before budgeting.

## Structured data

```json
{"@context":"https://schema.org","@type":"Article","headline":"LLM API Pricing 2026: Real Cost Per Call, Compared","description":"LLM API pricing compared across OpenAI, Google, Anthropic and Chinese models like Kimi K3 — with the token math for what one real AI call costs.","datePublished":"2026-07-29","dateModified":"2026-07-29","author":{"@type":"Person","name":"Mateusz Skorupa","url":"https://wpwebhooks.org/about/"},"publisher":{"@type":"Organization","name":"WP Webhooks","url":"https://wpwebhooks.org"},"url":"https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/","image":{"@type":"ImageObject","url":"https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/og_image.jpg","width":1200,"height":630,"caption":"Cyberpunk illustration titled “What an AI Feature Actually Costs Per Call”: over a rainy neon city, a green holographic HUD shows COST = (input_tokens × input_rate + output_tokens × output_rate) / 1,000,000, with an INPUT column reading input_tokens = 500 and input_rate = $10 / 1M and an OUTPUT column reading output_tokens = 200 and output_rate = $30 / 1M, feeding boxes labelled INPUT COST $0.0050 and OUTPUT COST $0.0060 into a SUM box and a final SUM to TOTAL box reading $0.0110. A chrome-and-neon android woman looks on in profile."},"keywords":["llm api pricing","ai api cost per call","gpt 5 pricing","gemini flash pricing","claude sonnet 5 pricing","kimi k3 pricing","deepseek api pricing","ai credits pricing","token cost calculation","llm cost comparison"]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"WP Webhooks","item":"https://wpwebhooks.org/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://wpwebhooks.org/blog/"},{"@type":"ListItem","position":3,"name":"LLM API Pricing 2026: Real Cost Per Call, Compared","item":"https://wpwebhooks.org/blog/llm-api-pricing-cost-per-call/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How much does one LLM API call cost?","acceptedAnswer":{"@type":"Answer","text":"At a realistic size of 4,700 input and 390 output tokens, between $0.0004 and $0.033 depending on the model. gpt-5-nano is about $0.0004, Gemini 3.6 Flash about $0.0100, Claude Sonnet 5 about $0.0133 at introductory pricing, and Claude Opus 5 about $0.0333. Multiply your own token counts by the published per-million rates to get an exact figure."}},{"@type":"Question","name":"Is Kimi K3 cheaper than Western models?","acceptedAnswer":{"@type":"Answer","text":"No. Moonshot lists Kimi K3 at $3.00 per million input tokens on a cache miss and $15.00 per million output tokens, which is the same as Claude Sonnet 5 standard pricing and double Gemini 3.6 Flash per call. Its cache-hit input rate is $0.30 per million. K3 is priced as a frontier model, not a budget one."}},{"@type":"Question","name":"Which AI model API is cheapest right now?","acceptedAnswer":{"@type":"Answer","text":"Among the models compared here, gpt-5-nano at $0.05 / $0.40 per million and GLM-4.7-FlashX at $0.07 / $0.40 are the cheapest paid options, with DeepSeek V4 Flash close behind at $0.14 / $0.28. Cheapest is only useful if quality holds for your task, so A/B a candidate model on real requests before switching."}},{"@type":"Question","name":"Why are output tokens more expensive than input tokens?","acceptedAnswer":{"@type":"Answer","text":"Generating tokens is sequential and compute-bound, while input can be processed in parallel, and providers price accordingly. The ratio is typically 5x on Anthropic, Google Gemini Flash and Kimi K3, 8x across the OpenAI GPT-5 line, and 2x on DeepSeek V4. Reasoning tokens are billed as output, so a model that always thinks can cost more than its visible answer suggests."}},{"@type":"Question","name":"How should I price AI credits so I do not lose money?","acceptedAnswer":{"@type":"Answer","text":"Charge credits computed from the token counts the provider returns, not a flat price per request. Weight output tokens by the model output-to-input price ratio, divide the weighted total by a fixed tokens-per-credit constant, and settle after the call succeeds. That keeps the dollar cost behind one credit constant for any request size."}}]}
```
