LLM cost monitoring

Updated 11 June 2026 · first published 5 May 2026

LLM cost monitoring is the practice of tracking spend at request level, not just invoice level. If you cannot explain which feature, user, model, or retry pattern created the cost spike, you are not monitoring spend. You are only seeing the bill after the damage is done. Cost attribution starts here.

What to track on every request

Token classes are billed differently - track them separately

Token classBilling behaviorMonitoring pitfall if conflated
Input (uncached)Full list price per modelPrompt growth hides inside aggregate token counts
OutputPriced higher than input on most modelsVerbose-output drift looks like traffic growth
Cache readDiscounted (~50% OpenAI, ~90% Anthropic)Counting cache reads as normal input corrupts the baseline and overstates "savings"
Reasoning / thinkingBilled as output even though invisible to usersStandard token counts miss it entirely
Retry and tool-callEvery upstream attempt is billed, user sees one answerFailed and repeated work reads as legitimate usage
BatchDiscounted asynchronous laneMixing batch with realtime hides which workloads could move lanes

Use a consistent telemetry schema

OpenTelemetry's GenAI semantic conventions are a strong baseline because they standardize fields like model, input tokens, output tokens, cache-read tokens, conversation IDs, and provider names. That makes it easier to swap vendors or observability backends without rebuilding your data model every quarter. Define your schema first; the tooling (Langfuse, Helicone) will follow.

The dashboards that matter

Most teams overbuild their dashboard layer and underbuild their tagging layer. For cost attribution to work, start with these five views:

  1. Spend by feature. Top ten endpoints or workflows by total cost and cost trend.
  2. Spend by model and provider. Where the expensive models are actually being used and whether you are over-relying on one provider.
  3. Spend by customer or team. The foundation of chargeback and margin analysis.
  4. Input and output token trends. Detect prompt growth, verbose output drift, and whether cache-read benefits are real.
  5. Cache hit, retry, and tool-call rates. Three of the easiest places to find waste and validate optimization impact.

Alerts worth setting up

Monitoring rule

If your dashboard cannot tell you whether the spike came from prompt growth, model drift, retries, cached-token share changes, or one noisy customer, your instrumentation is still too thin.

A practical stack

For most teams, provider-native billing plus a gateway layer, request metadata in application logs, and an observability tool like Langfuse or Helicone covers the essentials. For larger operations, add a warehouse layer and monthly reconciliation against provider or cloud billing exports so you can tie cost back to customer cohorts, feature releases, and margin.

Monitoring is the prerequisite, not the solution

Monitoring alone does not lower your bill. It gives you the ranked list of what to fix first. Once that list is visible, the usual wins are smaller default models, output caps, prompt cleanup, prompt caching (especially for cache-read discounts), batching, and quota controls based on unit economics.

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 FinOps LLM