Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

AI FinOps in 2026: Worked Costs for Tokens, Voice, and Agent Retries

Twenty approved clips at ten seconds each take $20 to render at $0.10 per second. Give each clip six billable takes and the bill is $120. The rate card stayed the same. The order still contains twenty clips. The example

Twenty approved clips at ten seconds each take $20 to render at $0.10 per second. Give each clip six billable takes and the bill is $120. The rate card stayed the same. The order still contains twenty clips.

The examples below use explicit workload and rate assumptions. They model bills and memory capacity you can reproduce with a calculator. The inputs are planning scenarios.

Split token meters before adding retrieval

For 3,000 monthly requests at 4,000 input tokens and 40 billed output tokens per request, assume 80% of requests hit a shared 2,500-token prefix. That gives 6M cached input, 6M standard input and 0.12M output. At $0.25, $2.50 and $15 per million respectively, the token subtotal is 6 Γ— 0.25 + 6 Γ— 2.50 + 0.12 Γ— 15 = $18.30.

If the same workload uses RAG, add only the separately billed meters. A $30 monthly vector store, $0.30 of embedding use and $6 of separately billed reranking bring that fixture to $54.60/month. Count retrieved context under generation input when it is already in the measured 4,000 tokens per request. LLM token estimator Β· RAG and vector database TCO

Voice standby still bills for quiet time

At 1,000 calls per month, an eight-minute support call with four 45-second pauses spends $80/month on silence. With a 10-second standby threshold, the first 10 seconds of each pause still incur the active rate. The rest incur the standby rate. Use $0.05 per active minute and $0.02 per standby minute as scenario inputs.

Silence per call         = 4 Γ— 45 = 180 seconds
Standby per call         = 4 Γ— (45 βˆ’ 10) = 140 seconds
Active time per call     = 480 βˆ’ 140 = 340 seconds
Voice cost per month     = 1,000 Γ— (340/60 Γ— $0.05 + 140/60 Γ— $0.02) = $330
Silence cost per month   = 1,000 Γ— (40/60 Γ— $0.05 + 140/60 Γ— $0.02) = $80
Always-active cost       = 1,000 Γ— 480/60 Γ— $0.05 = $400 per month

The standby meter contributes $46.67 of the $80 idle burn. The pre-standby portion of the pauses contributes the other $33.33. Standby saves $70 versus always-active billing. These totals cover the voice session meter. Add delegated model tokens, tools and telephony if your stack bills for them separately.

The calculator uses one average pause length and caps modeled silence at the call duration. With call traces, apply max(0, pause_seconds βˆ’ threshold) to each pause before summing. Short pauses can all stay active while long holds contribute most of the standby time. This threshold changes the billing state of a connected session. Voice standby calculator

Six full takes multiply the render bill by six

Take the twenty-clip order from the opening. Assume each approved clip has one accepted take and five discarded, fully billed takes of equal length.

Delivered seconds        = 20 Γ— 10 = 200
Billed seconds           = 20 Γ— (1 + 5) Γ— 10 = 1,200
Render spend             = 1,200 Γ— $0.10 = $120
Discarded-take spend     = (1,200 βˆ’ 200) Γ— $0.10 = $100
Spend per approved clip  = $120 / 20 = $6

Six takes is a scenario input. When the provider meters partial renders, use the billable duration of each attempt, including canceled attempts, then divide by delivered seconds to get the effective multiplier. If a workflow uses cheap drafts and premium finals, sum each tier separately. The image calculator shows that pattern with per-tier rounding. The interactive-world calculator models a different source of wasted video spend, where an abandoned session can keep generating frames until its cap. Image workflow calculator Β· Interactive-world session calculator

Retries amplify an agent's cache misses

At a 10% retryable failure rate, 36,000 successful turns take 40,000 expected attempts. Hold the failure rate fixed and let the hit fraction fall from 75% to 20%. The modeled monthly bill rises from $526.56 to $866.59.

Assume 150 completed tasks per day over 30 days, eight successful turns per task, 2,048 first-turn input tokens, 1,024 new input tokens per later turn and 300 billed output tokens per attempt. Each later turn reuses the previous turn's input as an eligible prefix. Failures are independent and retries continue until success with the same average token counts and cache mix.

Attempt multiplier       = 1 / (1 βˆ’ 0.10) = 10/9
Retry-adjusted task scale = 150 Γ— 30 Γ— 10/9 = 5,000
New input per task       = 2,048 + 7 Γ— 1,024 = 9,216
Eligible input per task  = sum(2,048 + j Γ— 1,024 for j = 0 through 6) = 35,840
Monthly new input        = 5,000 Γ— 9,216 = 46.08 million tokens
Monthly eligible input   = 5,000 Γ— 35,840 = 179.20 million tokens
Monthly output           = 5,000 Γ— 8 Γ— 300 = 12 million tokens

Use $3 for standard input, $0.30 for a cache read, $3.75 for an eligible miss that writes the prefix, and $15 for output, all per million tokens. With h the fraction of eligible tokens served from cache, the monthly bill is 46.08 Γ— $3 + 179.20 Γ— (h Γ— $0.30 + (1 βˆ’ h) Γ— $3.75) + 12 Γ— $15 at 10% failures.

Scenario Failure rate Eligible-token hit fraction USD/month
Cached, no retries 0% 75% $473.90
Cached, same hit fraction with retries 10% 75% $526.56
Cached, degraded hit fraction with retries 10% 20% $866.59
All input at standard rates, with retries 10% β€” $855.84

The eligible prefix breaks even at (3.75 βˆ’ 3) / (3.75 βˆ’ 0.30) β‰ˆ 21.74% hit rate. Below that, the write premium exceeds the read discount. The break-even compares caching with standard billing at the same retry rate. In production, log cached input tokens and billed retry tokens per attempt. If failures carry a different cache mix or terminate early, price those attempts with their own token totals. Agent retry and prompt-cache calculator

Doubling context can cut vLLM capacity from eleven slots to five

Put a decoder with 32 attention layers, eight KV heads and a head dimension of 128 on one 24 GiB GPU. Assume FP16 KV, 16-token blocks, 10% cache overhead, a 90% engine memory limit and 9 GiB reserved for weights and runtime.

KV bytes per token       = 2 Γ— 32 Γ— 8 Γ— 128 Γ— 2 = 131,072
Allocated tokens        = ceil(context / 16) Γ— 16
GiB per sequence        = allocated tokens Γ— 131,072 Γ— 1.10 / 2^30
Available KV memory     = 24 Γ— 0.90 βˆ’ 9 = 12.60 GiB
8,192-token capacity    = floor(12.60 / 1.10) = 11 full-context sequences
16,384-token capacity   = floor(12.60 / 2.20) = 5 full-context sequences

The leading factor of two accounts for keys and values. Use the model's KV head count and context that includes prompt plus generated tokens. This is a memory ceiling for independent, full-length sequences with unshared KV blocks. Check the engine's actual KV pool, cache use, preemptions and tail latency under the workload you intend to serve. vLLM engine arguments Β· vLLM production metrics

At an assumed aggregate 180 tokens per busy second and 65% busy time, a billed GPU hour delivers 180 Γ— 0.65 Γ— 3,600 = 421,200 tokens. At $2 per million API-equivalent tokens, that is $0.8424 per billed hour in API spend. A GPU costing $0.80/hour comes to approximately $1.899335 per million tokens, before other hosting costs. For a buying decision, measure throughput separately and use the same token accounting on both sides. vLLM KV-cache and concurrency calculator

Reconcile the bill against what shipped

Keep both counts in the same reporting window. For voice, record active and standby seconds per connected call. For video, record billed seconds per approved clip. For agents, tie billed attempts and cached tokens to completed tasks. For GPUs, divide billed-hour spend by delivered tokens at the latency you can accept. Those counters let you change the rate or the workload assumption and see which one moved the bill.

Disclosure. I built BudgetHub, a commercial planning workspace, and the linked calculators. An AI agent drafted this article from the calculator source and worked scenarios. BudgetHub

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.