Operator manual · General
LLM API Pricing Compared: Costs by Provider for 2026
In short
LLM API pricing compared across providers, with input and output rates per million tokens, batch discounts and the real cost per finished task.
DBotMaker research desk · Updated December 6, 2026 · 15 min read

Sorting an API catalog by the lowest price per million input tokens looks like the rational buy. It is the wrong unit. The invoice is the cost of a finished, verified task, and that cost can rise while the posted token rate falls.
Published token rates have dropped sharply since 2022, so raw price tables look simpler than the bills they produce. A lower rate only shrinks one term. The rest of the equation is how many tokens a completed job consumes: longer prompts, a separate charge for generated output, cached-input pricing, extra reasoning tokens, and a second pass when the first answer fails a check.
LLM API pricing has to be modeled as a workload, not read off a single cell. A support reply that once closed in a short completion can, on a newer rate card, emit a long reasoning trace and then retry. Multiply that larger token count by a cheaper rate and the monthly bill still climbs, because volume grew faster than the rate fell.
Engineering and finance should price the finished task before production code is written. The per-token quote is an input to that model, not the budget.
Table of Contents
- Pick the Cheapest Model That Passes Your Quality Bar
- Current Token Rates and Batch Discounts Side by Side
- Input and Output Rates Across Major Providers
- Hidden Charges That Change the Bill
- How to Model Cost per Finished Task
- Why the Cheapest Token Rate Can Cost More per Task
- Which Pricing Path Fits Each Workload
- Confirm the Cost per Task Before You Commit
Pick the Cheapest Model That Passes Your Quality Bar
For most organizations, the right call is direct: pick the lowest-priced model that clears your own quality bar on a sample of real prompts, then move every job that can wait onto a batch tier. Stopping at the cheapest headline rate ignores how modern API rate cards meter usage.
A single per-token quote never describes an invoice. Providers price LLM API pricing per million tokens and split charges across separate input, output, and cached-input buckets, while layering distinct service tiers on top. Two models with identical input pricing can produce very different bills if one writes longer replies or charges far more for generated output.
Why Quality-Adjusted Cost Beats Nominal Rates
Choosing a cheaper model that fails more often shifts spend from the token line to retries, extra tool calls, and human cleanup. A systematic economic study joining 21,024 posted API prices with 4,605 benchmark scores, published in an arXiv economic analysis of LLM pricing, found that the price required to reach a fixed frontier capability fell by roughly 5 to 10 times per year across knowledge, reasoning, mathematics, and software engineering benchmarks. That study separates technical efficiency from spending more compute at inference time, underscoring why buyers must pair capability scores with total workflow spend rather than sorting a leaderboard by token rate alone.
From this point forward, measure every candidate using one unit: cost per successfully completed task. Calculate it by dividing total dollars spent by the number of tasks that pass your quality check. A model charging twice as much per million tokens wins on budget if it resolves support tickets on the first attempt while a cheaper rival needs three loops and a human escalation.
The Evidence Standard for Comparing Providers
Every rate cited in this analysis comes directly from a seller's public pricing page or a named study, paired with the source and date checked. DBotMaker compares documented features and published prices and doesn't perform hands-on testing, so rankings rest on verifiable rate cards and documented limits rather than private benchmark claims.
Before comparing vendors, put three inputs on one page for each candidate model:
- Workload definition: State the exact job (ticket resolution, document extraction, or code review) and the pass criteria that separate a usable output from a failure.
- Token mix: Estimate typical input tokens, generated output tokens, and the portion of prompt text that repeats across calls.
- Quality threshold: Set the minimum accuracy required on a representative batch of internal prompts so unqualified low-cost models drop off the shortlist immediately.
Current Token Rates and Batch Discounts Side by Side
A 50% lower token rate does not cut the cost of a finished task by half. OpenAI's card is a clean single-vendor reference because it prices input, output, and cached input in the same unit on every tier. The OpenAI API pricing page lists GPT-6.2 Sol in US dollars per 1 million tokens, checked in 2026.
| Tier | Input | Output | Cached input | Example workload cost |
|---|---|---|---|---|
| Standard | $2.00 | $10.00 | $0.10 | $4.00 |
| Batch | $1.00 | $5.00 | $0.05 | $2.00 |
| Batch saving | 50% | 50% | 50% | 50% |
Those figures are the US dollar amounts on the seller's page on the check date. A price listed in another currency stays pending rather than getting an informal conversion. Batch rates apply only to asynchronous Batch jobs, not to synchronous real-time calls.
Reading the Worked Example
Output length sets this bill. On GPT-6.2 Sol, output tokens cost five times input ($10.00 versus $2.00 per million). Cached input runs the other way: at $0.10 per million, it costs one-twentieth of standard input and one-hundredth of output.
Take 1 million input tokens and 200,000 output tokens, with no cached input and no tool fees. Standard is 1 million input at $2.00 plus 0.2 million output at $10.00, or $4.00. Batch is 1 million input at $1.00 plus 0.2 million output at $5.00, or $2.00. Every bucket falls 50%, so the token line is cut in half before other charges.
That $2.00 is a token subtotal, not the cost of a task that passed. Batch is asynchronous. If the output misses the quality bar and the job runs again, two Batch passes cost $4.00, the same as one Standard pass. The cheaper rate then buys the same spend, or more, once failed attempts sit in the denominator of cost per finished task.
Cache shifts the mix without touching the expensive line. Replacing repeated input at $2.00 with cached input at $0.10 shrinks that input line to 5% of list, while output stays at $10.00 per million. Longer answers raise the output share, and the cache saving cannot offset it. The list rate can fall while the bill for a completed task rises.
Input and Output Rates Across Major Providers
A 600-fold fall in headline input prices still leaves the bill for a finished task unsettled. An arXiv historical pricing analysis puts OpenAI's June 2020 GPT-3 launch near $60 per million input tokens and a February 2025 reading of Google Gemini 2.0 Flash near $0.10 per million input tokens. That account describes a market that grew to dozens of providers and hundreds of models, with list prices spanning about four orders of magnitude. Those two input figures do not share a date, a documentation type, or a capability tier, and neither quote supplies a matched output rate or a cached-input rate.
Only one card in this comparison publishes input, output, and cached input together:
| Provider and model | Tier | Input (per 1M) | Output (per 1M) | Cached input (per 1M) |
|---|---|---|---|---|
| OpenAI GPT-6.2 Sol | Standard | $2.00 | $10.00 | $0.10 |
Output on that card is priced well above input. Cached input sits far below both. Set the older Flash input quote beside this card's input rate and Flash looks far cheaper before a single answer token is priced. An output-heavy task, or a run of cache misses that restores full input charges, can reverse that ranking. Lower list prices and more tokens per finished answer can move the invoice in opposite directions.
Filling Your Rate Table Without Guesswork
Build the comparison on published cells only.
- Open each provider's pricing page and copy the input, output, and cached-input rates for the tier the workload will call.
- Write the check date and the listed currency next to every figure.
- Leave a cell empty when the page does not publish that rate. A third-party recap is not a substitute for the missing output or cache price.
- Apply the completed rows to one finished task with a fixed input length, output length, and cache-hit share. Compare those task totals, not the lowest input rate.
Hidden Charges That Change the Bill
A low list rate can still make a finished task expensive. The bill follows every token the workflow spends before a result passes, not the rate beside a short demo reply.
Advertised input and output prices omit mechanisms that widen production spend. The LLM Cost Lab hidden-costs analysis names four that routinely lift invoices above a first spreadsheet: reasoning tokens billed as output, long-context surcharges, cache-write fees, and per-call search or code-tool charges.
Reasoning tokens open the widest gap between the reply a user reads and the tokens an invoice counts. A two-sentence answer can sit on thousands of internal reasoning tokens, each billed at the higher output rate. The visible text is the small part of the charge.
Retries apply the same multiplier. A JSON payload that fails validation, a tool that returns an error, or an agent that takes four planning turns instead of one pays full input and output again on every repeat. The failure rate of the workflow scales cost per finished task. Several cheap retries can outspend one clean pass at a higher rate.
The infographic below lists the non-headline items to audit before a provider estimate is treated as final.

Secondary Drivers That Quietly Shift Totals
Past reasoning overhead and retry loops, four fee-schedule rules change what a million tokens cost:
- Long-context repricing: A prompt that crosses a seller's published size threshold can reprice the entire request above the standard input tier. Extra documents then raise the rate on tokens that would have stayed in the cheap band.
- Cache-write fees: Storing repeated context in a provider cache often costs more per token up front than a normal input. Caching lowers the bill only after that same prompt is reused enough times to cover the write.
- Per-call tool charges: Built-in web search, code execution, or grounding often adds a fixed fee on every invocation, stacked on top of token charges.
- Tokenizer differences: Tokenization is not shared across vendors. The same customer document or code file can split into more tokens on one platform than on another, so equal source text does not mean an equal bill.
Why Falling Token Prices Still Produce Rising Bills
Headline per-token prices have fallen while monthly API spend has kept climbing. Cheaper units did not shrink the work. They changed what teams put into each call.
Lower rates make it easy to pack larger document sets into prompts, chain multi-step agents, and leave deep reasoning on by default. Token volume then grows faster than the unit price falls, and the invoice rises even as the rate card looks better. A model that is inexpensive on a short chat turn becomes the costly option once long-context retrieval and multi-turn orchestration are required to finish the task.
Confirm each charge above on the provider's fee schedule before you treat a token rate as the price of a completed job. Mark which ones the workload triggers, and write the billing rule beside every shortlisted model. The rate that wins on a price page is not the rate that wins on a task that reasons, retries, and calls tools.
How to Model Cost per Finished Task

A million-token sticker price does not forecast the bill. Cost the whole workflow, from the first prompt to a verified pass, using the six-step process below.
Run the same six lines on a spreadsheet for every finalist on the shortlist. The unit is one finished task, not one API call.
- Define one finished task and its pass check. Name a concrete business unit, such as one resolved customer support ticket or one qualified sales lead, and write the validation check that marks it complete. Without that pass test, cheap wrong answers distort unit economics.
- Measure full prompt and output token volumes. Count the system prompt, retrieved documents, conversation history, and user query as input tokens. Estimate average output length on its own. Generated tokens usually carry a steep rate multiplier, so a short answer and a long one are not the same line item.
- Estimate prompt repetition for caching. Mark the share of the input that stays identical across requests: policy manuals, tool schemas, coding guidelines. Only that repeating slice qualifies for lower cached-input rates instead of standard input pricing.
- Add tool calls, reasoning depth, and a retry multiplier. Count every external tool invocation, internal reasoning turn, and expected failure retry per task. A single-agent or multi-agent design changes that count, because handoffs add calls. Multiply raw token volume by the failure-driven retry rate so complex workflows are not under-budgeted.
- Split workloads by latency tolerance. Put offline or scheduled work on asynchronous batch tiers. Keep user-facing traffic on synchronous standard tiers. One blended rate hides the savings on back-office jobs.
- Calculate cost per passed task. Multiply each token bucket by its tier rate, add tool fees and cache-write fees, then divide total spend by the number of tasks that pass the quality check. That divisor, passed tasks rather than raw API calls, is the operational cost.
Testing Assumptions With a Sensitivity Range
One baseline rarely survives live traffic. After the worksheet is built, stress the two inputs that drift most: retry rate and prompt length.
Modeling rule: A single cost-per-task number hides risk. Publish a low-end and a high-end estimate from prompt growth and retry rates before picking a model.
Recompute under an optimistic case (short prompts, high first-pass accuracy) and a stressed case (longer retrieval context, more failure retries). Check whether the winning model flips. The gap between the cheapest case and the most expensive case is the budget exposure engineering and finance should see before deployment.
Why the Cheapest Token Rate Can Cost More per Task
A model priced at half the token rate of its rival can still deliver the more expensive finished task. Independent leaderboards such as the Artificial Analysis LLM Performance Leaderboard report wide gaps between headline token prices and what a completed task costs, with completion times and first-answer-token latency varying just as sharply across models. Token price is one input into the bill, and often not the decisive one.
The cheapest token rate rarely produces the cheapest finished task.
Those leaderboards measure far more than input and output rates. They track cost per task, total completion time, first-answer-token latency, error rate, context window capacity, and separate rates for cached inputs, cache writes, reasoning tokens, and generated outputs. Slow completion, repeated errors, and long reasoning chains multiply token consumption, pushing operational spend far past what a per-token rate table predicts.
The comparison visual below highlights how balanced task performance outperforms rock-bottom token pricing when latency and completion quality enter the equation.

Production Metrics That Decide Real Spend
When comparing candidates for live deployment, track five operational indicators alongside published rate cards:
- Cost per successfully completed task: Captures combined token spend, reasoning overhead, and retries for outputs that pass validation.
- p50 and p95 time to first token: Measures typical and tail wait times before a user sees the first character arrive.
- Output tokens per second: Shows streaming speed once generation starts, which shapes user patience on long answers.
- Error and retry rate: Quantifies timeouts, rate-limit failures, and invalid structured responses that force duplicate API calls.
- Caching and batch impact: Reflects how much discount your specific prompt-reuse ratio and latency tolerance provide.
Latency often settles the vendor choice on its own. Live chat interfaces and interactive workflows cannot wait for asynchronous batch queues, and teams weighing an AI agent versus a chatbot face sharper speed constraints whenever multi-step tool calls stack latency across turns. A cheap model that takes twice as long per step costs twice as much in user patience on every turn.
Before signing an annual commitment, run an identical sample of real production tasks through your top two candidates and put cost per passed task next to p95 latency. The winner is the model that clears your latency ceiling at the lowest cost per verified outcome.
Which Pricing Path Fits Each Workload
Matching every workload to the right execution tier saves more money than chasing marginal differences between competing standard rate cards. Use the routing table below to assign common production jobs to the tier that matches their timing and volume profile.
| Workload | Pricing path | Reason |
|---|---|---|
| Offline evaluation or bulk classification | Batch tier | Stated 50% discount; results can arrive asynchronously |
| Scheduled document processing | Batch tier, split into several batches | Each batch holds up to 50,000 requests and an input file up to 200 MB |
| Live chat or customer support | Synchronous standard tier | Needs an immediate response, which batch cannot serve |
| Latency-sensitive agents reusing a long system prompt | Synchronous standard tier with cached input | Immediate response plus a lower rate on repeated prompt text |
As documented in the OpenAI Help Center Batch API FAQ in 2026, the Batch API offers a 50% cost discount compared with synchronous API rates in exchange for asynchronous processing. A job that costs $100 through synchronous calls drops to $50 through Batch for the exact same model and token volume.
Batch pricing trades speed for money, cutting the token bill in half only when a workflow can wait for asynchronous results.
The comparison visual below outlines how synchronous and batch paths align with common workload types and where the waiting-time trade-off applies.

Sizing Batches and Caching Long Prompts
Engineering teams moving bulk work to asynchronous processing need to plan around documented batch ceilings. OpenAI's FAQ specifies that a single batch holds up to 50,000 requests and an input file up to 200 MB, so high-volume back-office pipelines must split large datasets into multiple queued batches rather than sending one monolithic file.
Interactive workloads can't absorb asynchronous delays. Customer-facing chat, live triage desks, and real-time voice or browser agents belong on synchronous tiers where immediate responsiveness protects user conversion and retention.
When those real-time agents repeatedly send long instructions, policy documents, or tool definitions, cached input becomes the primary cost lever. Because cached tokens bill at a small fraction of standard input rates, architectures with heavy static context save substantially without sacrificing response speed. Teams deciding between RAG and fine-tuning should weigh those cached-input dynamics carefully, since retrieval pipelines with reusable prompt prefixes benefit far more from prompt caching than ever-changing uncached contexts.
Apply one consistent routing rule across your entire product stack: classify each workload by latency requirement first, request volume second, and rate card third.
Confirm the Cost per Task Before You Commit
A lower token price can still produce a higher bill when more retries, longer outputs, or the wrong billing tier sit underneath it. The final check is therefore cost per finished task, not the headline rate on a pricing page.
Run four decision-day checks before deploying a provider into production:
- Reopen every vendor's live pricing page on decision day. Copy each rate used in your cost-per-task sheet from the seller's own page, recording the page name, exact date checked, and listed currency.
- Verify exact tier eligibility. Confirm whether your calls qualify for Standard, Batch, or cached-input billing, because a synchronous workload modeled at batch rates turns a cheap estimate into an unusable budget.
- Compare your two finalists on sample-run results. Select the model that achieves the lowest cost per passed task while staying under your p95 latency ceiling. A model with a higher per-token rate can still win if it needs fewer retries and produces usable answers on the first pass.
- Archive a dated decision log. Save the pricing snapshot, workload assumptions, and sensitivity range together so the team can re-evaluate quickly whenever sellers revise their fee schedules.
Keep the check tied to the workload. Count input tokens, output tokens, retries, and any static prompt context that can be cached. Then divide the measured spend by the number of tasks that pass your quality and latency requirements. That figure is the one procurement and engineering can both use.
Published API rates shift frequently as providers release new tiers, adjust long-context thresholds, or retire older model snapshots. Use DBotMaker's published LLM API comparisons to narrow the shortlist to two models, then run a sample batch of real prompts through both using the cost-per-task worksheet above. Before signing off, verify current Standard, Batch, and cached-input rates directly on each provider's live pricing page, and send any newly spotted price changes, plan updates, or category requests to editorial@dbotmaker.io.
Cite this page
DBotMaker. LLM API Pricing Compared: Costs by Provider for 2026. Updated December 6, 2026. https://dbotmaker.io/llm-api-pricing
Spotted an error in this guide? Email editorial@dbotmaker.io