FinOps for AI is the practice of allocating, measuring and cutting what you spend on model APIs, GPUs and AI tools, then tying that spend to business value. The FinOps Foundation calls AI "core FinOps work," and its 2026 survey found 98% of 1,192 respondents manage AI spend. Without a FinOps team, start with tagging and the invoice.
Prices checked on November 28, 2026, from Anthropic's pricing page and OpenAI's pricing page.
A founder or finance lead can run a first version in 30 days with an admin key, a tagging change in your code and a spreadsheet. The plan at the end lays it out week by week, and the numbers it produces feed our guide to AI unit economics.
What the FinOps Foundation says about FinOps for AI
The FinOps Foundation's FinOps for AI overview, updated October 28, 2026, says most cloud FinOps practice carries over to AI. It names three differences: tokens are an unfamiliar pricing unit, prices change often, and people outside IT now drive spend. It also warns that direct provider bills often arrive without the tags that cloud bills carry.
The Foundation's State of FinOps 2026 survey, released February 19, 2026, found the share of respondents managing AI spend rose from 31% to 98% in two years. The overview groups the work into four domains:
- Understand usage and cost: bring in every AI bill, map each API key to an owner, and tag production apart from experimentation.
- Quantify business value: set a cost baseline, build unit economics, and forecast with Finance.
- Optimize usage and cost: right-size models, use tokens with care, and negotiate rates once you understand usage.
- Manage the practice: name one accountable owner.
Its maturity model runs Crawl, Walk, Run. At Crawl, tracking is manual; by Run, leadership sees unit economics and ROI. If your product already depends on AI while your spend tracking lives in a spreadsheet, you are at Run on product and Crawl on cost, and the plan below closes that gap.
How to allocate AI cost by customer, feature and model
Allocation means every dollar on the AI bill has an owner. Provider reports split cost by the things the provider knows about: API key, project or workspace, and model. Neither OpenAI nor Anthropic knows which of your customers or features made a call, so that split has to come from your code.
| Dimension | Where it comes from | In the provider's reports |
|---|---|---|
| Model | The provider, on every call | Yes. Anthropic's cost report carries it in the description; OpenAI's activity data groups by model |
| API key, project or workspace | How you set up your provider account | Yes, on both |
| Production or development | Separate keys, projects or workspaces | Yes, once you separate them |
| Feature | A tag your code adds at the call site | No |
| Customer | Your billing customer ID, added at the call site | No |
Source: Anthropic's Usage and Cost API documentation and OpenAI's help center on usage exports.
Tag at the call site. Each model call should carry the billing customer ID (the Stripe customer, for example), a feature name and the model. Price each call from its token counts at the provider's published rates, with cache reads and cache writes included, then sum by customer, feature and model. The FinOps Foundation recommends showback, reporting cost to whoever caused it, before chargeback. For a company that sells AI, showback is the per-customer view your pricing owner reads each week.
Two kinds of usage need a decision before you roll up. Calls from evals, scripts and the Console playground belong to R&D on their own keys, and Anthropic reports playground usage with no API key ID at all. Free-tier usage needs its own line, as covered in SaaS COGS when you sell AI.
How to tie AI cost out to the OpenAI and Anthropic invoices
Tie-out means your tagged cost and the provider's bill agree within a tolerance you set, such as 2%, before anyone uses the number. If you skip it, every unit metric downstream carries the error.
- Pull the provider's cost for the same window. Anthropic's Usage and Cost API takes an Admin API key and returns daily cost in USD, grouped by workspace or by description. Anthropic now marks that API as legacy and points new integrations to its Usage and Cost Analytics API. OpenAI's help center says to export cost data grouped by line item, with dates set to the invoice service period in UTC. From April 1, 2026, OpenAI Enterprise invoices no longer itemize API costs, so the export holds the detail.
- Compare tracked and billed cost by model and by day, so each gap points to a date and a model.
- Explain each gap. The common causes are untagged calls from scripts or internal tools, playground usage, a stale price table, credits or discounts, and time zones. Anthropic's cost endpoint also leaves out Priority Tier, which uses a different billing model.
- Book the invoice amount, split between COGS and R&D by key or project.
| Provider | Tracked from tags | Invoice | Gap | Cause |
|---|---|---|---|---|
| Anthropic | $6,020 | $6,180 | $160 | Eval script on the production key ($120), playground use ($40) |
| OpenAI | $2,905 | $2,940 | $35 | Nightly batch job with no customer tag |
| Total | $8,925 | $9,120 | $195 (2.1%) |
Example data. One month for a product with 800 customers on a $49 plan.
Example. The eval script and playground use, $160 in all, move to R&D. The batch job serves customers, so its $35 stays in COGS as shared cost and gets a feature tag for next month. That leaves $8,960 of production AI cost in COGS.
Lancelot's Bill matching runs this check daily: it reads the OpenAI and Anthropic cost reports with an admin key, ties them to the cost Lancelot tracked per customer, and explains the gap. Once the numbers tie, Lancelot finds the customers driving cost and fixes them within limits you set, with a throttle, a cheaper model you approved in advance, or a hold to the plan's normal daily spend. Each action starts as a suggestion and has Undo.
How to track cost per customer and cost per task, then forecast
The FinOps Foundation lists cost per inference, cost per API call and cost per successful outcome, and it recommends reporting unit costs as distributions, since AI cost varies from run to run. For a company that sells AI, two units come first: the customer, who pays, and the task, which is what your product does.
Cost per customer
Example. The $8,960 of production AI cost across 800 customers averages $11.20 each, 22.9% of the $49 price. The spread is wide:
| Customer group | Monthly AI cost | Share of the $49 price |
|---|---|---|
| Median customer | $6.40 | 13.1% |
| 90th percentile | $24.80 | 50.6% |
| Top 1% (8 customers), average | $96.50 | 196.9% |
| All 800 customers, average | $11.20 | 22.9% |
Example data.
The eight heaviest customers cost almost twice what they pay. The provider bill can't show them, because it has no customer field, and they are the first accounts to act on.
Cost per task
Cost per task prices one unit of work, such as one support reply. A reply with 3,000 input tokens and 400 output tokens on Claude Sonnet 5.5, at $2 and $10 per million tokens, costs $0.0060 for input plus $0.0040 for output, or $0.010. If 360,500 of 412,000 replies meet your quality bar, cost per successful reply is $0.0114, the FinOps Foundation's cost per successful outcome.
A driver-based forecast
Forecast from drivers: customers, tasks per customer and cost per task. The FinOps Foundation advises shorter windows and more frequent revisions for AI forecasts than for cloud, so rerun yours weekly.
| Driver | This month | Next month |
|---|---|---|
| Customers | 800 | 880 |
| Support replies per customer | 515 | 515 |
| Cost per reply | $0.0100 | $0.0100 |
| Support reply cost | $4,120 | $4,532 |
Example data. 412,000 replies across 800 customers is 515 per customer.
Forecast heavy customers on their own line. The eight top accounts cost $772 a month together, and one new customer like them adds as much cost as 15 median customers.
Which optimization levers cut AI cost first
Optimize once allocation and tie-out work, so you can measure each saving. On the provider price pages, the FinOps Foundation's main levers compare like this:
| Lever | Price effect | Where it fits |
|---|---|---|
| Route simple tasks to a smaller model | Claude Haiku 5.5 costs $0.10 and $0.50 per million input and output tokens, against $2 and $10 for Sonnet 5.5: 20 times less | Classification, extraction, short replies |
| Prompt caching | Cache hits cost 0.05x the input price on Sonnet 5.5 and Opus 5.5, and 0.1x on most other Claude models; 5-minute cache writes cost 1.25x | Long system prompts and shared documents |
| Batch API | 50% off input and output on Anthropic; 50% below standard on OpenAI's flagship models | Evals, backfills, nightly jobs |
| Cap output length | Sonnet 5.5 output costs 5 times its input | Long, chatty answers |
| Per-customer limits | Keeps one account from driving the bill | Heavy users and runaway loops |
Source: Anthropic and OpenAI pricing pages, checked November 28, 2026. Haiku 5.5 prices apply to prompts up to 100,000 tokens; longer prompts cost $0.50 and $2.50.
Example. Caching 2,500 of the support reply's 3,000 input tokens on Sonnet 5.5 brings the reply from $0.010 to $0.00525 before cache writes: $0.0010 of uncached input, $0.00025 of cache reads and $0.0040 of output. At next month's 453,200 replies, the feature costs $2,379 instead of $4,532. If Haiku 5.5 meets the quality bar, the same reply costs $0.0005.
The FinOps Foundation defines the right model as the least expensive one that meets the task's quality bar, so test the smaller model on your own replies first. OpenAI's per-model rates are in OpenAI API cost.
A 30-day FinOps for AI starter plan
- Days 1 to 7, inventory and ownership. List every AI bill, from model APIs to cloud AI services and AI tools inside the product, and name one owner. Split production from development with separate API keys, projects or workspaces.
- Days 8 to 14, tag every production call. Add the billing customer ID, feature and model to each call, and price it from its token counts, cache reads and writes included.
- Days 15 to 21, tie out to the invoice. Run last month's tagged cost against the OpenAI and Anthropic cost reports by model and day, explain the gap, and tag the missing sources until the gap sits inside your tolerance.
- Days 22 to 30, unit metrics, a forecast and one lever. Publish cost per customer as a distribution and cost per task for your top feature, run the first driver-based forecast, and ship the lever with the largest measured saving. Set an alert for cost spikes per customer.
After day 30, review the numbers weekly with whoever owns pricing. Automated tracking and anomaly detection, the Foundation's Walk stage, come next.
Questions about FinOps for AI
What is FinOps for AI?
FinOps for AI applies FinOps practice to AI spend: allocating the cost of model APIs, GPUs and AI tools to owners, measuring unit costs, forecasting and optimizing. The FinOps Foundation treats it as core FinOps work and names tokens, volatile prices and new stakeholders as the main differences from cloud.
How do I start FinOps for AI without a FinOps team?
Name one owner, then work in order: separate production from development keys, tag every production call with customer, feature and model, tie the tagged cost to the provider invoice, and track cost per customer and per task. A founder or finance lead can finish a first pass in 30 days.
How do I allocate LLM costs to customers?
Add your billing customer ID, a feature name and the model to every model call in your code, then price each call from its token counts. Provider cost reports split by API key, project, workspace and model, and they have no field for your customers.
Why doesn't my tracked AI cost match the provider invoice?
The usual causes are untagged calls from scripts or internal tools, Console playground usage, an outdated price table, credits or discounts, and time zones. Provider reports use UTC, and Anthropic's cost endpoint leaves out Priority Tier. Compare tracked and billed cost by model and by day to find each gap.
What unit metrics should I track for AI spend?
Track cost per customer as a distribution, with the median, 90th percentile and top 1%, and cost per task for each main feature. The FinOps Foundation also lists cost per successful outcome: the total cost of all runs divided by the runs that meet your quality bar.
How do I forecast AI API costs?
Multiply drivers: customers, tasks per customer and cost per task, and forecast your heaviest customers on their own line. The FinOps Foundation advises shorter windows and more frequent revisions for AI than for cloud, so rerun the forecast weekly and compare it with actuals each month.
What cuts AI API costs fastest?
Routing simple tasks to a smaller model saves the most per call: Claude Haiku 5.5 costs a twentieth of Sonnet 5.5 per token. Prompt caching cuts repeated input to 0.05x or 0.1x of the input price, and Anthropic and OpenAI both discount batch work by 50%.
Allocation, tie-out and unit costs are the inputs to margin per customer and plan pricing, and our guide to AI unit economics shows how they fit together.







