How to audit your LLM spend in 30 minutes

Updated 4 July 2026 · first published 4 July 2026

Most teams do not know how their LLM budget breaks down. Costs hide behind provider dashboards that show totals but not attribution, token types that are billed at different rates, and usage patterns that shift week to week. This guide gives you a structured audit you can run in half an hour using tools you already have.

Step 1 - Gather billing data from providers

Export the last 30 days of usage from every LLM provider you use. For OpenAI, use the Usage API or download CSV from the dashboard. For Anthropic, pull from the Billing API. For Google, export from the Cloud Billing console. For self-hosted models, pull request logs from your inference server. Store everything in one folder. You need raw data, not summaries.

Step 2 - Normalize token counts across providers

Each provider counts tokens differently. OpenAI and Anthropic use their own tokenizers; Google uses SentencePiece. To compare, convert all counts to a common unit. The simplest approach: use each provider's published per-token price to calculate cost per request, then compare costs directly rather than raw token counts. This avoids tokenizer mismatch entirely.

Step 3 - Split by input, output, cache, and reasoning tokens

Providers charge different rates for different token types. Cached input tokens are typically 50% cheaper on OpenAI and Anthropic. Reasoning tokens (on o-series and similar models) can cost 2–4x standard output tokens. Break your spend into these four buckets: input, output, cached input, and reasoning. If your provider does not expose this split, estimate it from the model type and request pattern.

Step 4 - Attribute to teams and features

Map each API key or project to the team or feature that owns it. If you do not have key-level separation, use request metadata - headers, tags, or the user parameter that most providers support. The goal is a table: which team spends how much on which feature. Without this, you cannot hold anyone accountable for cost.

Step 5 - Identify the top 3 cost drivers

Sort by total spend descending. In most organizations, 80% of LLM cost comes from 3–5 usage patterns. Common drivers: a chatbot with long context windows, a code generation feature that uses expensive models for all requests, or a background enrichment job that runs on every document without filtering. Name them. This is where you focus optimization effort.

Step 6 - Calculate cost-per-task for key workflows

Pick your top 3 workflows. For each, divide total spend by the number of completed tasks. This gives you a unit economics number you can track over time. A customer support workflow that costs $0.12 per ticket is manageable. One that costs $1.40 per ticket needs attention. The absolute number matters less than the trend and the comparison between workflows.

Step 7 - Set up alerts for anomalies

Configure alerts at two levels: total daily spend (catches runaway jobs) and per-workflow spend (catches drift). Most providers support billing alerts natively. For cross-provider alerting, pipe your usage data into a dashboard or use a tool like MiMO that aggregates across providers. A simple rule: alert if any day exceeds 150% of the trailing 7-day average.

Quick Audit Checklist

StepTool neededTime estimateOutput
1. Gather billing dataProvider dashboards or APIs5 minRaw CSV/JSON per provider
2. Normalize tokensSpreadsheet or script5 minCost-per-request table
3. Split token typesProvider APIs with token breakdown5 minInput/output/cache/reasoning split
4. Attribute to teamsAPI key mapping or metadata5 minTeam-to-feature cost matrix
5. Identify top driversSort/spreadsheet3 minRanked list of cost patterns
6. Cost-per-taskTask count from app logs5 minUnit economics per workflow
7. Set up alertsProvider billing alerts + dashboard2 minAnomaly detection active

What to do next

This audit gives you a snapshot. The real value comes from running it regularly - weekly for high-spend teams, monthly for everyone else. Automate the data collection and make the cost-per-task metric a first-class product metric. If you want help building this into a continuous process, MiMO provides cross-provider dashboards and automated attribution out of the box.

Related


Want this applied to your own LLM spend? FinOps LLM runs a free audit of your AI costs and shows where the savings are. Book free audit →

Back to research