LLM cost tracking

LLM cost tracking is the practice of collecting, tagging, and aggregating the data you need to explain every dollar of AI spend. Without it, the monthly invoice is just a number. With it, you can answer who spent what, on which model, for which feature, and whether it was worth it.

What to tag on every request

The minimum viable attribution set is:

Where the data comes from

There are three sources, and each has gaps:

Reconcile all three. Use the invoice as the final number, gateway logs for attribution, and application telemetry for cost-per-task.

Metrics that matter

Getting started

Start with gateway logs if you use a proxy like LiteLLM, Helicone, or Langfuse. Add custom tags to your requests and export the data to a dashboard. If you do not use a proxy, instrument your application to log model, tokens, and task ID on every call. See also our guides to LLM cost management and LLM cost monitoring.


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