Topic
Cost and FinOps
Estimating, attributing, forecasting and controlling provider spend: unit economics, budgets, caching and the practice of AI FinOps.
42 articles · Last updated
Start with
Cost & FinOps
Reconcile your AI bill: estimate vs. provider invoice
Your gateway's cost figure is a model of a price list, not a measurement of a charge. The two are rarely compared, and the gap is where an unmodelled rate hides for a quarter.
AnalysisUpdated 16 min read
Cost & FinOps
The production LLM cost optimization playbook
Durable cost control is unglamorous: measure cost per successful task, remove wasted tokens, use the caching and batch pricing providers already publish, answer exact repeats once, right-size models with evidence, cap the worst case, and check estimates against invoices.
GuideUpdated 12 min read
More in this topic
Cost & FinOps
What server-side tools cost an AI agent: search, fetch, sandboxes
An agent that searches the web pays twice: a fee per search, and the tokens the results add to every later turn. DeepSeek starts billing its server-side tool calls on 31 October. Here is what each provider charges for hosted tools, how to count calls, and the parameters that cap them.
Guide7 min read
Cost & FinOps
Introductory AI model prices: how to budget for the step-up
Several of the models teams are adopting this quarter carry a rate with an end date: Gemini 4 Argon until 30 November, Gemini 3.8 Flash until 31 December, a GPT-5.6 Sol promotion with only a minimum date. A forecast that uses today's rate is wrong by the time the money is spent. Here is how to build the step into the numbers, the contract questions to ask, and the alerts to set.
Guide9 min read
Cost & FinOps
AI ROI metrics for CEOs: what to measure and report monthly
AI spend is easy to count and hard to judge. Return comes from a short ladder of metrics, from adoption to cost per successful outcome to margin, reported the same way every month. This guide defines each one, shows the arithmetic, and gives a board report you can copy.
Guide9 min read
Cost & FinOps
OpenAI's 12-hour prompt cache: when the 2.5x write pays off
Since 20 October the Responses API can keep a prompt prefix cached for at least 12 hours, at the price of a write that costs 2.5 times the input rate. Here is when that pays, how it compares with the 30-minute default, Anthropic's one-hour cache and Gemini's explicit caches, and how to check it is working.
Guide8 min read
Cost & FinOps
AI cost management for finance teams: which tool fits which job
Finance teams evaluating AI cost management are usually choosing between two kinds of tool without being told so: FinOps platforms that read the provider's bill after the fact, and gateways that see and can refuse each request. This guide sorts the options by that difference, with each product described from its own documentation.
ComparisonUpdated 10 min read
Cost & FinOps
Best AI gateway for startups in 2026: seven options compared
A funded AI startup has customers on usage, a gross-margin line investors read, and no time for a provider outage. This guide compares OpenRouter, LiteLLM, Cloudflare, Vercel, Requesty, Bifrost and INFRO on the questions that decide it, each described from its own documentation.
ComparisonUpdated 8 min read
Cost & FinOps
Detect AI API usage that bypassed your gateway
Your gateway can only report the traffic it served. The provider reports all of it. Read both per API key and per day, and the difference names keys used somewhere else: a leak, a script, a team going direct. The endpoints, the fields, a working script and how to read the result.
Guide8 min read
Cost & FinOps
AI provider spend limits compared: what actually stops
A stolen provider key never passes through your gateway, so the only limits that apply to it are the provider's own. Six providers, read on the same day: which limits refuse a request, which only send an email, and how long each takes to act.
Comparison10 min read
Cost & FinOps
AI feature unit economics: cost per user and gross margin
SaaS margins were built on software that costs almost nothing to run per extra user. AI features break that: every use has a provider bill. Here is how to measure cost per user, why the average lies, and which levers actually move the margin.
Guide6 min read
Cost & FinOps
Claude API pricing (Nov 2026): Fable 5, Opus 5.5, Sonnet, Haiku
Anthropic's rate card now has per-model cache multipliers, a prompt-length tier on Haiku 5.5, Fast mode on three Opus models and a 1.1x multiplier for US-only inference. And a new tokenizer means a lower rate does not always mean a lower bill.
GuideUpdated 13 min read
Cost & FinOps
How to count tokens before you call the API: OpenAI, Claude, Gemini
A local tokenizer gets plain text right and almost everything else wrong: tools, images, PDFs, message formatting, and the tokenizer change between model generations. Each major provider now has a counting endpoint. Here is how to use them, and what they still cannot tell you.
Guide6 min read
Cost & FinOps
Gemini API pricing in 2026: Flash, Pro, Argon and the free tier
Several Gemini prices are already scheduled to double: Gemini 4 Argon on 1 December 2026, Gemini 3.8 and 3.6 Flash on 1 January 2027. Here are the current rates, the dates, and what the free tier costs you that is not money.
Guide6 min read
Cost & FinOps
Metering AI usage for usage-based billing: units, events, Stripe
Charging customers for AI usage looks like a pricing decision and turns out to be a data problem: which unit to bill, how to record it exactly once, what to do with failed and retried requests, and how to get it into a billing system before the invoice closes.
GuideUpdated 9 min read
Cost & FinOps
OpenAI API pricing in 2026: GPT-6 tiers, Batch, Flex and Fast
The rate card has more columns than it used to: cached input, cache writes, a long-context tier above 272K tokens, Batch, Flex, Fast mode and a regional uplift. Here is how each one changes the bill, with three requests worked through.
Guide7 min read
Cost & FinOps
Per-customer AI usage limits: rate, token and spend caps for SaaS
One customer's script, one stuck agent or one free-trial abuser can spend more on your provider account in an afternoon than the account pays you in a year. Per-customer limits are the fix. Here is how to design them so they hold under load and read well to the user who hits one.
Guide6 min read
Cost & FinOps
AI budget planning for 2027: a forecasting method
October is planning season. A practical method for platform and finance leaders to build next year's AI budget from data they already have: provider usage and invoices, cost per unit of work, the drivers that will change it, and the guardrails that keep the year inside the plan.
Guide8 min read
Cost & FinOps
Coding agent costs for teams: Claude Code, Codex and caps
Two ways to pay for coding agents, the mechanics that make an agent session expensive, and a working plan for measuring spend per developer, repository and project, then capping it before the provider call.
GuideUpdated 16 min read
Cost & FinOps
Do AI gateways reduce API costs? What they can and cannot change
A gateway does not change what your provider charges per token. It changes which requests reach the provider, which model serves them, and whether anyone notices a runaway loop before the invoice does.
Guide6 min read
Cost & FinOps
Managing AI API costs across OpenAI, Anthropic and Google
Three providers means three bills, three billing units for caching, three cost APIs and three sets of limits. The work is making them comparable before you try to make them smaller.
Guide7 min read
Cost & FinOps
How to see the cost of every LLM request
Providers report cost by day and by account. The cost of one request is something you compute, and the three ways it goes wrong are the rate, the cache fields and the requests you never saw.
Guide6 min read
Cost & FinOps
AI gateway pricing models: markup, fees, requests, subscription
Two gateways with similar features can charge on entirely different things: what you buy through them, what your models cost, how many requests you send, or nothing at all. The base of the fee decides how it grows.
ComparisonUpdated 11 min read
Cost & FinOps
Does an AI spend cap hold under 500 concurrent requests?
A spend cap that checks a running total and then serves the request will be passed by a burst. Here is why, how a reservation-based cap is built instead, and what a sandbox test of one did and did not show.
MethodologyUpdated 13 min read
Cost & FinOps
The AI spend report leadership actually reads
Most AI cost dashboards are built for the engineer who configured the gateway. A CFO or CTO needs four answers on one page, once a week, with the reason behind each. Here is what to put in the report, which period to use, who gets which alert, and how to give finance budget rights without engineering access.
GuideUpdated 12 min read
Cost & FinOps
Estimate LLM cost before the request, not after the bill
Every AI provider bills after the work is done, but budgets, cost previews and model choices have to be made before it. Here is how to estimate a request's provider cost for each modality, which parts are known, bounded or unknown, and how to use each kind of number.
GuideUpdated 12 min read
Cost & FinOps
LLM response caching: when exact-match pays, when it's wrong
A response cache answers a repeated request without calling the model at all. That is only correct when everything that decides the answer is in the key, the answer was meant to be fixed, and it is still true when it is replayed.
GuideUpdated 13 min read
Cost & FinOps
LLM spend limits compared: who caps spend on your own keys
A spend limit is only as good as what it counts and when it counts it. Ten products' own documentation, read on the same day, answer six questions differently.
ComparisonUpdated 12 min read
Cost & FinOps
How Jev cuts the cost of AI decisions: the arithmetic
A classification on a chat model pays for input, for the JSON answer and often for reasoning tokens. Jev pays for input only. Here is the arithmetic at published rates, where the gap is large, where it is small, and how to measure the number that decides.
AnalysisUpdated 9 min read
Cost & FinOps
Showback and chargeback for AI spend
Provider invoices arrive per account, not per team. Showback and chargeback for AI spend depend on tagging every request at the source, booking it with rules finance can audit, handling shared costs openly, and closing each month so it never moves.
Guide7 min read
Cost & FinOps
Batch or synchronous: which LLM workloads should move
Batch APIs bill at half the synchronous list rate in exchange for time. The trade is excellent for some workloads and wrong for others. This guide sorts them, lists each provider's limits, and shows the code that submits, polls and matches results.
GuideUpdated 8 min read
Cost & FinOps
Cost per successful task: the LLM metric that matters
A model with a lower list rate can cost more per finished piece of work if it fails more often. Cost per successful task puts every attempt, retry and fallback in the numerator and only the work that succeeded in the denominator.
GuideUpdated 8 min read
Cost & FinOps
Five LLM spend anomalies and the signal each leaves
A spike in AI spend is rarely just more traffic. Five patterns account for most surprises, and each leaves a different fingerprint in request metadata days before it shows up on an invoice.
Analysis8 min read
Cost & FinOps
Negotiated rates vs list price: why AI cost estimates drift
A cost estimate is only as good as the rate behind it. List prices are public and easy to load; the rate your contract carries, the tier a request ran on and the date a price changed are not. Here is where the drift comes from and how to pin it down.
GuideUpdated 8 min read
Cost & FinOps
Prompt caching across providers: when it pays
A cache read costs a fraction of an input token, but on some providers the write costs more than one. Whether caching lowers your bill depends on how often a prefix is reused inside its lifetime, and the threshold differs by provider.
AnalysisUpdated 8 min read
Cost & FinOps
Reasoning tokens: the hidden cost of thinking models
Thinking models generate tokens you never see and bill every one of them at the output rate. The visible answer can be a small part of the bill. This guide shows how each provider counts reasoning, and the controls that bound it.
GuideUpdated 8 min read
Cost & FinOps
Reconciling estimated LLM spend with provider invoices
Your per-request cost figures are an estimate. The provider's cost API is closer to the invoice. This guide shows how to pull both into the same daily shape, compare them without fooling yourself, and name the cause of a gap.
GuideUpdated 8 min read
Cost & FinOps
Attributing AI cost to customers, features and teams
The provider's finest unit of cost is an account structure you created for its convenience. The dimensions your business runs on — customer, feature, team — only exist where the request passes through something you control.
GuideUpdated 13 min read
Cost & FinOps
Tokens are not the unit you are billed in
Every AI cost dashboard multiplies a token count by a rate. Both terms are less solid than they look — and the count, which almost nobody audits, is the one that has been quietly redefined underneath you.
AnalysisUpdated 15 min read
Cost & FinOps
LLM FinOps: control AI spend without slowing product teams
LLM FinOps is the operating system around inference spend: ownership, allocation, budgets, anomaly response, and quality-adjusted unit economics.
BriefUpdated 2 min read
Cost & FinOps
LLM spend controls: budgets, alerts, and hard limits
Budgets should guide normal growth and contain abnormal behavior. Use scoped alerts for humans and hard ceilings for the failure modes that cannot wait.
BriefUpdated 1 min read
Cost & FinOps
AI API pricing explained: tokens, media units, and real cost
List price is only the start. Real inference cost depends on input/output mix, retries, context, cache behavior, media settings, and success rate.
BriefUpdated 1 min read