---
title: "LLM API pricing explained, with worked examples | BroadRouter"
description: "How per-token LLM API pricing works: input, cached input, output, reasoning tokens, images and per-minute audio, with worked examples from a published rate card."
url: https://broadrouter.com/blog/llm-api-pricing-explained/
lang: en
updated: 2026-11-14
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# LLM API pricing explained: input, cached, output and reasoning

By the BroadNet Inference team · 6 min read · Published 2026-11-14 · Updated 2026-11-15

LLM APIs bill per million tokens, with separate prices for input, cached input and output. Reasoning tokens are billed as output, images count as input tokens, and speech to text is billed per audio minute. On BroadNet Inference, DeepSeek V4.1 Flash costs $0.175 input, $0.0055 cached and $0.52 output per 1M tokens.

## Key takeaways

-   A bill has three token meters: new input, cached input and output. Each has its own price per 1M tokens.
-   Output usually costs several times more than input. On DeepSeek V4.1 Flash it is $0.52 against $0.175.
-   Reasoning tokens are hidden from the reply but billed at the output price.
-   Images are billed as input tokens; audio transcription is billed per minute, for example $0.0042 a minute for Arabic.
-   Flat plans and hourly keys replace the token meter with a time price, which suits always-on agents.

**On this page**

1.  What are you actually paying for?
2.  What does each model cost per token?
3.  Why is output priced higher than input?
4.  How are cached input tokens billed?
5.  Why does a reasoning model bill more output than you see?
6.  How are images and audio priced?
7.  What does a real request cost? Worked examples
8.  How do you read the real numbers from a response?
9.  What other pricing models exist?
10.  Where BroadNet Inference fits

_[image: A stream of tokens flowing into the words "Ideas become answers."]_

LLM APIs bill per million tokens on separate meters: new input, cached input and output. Reasoning tokens bill as output, images bill as input tokens, and speech to text bills per audio minute. This guide explains each meter, then prices real requests with BroadNet Inference’s published rates, synced 2026-11-14.

## What are you actually paying for?

A [token](https://broadrouter.com/glossary/token/) is a chunk of text, usually a few characters. In BroadRouter’s own measurement across five tokenizers, 1,000 English words came to about 1,290 tokens; OpenAI’s rule of thumb is about 75 words per 100 tokens. Other languages differ; paste your own text into the free [token counter](https://broadrouter.com/tools/token-counter/) to see the real number. Each request reports its tokens in the `usage` block, and the bill is the sum of these meters:

| Meter | What it counts | Billed at |
| --- | --- | --- |
| Input (prompt) | System prompt, history, documents, tool definitions, images | Input price |
| Cached input | Input the provider already processed and reused | Cached price, much lower |
| Output (completion) | The visible answer plus any reasoning | Output price |
| Audio minutes | Length of audio sent for transcription | Price per minute |

The [input and output token](https://broadrouter.com/glossary/input-and-output-tokens/) split matters most, because the two prices are far apart.

## What does each model cost per token?

BroadNet Inference prices, per 1M tokens:

| Model | Input | Cached input | Output | Context |
| --- | --- | --- | --- | --- |
| [DeepSeek V4.1 Flash](https://broadrouter.com/models/deepseek-v4.1-flash/) | $0.175 | $0.0055 | $0.52 | 1,048,576 |
| [GLM 5.3](https://broadrouter.com/models/glm-5.3/) | $0.78 | $0.173 | $3.46 | 1,048,576 |
| [Qwen3.8 27B](https://broadrouter.com/models/qwen3.8-27b/) | $0.175 | $0.0435 | $2.17 | 262,144 |
| [Gemma 4 VL 26B](https://broadrouter.com/models/gemma-4-vl-26b/) | $0.10 | No cache discount | $0.22 | 32,768 |

Two patterns hold on this rate card and on most others. Output costs more than input, from about twice as much on Gemma 4 VL 26B to over ten times on Qwen3.8 27B. Cached input costs a fraction of new input. To compare these rates with OpenAI, Anthropic, Google and other providers, see the [LLM API pricing table](https://broadrouter.com/llm-api-pricing/). For market-wide medians, provider spread and output-to-input ratios across every model we track, see the [LLM API price index](https://broadrouter.com/data/llm-api-price-index/) (open CSV and JSON).

## Why is output priced higher than input?

The model reads your whole prompt in one parallel pass. It writes the answer one token at a time, and each new token needs another pass. Output therefore uses more GPU time per token, and the price reflects it. A short prompt with a long answer can cost more than a long prompt with a short answer.

## How are cached input tokens billed?

When the start of your prompt matches a recent request, the provider can reuse its work. Those [cached input tokens](https://broadrouter.com/glossary/cached-input-tokens/) appear as `prompt_tokens_details.cached_tokens` and bill at the cached price. On DeepSeek V4.1 Flash that is $0.0055 instead of $0.175 per 1M.

Caching rewards prompts with a stable prefix: system prompt, tool list and documents first, the new message last. Agents that resend the same repository on every turn gain the most. For how each provider bills cache reads and writes, see [cached input tokens explained](https://broadrouter.com/blog/cached-input-tokens-explained/); to model your own cache rate, use the [prompt caching calculator](https://broadrouter.com/tools/prompt-caching-calculator/).

## Why does a reasoning model bill more output than you see?

DeepSeek V4.1 Flash, GLM 5.3 and Qwen3.8 27B think before they answer. That thinking is made of [reasoning tokens](https://broadrouter.com/glossary/reasoning-tokens/). You don’t see them in the reply, but they are counted in `completion_tokens` and billed at the output price. OpenAI’s reasoning guide describes the same rule for its models: reasoning tokens “are billed as output tokens”.

Reasoning also counts toward `max_tokens`. Set it too low and you pay for thinking with no answer. [Why replies come back empty](https://broadrouter.com/guides/reasoning-tokens-empty-response/), and [how to keep reasoning costs down](https://broadrouter.com/blog/reasoning-tokens-cost/).

## How are images and audio priced?

**Images.** A [vision model](https://broadrouter.com/glossary/vision-language-model/) turns an image into input tokens. You pay the input price for them, and a bigger image uses more tokens. There is no separate per-image fee on BroadNet. [Cost per image compared](https://broadrouter.com/blog/cheapest-vision-llm-api/).

**Audio.** [Speech to text](https://broadrouter.com/glossary/speech-to-text/) is billed by audio length, not tokens:

| Model | Per minute | Per hour of audio |
| --- | --- | --- |
| BroadNet Transcribe Arabic | $0.0042 | $0.25 |
| BroadNet Transcribe (14 languages) | $0.002 | $0.12 |

## What does a real request cost? Worked examples

These use DeepSeek V4.1 Flash. Each example is sized so the totals land on whole millions of tokens, which makes the math easy to check.

1.  **A chat feature.** 500 requests, each with 2,000 input and 2,000 output tokens, use 1M input and 1M output tokens. Cost: $0.175 plus $0.52.
2.  **An agent rereading its context.** Ten turns that each send the same 100,000-token context add up to 1M input tokens. If none of it is cached, that costs $0.175. If it were all cached, it would cost $0.0055, but the first turn has nothing to reuse, so treat that as a lower bound: at best, 900,000 tokens bill at the cached price and the first 100,000 at the input price.
3.  **Hidden reasoning.** 1,000 answers of 200 visible tokens, each with 800 reasoning tokens, bill 1M output tokens: $0.52. Only a fifth of that was text you saw.
4.  **Transcription.** 1,000 hours of Arabic audio cost $252.00. 10,000 voice notes of 30 seconds cost $21.00.

The general formula:

```text
cost = new_input/1M × input_price
     + cached_input/1M × cached_price
     + output/1M × output_price      (output includes reasoning)
```

To run these numbers for your own traffic, use the free [LLM API cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/). For a full forecast of a new feature, see [how to estimate LLM API cost before launch](https://broadrouter.com/blog/estimate-llm-api-cost-before-launch/).

## How do you read the real numbers from a response?

Don’t estimate from word counts once you have traffic. Read them:

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://inference.broadnet.ai/v1", api_key=os.environ["BROADNET_API_KEY"])
r = client.chat.completions.create(
    model="broadnet/deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Summarise this ticket in one line: ..."}],
)
u = r.usage
details = u.prompt_tokens_details  # can be None when the model reports no cache data
cached = (details.cached_tokens or 0) if details else 0
print(u.prompt_tokens, cached, u.completion_tokens)
```

When streaming, add `stream_options={"include_usage": True}` so the last chunk carries `usage`. [Streaming guide](https://broadrouter.com/guides/streaming-chat-completions/).

## What other pricing models exist?

Per-token billing is not the only option:

-   **Flat plans.** A [flat-rate plan](https://broadrouter.com/glossary/flat-rate-llm-plan/) charges for time, not tokens. BroadNet’s Full Moon is $60 a month per session for unlimited DeepSeek V4.1 Flash, one request at a time. Orbit is $15 a week, Meteor $1 an hour.
-   **Hourly keys.** $0.50 buys one hour of Gemma 4 VL 26B on one stream. [Hourly keys explained](https://broadrouter.com/blog/hourly-llm-api-key-explained/).
-   **Batch and dedicated GPUs.** Some providers discount overnight batch jobs or rent whole GPUs by the hour. [How other providers price open models](https://broadrouter.com/blog/llm-inference-provider-pricing-compared/).

[When a flat plan beats per-token](https://broadrouter.com/blog/flat-rate-vs-pay-per-token-llm-api/) depends on volume and cache rate. For every lever in order, from caching to batch discounts, see [how to reduce LLM API costs](https://broadrouter.com/blog/how-to-reduce-llm-api-costs/).

Per-token prices also change over time, in both directions. In archived pricing pages from 11 providers, 80% of models never changed price. Across the models that did change, we recorded 100 price cuts and 52 rises, each a model’s price compared with its own earlier price. See [how often LLM API prices change](https://broadrouter.com/blog/how-often-llm-api-prices-change/) and [the biggest LLM API price cuts, with sources](https://broadrouter.com/blog/llm-api-price-cuts-2023-2026/).

## Where BroadNet Inference fits

BroadNet publishes one rate card for every model it serves, in a [machine-readable file](https://inference.broadnet.ai/pricing.json?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-llm-api-pricing-explained&utm_content=body) that this site’s [pricing page](https://broadrouter.com/pricing/) reads. New accounts start with $5 of credit; Gemma 4 VL 26B and both transcription models work on it, and the other chat models need a top-up. It is a good fit if you want per-token and flat pricing on one account; plans get their own keys. It is not the place for frontier closed models: it serves open-weight models and its own builds only.

Free tools for this

-   [LLM API cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/) Price a workload on every model at once, with cache hits, reasoning and a flat-plan check.
-   [Flat-rate vs per-token LLM cost calculator](https://broadrouter.com/tools/flat-rate-vs-per-token-calculator/) Break-even between an unlimited plan and paying per token, per agent.
-   [Prompt caching savings calculator](https://broadrouter.com/tools/prompt-caching-calculator/) Bill with and without caching, by prefix share and hit rate.
-   [Prompt token diff](https://broadrouter.com/tools/prompt-token-diff/) Two prompt versions side by side: changed lines, exact token delta and the monthly cost difference.

[All free tools](https://broadrouter.com/tools/)

## Terms in this article

[Token](https://broadrouter.com/glossary/token/)

A token is the unit of text a language model reads and writes: a word, part of a word, a punctuation mark or a byte sequence produced by the model's tokenizer. LLM APIs count, limit and usually bill usage in tokens.

[Input and output tokens](https://broadrouter.com/glossary/input-and-output-tokens/)

Input tokens are the tokens a language model reads in a request, including the system prompt, conversation history, tool definitions and images. Output tokens are the tokens it generates in reply, including any reasoning. LLM APIs usually price them separately, and output usually costs more.

[Speech-to-text](https://broadrouter.com/glossary/speech-to-text/)

Speech-to-text, also called automatic speech recognition (ASR), is technology that converts spoken audio into written text. A speech-to-text API accepts an audio file or stream and returns a transcript, usually priced per minute of audio. Accuracy is measured with word error rate and varies with accent, dialect and recording quality.

[Cached input tokens](https://broadrouter.com/glossary/cached-input-tokens/)

Cached input tokens are prompt tokens that an LLM provider has recently processed and can reuse from a cache instead of computing again, usually a repeated prefix such as a system prompt or document. Providers bill them at a lower rate than new input tokens.

[Reasoning tokens](https://broadrouter.com/glossary/reasoning-tokens/)

Reasoning tokens are tokens a reasoning model generates to work through a problem before it writes its visible answer. They are usually billed as output tokens, count toward the output limit and the context window, and may be hidden or summarized by the API.

[Tool calling](https://broadrouter.com/glossary/tool-calling/)

Tool calling, also called function calling, is an LLM API feature in which the model returns a structured request to run a function the developer has defined, with JSON arguments. The application runs the function and sends the result back; the model never runs code itself.

[Open-weight model](https://broadrouter.com/glossary/open-weight-model/)

An open-weight model is a machine learning model whose trained weights are published for anyone to download and run, usually under a licence with conditions. It differs from fully open-source AI, which also releases the training code and detailed information about the training data, so others can study and reproduce the model.

[Streaming](https://broadrouter.com/glossary/streaming/)

Streaming is a way of returning a language model response in small chunks while it is still being generated, instead of as one reply at the end. OpenAI-compatible APIs stream over server-sent events when the request sets stream to true.

## Questions

### How is LLM API pricing calculated?

Multiply input tokens by the input price, cached input tokens by the cached price and output tokens by the output price, each per 1M tokens, then add them. Reasoning tokens are included in output.

### Why are output tokens more expensive than input tokens?

The model reads input in one parallel pass but generates output one token at a time, so each output token uses more GPU time. Providers price that difference in.

### Are reasoning tokens billed?

Yes, on per-token keys. They are reported inside completion tokens and billed at the output price, even though they are not shown in the reply.

### How much does one image cost in an LLM API?

An image is turned into input tokens, so it costs its token count times the input price. Larger images use more tokens. Read prompt\_tokens in the usage block to see the real number.

### What is the cheapest way to pay for an always-on agent?

Usually a flat plan. On BroadNet, a Full Moon session costs $60 a month for unlimited DeepSeek V4.1 Flash, one request at a time.

## Keep reading

-   [Cached input tokens: how to cut an LLM API bill](https://broadrouter.com/blog/cached-input-tokens-explained/)
-   [Flat-rate vs pay-per-token LLM API: the break-even math](https://broadrouter.com/blog/flat-rate-vs-pay-per-token-llm-api/)
-   [How to estimate LLM API cost before you launch a feature](https://broadrouter.com/blog/estimate-llm-api-cost-before-launch/)
-   [Reasoning tokens: why you pay for more output than you see](https://broadrouter.com/blog/reasoning-tokens-cost/)
-   [Free LLM API credit: how far a starting credit really goes](https://broadrouter.com/blog/free-llm-api-credit/)
-   [LLM API price changes in October 2026: 3 rises, no cuts](https://broadrouter.com/blog/llm-api-price-changes-october-2026/)
-   [Do LLM API prices only go down? 52 rises and how to budget for them](https://broadrouter.com/blog/llm-api-price-increases/)
-   [Guide: Why a reasoning model returns an empty answer](https://broadrouter.com/guides/reasoning-tokens-empty-response/)
-   [Guide: Stream chat completions and handle dropped connections](https://broadrouter.com/guides/streaming-chat-completions/)

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-llm-api-pricing-explained&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference machine-readable prices (pricing.json)](https://inference.broadnet.ai/pricing.json?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-llm-api-pricing-explained&utm_content=sources)
-   [BroadNet Inference pricing page](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-llm-api-pricing-explained&utm_content=sources)
-   [BroadNet Inference API reference, reasoning and cached tokens](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-llm-api-pricing-explained&utm_content=sources)
-   [OpenAI reasoning guide, how reasoning tokens are billed (fetched 2026-11-14)](https://developers.openai.com/docs/guides/reasoning)
-   [OpenAI Help Center, what are tokens and how to count them (fetched 2026-11-14)](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them)
