Platform

  • Overview
  • AI Gateway
  • Observability
  • FinOps
  • Reliability

Solutions

  • Optimization
  • Governance
  • Clyvel AI
  • Pricing
  • Enterprise

Resources

  • Documentation
  • Blog
  • Resources
  • Start free

Company

  • Home
  • For businesses
  • Contact
  • Sign in

Legal & security

  • Privacy policy
  • Terms of use
  • Security
  • Refund policy
  • Cookies
  • Data processing
Clyvel

© 2026 Clyvel

Operate

AI GatewayRoute and control every model request.ObservabilitySee every request, token, error and latency signal.ReliabilityIncidents, provider health, latency and failures.

Analyze

Costs & FinOpsUnderstand spend, budgets and cost allocation.OptimizationFind measurable savings across models and routing.

Control

GovernancePolicies, roles, approvals and audit controls.Clyvel AIAsk what changed, why it happened and what to do next.

One platform for production AI operations.

View all products
EngineeringDebug production AI traffic from one operational layer.Platform teamsStandardize routing, providers and reliability controls.FinOps & FinanceControl AI spend, budgets and optimization outcomes.Security & GovernanceApply access, policy and audit controls at scale.
Pricing
AI FinOpsClyvel Research
AI FinOps11 min read

LLM Cost per Request: How to Measure AI Unit Economics in Production

Calculate and interpret LLM cost per request using model pricing, input and output tokens, retries, caching and workload attribution so AI spend becomes operationally actionable.

In this article

Key takeawaysThe basic unit-cost modelOne user request may contain many model callsRetries and fallback belong in the unit costSegment cost by ownershipMove from cheapest call to best economicsFAQ

Total AI spend tells finance how large the bill is. Cost per request tells operators how efficiently a workload is behaving. The metric is simple in concept, but production calculation needs model-specific pricing, token categories, retries and workload attribution. Used correctly, unit cost makes prompt, routing and reliability changes visible long before the monthly invoice explains them.

Key takeaways

  • Calculate provider cost at the individual call first, then aggregate to the logical request, agent run or business task.
  • Separate input, output and cached token categories when pricing treats them differently.
  • Compare unit cost with success and business outcome; the cheapest request is not automatically the most efficient request.

The basic unit-cost model

At a high level, provider cost is the sum of each billable usage category multiplied by that model's rate. For token-priced models, that normally means calculating input and output usage separately and including cached or other categories when the provider exposes different rates.

Store the pricing version or effective rate used by the calculation. Provider pricing changes over time, so a financial report should be reproducible rather than silently recalculating historical traffic against whatever rate happens to be current today.

One user request may contain many model calls

Agentic workflows break the assumption that one application request equals one provider request. A single task can create planning calls, tool-selection calls, retries and a final generation. Measuring each provider call is necessary, but unit economics often needs the sum across the logical task.

Keep a stable run or trace identifier so provider-call costs can roll up into cost per agent run, cost per successful task or another unit that matches the product's actual value.

Retries and fallback belong in the unit cost

If a provider timeout causes two retries before a successful response, the success did not cost the same as a clean first attempt. Reliability overhead should remain attached to the original logical operation.

This is where cost and reliability data become more valuable together. A sudden unit-cost increase may be a prompt problem, a routing change or a provider degradation that multiplied attempts.

Segment cost by ownership

Aggregate unit cost by application, agent, environment, team or customer workflow. A global average can hide one runaway workload while making every team look slightly more expensive. Ownership dimensions turn the metric into something an operator can act on.

Pair cost per request with volume. A very expensive low-volume workflow may be acceptable; a tiny unit-cost regression on a high-volume path can create the larger financial problem.

Move from cheapest call to best economics

Model selection should not optimize for token price in isolation. A cheaper model can create more retries, longer workflows or lower task success. The useful comparison is cost for the outcome the system needs.

Track cost per successful request or task alongside latency, reliability and quality signals when they exist. That shifts AI FinOps from cutting spend to improving the economics of production AI.

FAQ

Common questions

How do you calculate LLM cost per request?

Calculate each model call from the provider's applicable usage categories and rates, then roll up all calls that belong to the same logical request or task. Include retries and fallback attempts rather than counting only the successful call.

Why is cost per successful request useful?

It connects spend to reliability. A cheaper model or route may not be more efficient if it increases failures, retries or the number of calls required to complete a task.

CLYVEL

Put the operating model into practice.

Clyvel connects production AI traffic, cost, reliability and governance in one operations layer.

Explore Clyvel FinOps

Sources and further reading

Clyvel Research uses primary technical and vendor references wherever a claim benefits from external context.

Read the research methodology
FinOps Foundation — FinOps for AI

RELATED READING

Continue the topic.

View AI FinOps

FinOps for AI: How to Control LLM Spend Before the Invoice Arrives

FinOps for AI connects model usage, token economics and business ownership. Learn the metrics, allocation model and operating practices that make AI spend manageable.

AI FinOps

Why LLM Costs Spike in Production — and How to Find the Cause

LLM costs can rise without traffic growth. Learn how model mix, longer context, output length, retries, caching and agent loops change production AI spend.

AI FinOps

AI Agent Cost Monitoring: Measure the Full Run, Not Just the Last Model Call

A practical guide to AI agent cost monitoring across model calls, tool usage, retries, loops and successful outcomes, with metrics for production FinOps.

AI FinOps