Insights
LLM Cost Optimization Starts With Ownership
A $180,000 monthly AI invoice is not a management report. It is an accounts payable problem waiting to become a budgeting problem. LLM cost optimization begins when an organization can answer a basic question for every meaningful charge: who used it, for what business purpose, and against whose budget?
That answer is often missing. A platform team may see API calls and token counts. Finance may see charges from several model providers, cloud platforms, and AI gateways. Business leaders may see new AI capabilities but no unit economics. Each view is valid, but none is sufficient on its own.
The practical goal is not to make AI usage artificially cheap. It is to make spend visible, attributable, and intentional enough that leaders can decide where more investment is justified and where controls are needed.
LLM cost optimization is a financial operating model
Most cost-saving discussions start with technical levers: choose a smaller model, shorten prompts, cache common responses, or set rate limits. Those can reduce a bill. They do not establish financial control.
A company can reduce total token consumption by 15% and still be unable to explain why marketing exceeded its AI budget, whether a customer-support agent is economical, or which cost center should absorb a shared platform charge. Without ownership, savings are hard to sustain because no one has a clear responsibility to protect them.
Treat LLM usage as a managed business resource. That means applying the same disciplines used for cloud, software, and professional services: defined owners, allocation rules, budgets, forecasts, variance review, and an accounting trail that can support close.
The order matters. First make usage attributable. Then measure costs by the units leaders actually manage. Then apply technical and financial controls. Starting with optimization before attribution can produce a lower invoice, but it rarely produces accountability.
Start with a usable cost data model
The source invoice is necessary, but it is not granular enough for chargeback or operational decision-making. A usable data model joins billing data with usage telemetry and organizational context.
At minimum, each LLM request or aggregated usage record should be associated with a provider, model, input and output usage where available, timestamp, environment, application or agent, project, team, and cost center. Add a customer, product line, or transaction identifier when it is appropriate and privacy-safe. That last layer is what makes unit economics possible.
Consider a claims-processing agent used by operations. A provider invoice may show $24,000 in monthly model charges. The useful management view separates the spend: $15,000 for production claim summaries, $5,000 for an internal review assistant, $2,500 for testing, and $1,500 for shared platform services. The production workload can then be divided by claims processed. If 300,000 claims were processed, its model cost was $0.05 per claim before other infrastructure costs.
That figure gives operations and finance something they can discuss. Is $0.05 below the labor or cycle-time value created? Has the cost risen because volume increased, because a model changed, or because the agent is generating longer outputs? A single vendor total cannot answer those questions.
Tag at the point of use, not at month-end
The strongest attribution method carries business identifiers with the request through the AI gateway, application instrumentation, or cloud usage record. Retrofitting ownership after an invoice arrives creates exceptions, estimates, and arguments over shared costs.
Use a small set of required fields rather than an ambitious taxonomy that teams will bypass. Team, cost center, application or agent, environment, and project are usually enough to establish control. If a request lacks required ownership metadata, route it to a shared holding category and report it as unallocated. Unallocated spend should be visible, assigned an owner, and reduced over time.
Allocate shared AI costs with rules people can defend
Not every dollar can be directly assigned. A central AI platform may pay for gateway services, observability, evaluation environments, or a shared retrieval layer. These costs should not disappear into corporate overhead merely because direct measurement is inconvenient.
Choose an allocation driver that reflects the cause of cost and can be explained to budget owners. For shared AI costs, common approaches include:
- Direct assignment when an agent, team, or project is identifiable in usage records.
- Request volume when the shared service cost is driven mainly by transaction handling.
- Token volume when the service scales with model consumption or context processing.
- Active users or seats for internal tools with stable, user-based access patterns.
- An agreed fixed allocation for genuinely common platform costs that do not vary materially by usage.
There is no universal correct method. Token-weighted allocation may be fair for a shared model gateway but misleading for a tool whose cost is driven by active users. A fixed allocation is simple, but it can frustrate heavy users if it masks their incremental consumption. Document the chosen method, the rationale, the owner, and when it will be reviewed.
For financial reporting, distinguish direct usage from allocated shared costs. This prevents a team from disputing a charge because it cannot see which portion came from its own agent versus the common platform. It also gives platform leaders a clearer case for investments that lower shared unit costs.
Put controls where spend can change
Budgets without operating controls are after-the-fact reporting. The most useful controls act at different points in the spend lifecycle.
Before usage occurs, define approved providers, models, environments, and owners. A production agent should not be able to use an unapproved high-cost model simply because a developer changed a configuration. During usage, use budget thresholds, rate limits, and anomaly alerts that account for both dollars and behavior. A 40% increase in output tokens may matter even if the monthly budget has not yet been exceeded.
After usage occurs, review variance with the people who can act on it. Finance should not be asked to diagnose model behavior, and engineering should not be asked to invent accounting treatment during close. A useful review pairs finance questions with technical evidence: what changed, where it changed, who owns it, and whether the increase is tied to approved business volume.
Controls should be proportionate. A low-cost internal prototype needs a spending cap and an owner, not a lengthy approval workflow. A customer-facing agent processing regulated data or generating material monthly spend needs tighter environment controls, documented allocation, and a reliable audit trail.
Optimize the cost drivers after attribution is credible
Once costs are visible by workload, technical optimization becomes much more effective. The right question is not “Which model is cheapest?” It is “What level of model capability and response quality does this specific task require?”
A high-capability model may be justified for complex document analysis, while classification, routing, extraction, and first-pass drafting may perform adequately with a lower-cost option. The trade-off is quality, operational risk, and rework. Moving a workload to a smaller model is not savings if error handling consumes more labor or reduces customer outcomes.
Look for cost patterns that reveal design issues. Fast-growing output tokens can indicate overly broad instructions or agents that repeat context. Large input volumes may point to unnecessary history or retrieval results. Spikes in nonproduction environments can signal that testing is using production-scale configurations. Repeated requests may support caching, but only where freshness and data-handling requirements allow it.
Measure changes against a business unit, not only token totals. For a support agent, track cost per resolved case. For a sales workflow, track cost per qualified account or completed research brief. For an internal coding assistant, compare cost with adoption and documented productivity measures, while being careful not to claim causation from a loose correlation.
Forecast AI spend from demand, not last month’s invoice
Traditional budgeting often takes the latest invoice and applies a growth percentage. That is weak for AI because spend changes with usage volume, model selection, application releases, and provider pricing.
A better forecast starts with demand drivers. Estimate expected transactions, adoption, average requests per transaction, expected input and output consumption, and the model mix for each major workload. Then add shared platform costs and an explicit contingency for new use cases or pricing changes.
For example, if an onboarding agent is forecast to handle 80,000 sessions next quarter at an expected $0.18 per session, direct model spend is $14,400. If the team expects a 20% adoption increase after a product launch, forecast $17,280 before considering shared allocations. That is a more actionable forecast than assuming the prior quarter’s AI bill will rise by 20% across every workload.
Finance can use this model to set budgets by cost center. Technology leaders can use it to test the effect of a model change or feature rollout before production. Both groups can compare actuals to the drivers that mattered, rather than debating a surprise invoice after the fact.
Make the accounting path explicit
AI charges need an operational ownership model and an accounting path. At close, the organization should be able to reconcile vendor and cloud invoices to an allocation schedule, then produce the entries needed to record expense by department, project, or cost center.
A simple monthly entry might debit Customer Operations AI Expense for direct agent usage, debit Product AI Expense for product features, debit Engineering AI Expense for development activity, and credit Accounts Payable or accrued expenses for the total provider charge. Shared platform cost can be allocated separately using the documented driver. The exact accounts depend on the chart of accounts and materiality policy, but the principle is consistent: usage evidence should support the allocation.
This is where an Agent FinOps approach becomes practical. The objective is not another dashboard. It is a repeatable chain from request-level activity to team ownership, financial allocation, forecast variance, and bookable reporting.
The most effective next step is usually modest: identify the top three AI cost sources, map their largest workloads to owners, and expose the spend that is still unallocated. Once leaders can see that gap clearly, LLM cost optimization stops being a request to “spend less” and becomes a disciplined way to fund the AI work that earns its place in the budget.
Not sure which of your AI costs are being booked? Run the free Agent Spend Assessment.
Onaro Meridian is FinOps for agentic AI: the system of record that attributes, controls and books what AI agents spend.

Brian Diamond
Brian Diamond is a fractional Chief AI Officer and founder of Onaro. He has spent 30 years running infrastructure operations and founded LANStatus, a Connecticut managed services provider and Microsoft partner, in 2001. He holds a Chief AI Officer certification and writes the CAIO Brief on AI leadership for finance and operations.