Skip to main content

Manage AI tokens, retries and cost per useful outcome

AI cost management should explain what useful work the organization received for its spending.

Find which workspace drove token consumption

Claude usage shows support at nine million tokens and analysis at three million, with input and output totals by key, user, workspace and model.
Inspect
Match the workspace bars to the table: support has 7.2M input + 1.8M output; analysis has 2.4M + 0.6M.
Interpret
The 12M total is provider token usage, not dollars. Workspace and key IDs need an owner mapping; they do not automatically identify a business outcome.
Act
Verify collection and the period, map the IDs to owners, then reconcile provider cost evidence separately.
Simplified product recreation from native Claude workload templates. IDs and usage are synthetic; the interpretation strip is editorial.Open full-size visual ↗

Token volume is a driver, not the business outcome. Track input and output consumption, retries, supporting data infrastructure and human review together, then accept an optimization only if the application's quality and service contract still holds.

Meridian Supply, our fictional distributor, wants to understand the cost of its returns-and-order-status assistant before expanding to more support users. Finance owns the accounting basis; the application owner defines useful outcomes; engineering explains consumption and tests changes. The examples below are synthetic planning arithmetic, not current provider prices, DataDios pricing or a customer saving.

Keep three kinds of cost evidence separate​

EvidenceAppropriate useWhat it does not establish
Provider cost collection in FinOpsIdentify the collected provider/project/service contribution over a periodA universal, fully reconciled invoice or per-conversation attribution
AI Eval usage, latency and approximate cost where availableCompare a controlled evaluation under the same case setProduction-wide spend, provider billing tokens or all application overhead
Application outcome and usage recordsRelate requests, retries and accepted work to an application/versionA trustworthy invoice without reconciliation to provider records

DataDios's token_count assertion uses a whitespace-based approximate count. It is not the provider tokenizer or a billing meter. Similarly, an Eval cost assertion checks approximate execution cost; it is not the organization invoice. Keep unavailable metrics distinct from zero. This prevents a cheap-looking test from becoming an unsupported financial claim.

FinOps's AI view supports collected OpenAI cost evidence. The integration requests daily organization costs grouped by line item, project and API key and needs appropriate administrator access. A successful model inference connection does not prove billing access. Use the source playbooks to check collection prerequisites and accounting boundaries.

Use the native telemetry available for each source​

DataDios also has source-specific AI workload evidence; token monitoring is not limited to an external spreadsheet. For a configured Claude Model source with the required administrator access and successful workload collection, the source templates include Token Usage Trend, Token Usage by Workspace, and a table of Input Tokens, Output Tokens and Total Tokens by API key, user, workspace and model. Inspect the relevant source in Performance Analyzer and confirm the selected period is collected before comparing values.

The connector reads the provider usage report separately from DataDios's own logged LLM calls. Provider input-token totals include uncached input, cache reads and cache creation; cache-read tokens are a component of input, so adding them again would double-count usage. Scope each report carefully: DataDios's logged calls do not represent every call made directly by an external application.

This Claude workload example does not imply that Claude is an eligible connection for the AI Eval authoring path or a provider on the current FinOps AI tab. Capabilities are per module. Use provider/project/key attribution where supported, then map those identifiers to business owners in your operating record. A key shared by several applications cannot identify the application outcome without an additional mapping.

Establish a baseline the CFO and engineers can both use​

Record the complete measurement period, currency, provider cost basis, application environment and release version. Reconcile which cost categories are included and which are missing. Separate one-time indexing or migration work from recurring inference, but do not erase it from the total investment.

For Meridian, the operating record contains request count, average input/output tokens from the application's provider usage records, retry attempts, accepted drafts and escalations. A draft counts as accepted only under the business owner's agreed review rule. Generating a response, receiving an HTTP success or clicking a button is not automatically a useful resolution.

Add the cost of retrieval/embedding, databases and warehouses, storage, evaluation runs and human review where material. Allocate shared infrastructure consistently. If a source cannot supply the desired granularity, state the allocation assumption; do not invent a precise per-user amount from a provider-level total.

Work the numbers before calling it a saving​

Compare cost only after preserving accepted outcomes

Illustrative monthly model cost falls from 550 to 399 dollars; cost per accepted draft worsens if accepted drafts fall to 25,000.
Inspect
Compare the same 50,000 initial requests, output size, retry assumptions and accepted-outcome definition.
Interpret
At 35,000 accepted drafts, model-only unit cost improves. At 25,000 accepted drafts, the cheaper candidate costs more per accepted outcome.
Act
Reconcile real rates and overhead, rerun evaluations and measure rework before claiming a saving.
Illustrative calculation, not a product screen or customer result. Hypothetical input/output rates and no cache discounts.Open full-size visual ↗
Monthly model-only inputBaselineCandidate
Initial requests50,00050,000
Mean input tokens per request3,0001,800
Mean output tokens per request500500
Input cost150 million × $2/million = $30090 million × $2/million = $180
Output cost25 million × $8/million = $20025 million × $8/million = $200
Extra retry attempts5,000 (10% of initial requests)2,500 (5% of initial requests)
Retry cost, assuming the same mean usage per attempt$50$19
Total model-only cost$550$399

The difference is $151, or about 27.5% of baseline model-only cost. This does not prove a reduction in the total platform bill: retrieval, embeddings, evaluation, engineering and review costs have not been included. Actual retries may have different context lengths or end early; use observed usage rather than this simplifying assumption for financial reporting.

If both variants produce 35,000 accepted drafts, model-only cost per accepted draft changes from about 1.57 cents to 1.14 cents. If the cheaper variant produces only 25,000 accepted drafts, its value becomes about 1.60 cents per accepted draft—worse than baseline. The denominator changes the decision. Reconcile acceptance quality and manual rework before claiming an improvement.

This outcome-based approach follows the FinOps Foundation's distinction between technology consumption and business unit economics. FinOps Unit Economics and FinOps for AI provide broader guidance; the numerical model here is our illustrative example.

Investigate the driver, then change one thing​

A longer prompt may come from duplicated policy chunks, excessive conversation history or a genuinely broader task. More output may reflect useful detail or unnecessary verbosity. Rising retry counts may mean a dependency failure, bad timeout settings or a failing workflow. Ask for evidence before assigning a remedy.

  1. Find the contribution. Select a complete period in FinOps and inspect the relevant provider and connection. Confirm that collection covers the period and that billing access succeeded.
  2. Connect it to application demand. Compare requests, task mix, context lengths, retries and accepted outcomes in the application record. A billing increase during rollout may be expected growth rather than waste.
  3. Choose one controlled experiment. For example, remove duplicate context while retaining the applicable policy, constrain unnecessary output, or fix a repeated failure. Model/provider changes require a fresh quality comparison; a lower advertised token rate is not enough.
  4. Run the same evaluation set. Review the evaluation contract, especially sensitive-data boundaries, missing-context behavior and policy correctness. A smaller context that removes a necessary exception can lower cost while making answers wrong.
  5. Reconcile after the change. Compare equivalent periods and task mix, include additional overhead, and record what remains estimated. Separate freed capacity from actual cash reduction under commitments.

A passing majority can still contain a release blocker

Two of three returns cases pass, but the custom-order approval fails and the run is failed.
Inspect
Case #1 grants custom-order approval the policy does not authorize. Pass count is 2 of 3; this run is Failed.
Interpret
Case counts and run pass rates have different denominators. An unsupported consequential promise can block the proposed scope.
Act
Inspect the failed response and judgment, repair the responsible input or instruction, then rerun the affected group and release suite.
Product recreation with synthetic data. REVIEWER NOTE and the interpretation panel are editorial explanations.Open full-size visual ↗

Use FinOps Budgets for real budget configuration. The Overview's Budget vs. actual and Savings opportunities cards are design previews with example figures. A budget record or cost chart is not a universal model-request admission control; application limits and stop behavior require their own implementation and ownership. Eligible cost workload graphs support alerts, with source-specific collection and evaluation behavior.

Who owns the continuing review?​

A small company can start with one assistant, one approved provider/project scope and a weekly finance/engineering review. The first deliverable is a reproducible baseline and one evaluated experiment, not a complex allocation model.

An enterprise should identify application and environment ownership, establish allocation rules for shared infrastructure, and compare business units only after normalizing task mix and accounting basis. Finance approves how costs are reconciled; engineering owns the change; the business owner approves the outcome definition. Privacy governs what request-level evidence may be retained.

Questions about tokens and AI cost​

Are fewer tokens always better?​

No. Removing irrelevant or duplicate context can help, but removing the applicable policy or needed customer facts can make the answer wrong. Compare token usage with evaluation outcomes, escalation rates and useful work. Optimize the cost of meeting the contract, not token count in isolation.

Can we use the token-count assertion to predict our invoice?​

No. It is a whitespace-based approximation used in assertions, not model-tokenizer output. For billing analysis use provider usage/cost evidence and your contracted rates. An evaluation metric and a provider invoice answer different questions and should be labelled accordingly.

Why can costs rise when the number of users stays flat?​

The task mix, context size, output length, retries, model choice or background indexing may have changed. A stable user count does not imply stable workload. Compare the same application's request and usage records with the collected provider cost window before attributing the change.

Does DataDios automatically allocate every token to a team or conversation?​

This guide does not claim universal request-level attribution. FinOps exposes supported collected cost dimensions; application/team mapping may require project or key conventions and separate application records. Establish that mapping explicitly and disclose any shared-cost allocation assumptions.

What belongs in cost per accepted AI task?​

Include the agreed recurring scope: model usage, retries, relevant data/retrieval infrastructure and material review or evaluation costs. Divide by tasks meeting a documented acceptance rule. Report one-time implementation costs separately and include them when calculating total investment or payback.

Can a budget prevent the application from overspending?​

A budget helps planning and review, but it is not proof that requests are blocked when spending reaches a number. Verify the actual enforcement mechanism in your application/provider controls, its latency and fallback behavior. Do not describe a notification or dashboard as a spending stop.

How should the CFO assess an AI optimization proposal?​

Ask for the baseline period, accounting basis, workload and accepted-outcome denominator; the proposed change; evaluation results; implementation cost; and the verification date. A reduction in one cost component is useful evidence, but only a reconciled total and preserved business outcome justify a broader savings claim.

Continue with production observability and rollout and ROI.

Build an AI cost and outcome baseline