← All workflows

Local tool

Provider API cost per accepted result calculator

Add token, cache, search, media or committed capacity costs in their actual billing units and calculate spend per accepted task.

Sources checked:

What you can do

Reconcile the billable meters for a single workload and calculate cost per accepted output.

Multiply each meter’s quantity by its tariff and divide by the quantity covered by that tariff. Add the results and divide by accepted outputs. Include failed attempts whenever they are billed.

Add up provider usage

Use one row per meter, the same currency and one observation period. Enter reservations, tool calls, retries or overflow as separate lines.

Meter 1

Build your execution checklist

Inputs are processed in this browser only and cleared when you close or refresh the page.

A DeepSeek, GLM, MiniMax, Grok, Gemini or other model bills tokens at different rates.

Read the full steps

Token rates, cache hits and long context

A DeepSeek, GLM, MiniMax, Grok, Gemini or other model bills tokens at different rates.

  1. Pin one model, revision and billing surface. Enter uncached input, observed cache-hit input, output and any retention/storage cost as individual rows.
  2. Apply a documented long-context tariff only to requests that meet that model’s rule. Group requests before adding the corresponding meters. For Gemini video input start with the documented resolution, frame sampling and audio meters, then reconcile token counts.
  3. For a caching estimate compare the same prompt mix with full-price repeated input and with discounted actual cache hits. For eligible explicit caching add storage over the expected retention time. For Google 4-series, use only the documented implicit cache behavior.

Grounding, batch and committed capacity

The workload includes search calls, async requests or reserved model capacity.

  1. For Gemini grounding or xAI Web Search use the reported billable unit from the exact model tariff. Count model tokens separately and apply only documented allowances.
  2. For Kimi batch choose an eligible model. Kimi lists batch inference at 60% of standard pricing before taxes and cache hits as best effort. Use the actual batch tariff and check completed jobs.
  3. For Cloud provisioned capacity add the contracted cost for the observation period, plus approved metered overflow. Compare with the same tasks delivered via pay-as-you-go.

Video credits, speech characters, audio minutes and OCR pages

Your task meters whole outputs, seconds, pages, minutes or text rather than just tokens.

  1. Runway lists $0.01 per API credit before tax. Multiply the chosen model’s credits per second or output by the units used, then add format surcharges on a separate row.
  2. ElevenLabs or MiniMax TTS can use character meters. Convert audio duration to characters using a representative script when needed. Enter ElevenLabs dubbing and Mistral Voxtral transcription using each product’s actual duration meter.
  3. For Mistral OCR use submitted or reprocessed pages at the matched OCR tariff. For Codestral autocomplete track billed inputs, repeated context and accepted suggestions.

Reconcile Alibaba workspace billing and routed attempts

Several providers, retry paths or billing workspaces can process the same job.

  1. For Model Studio export the same billing period grouped by model, workspace, key ID or region as appropriate. Account for posting delay before reconciling.
  2. For routing record actual provider and model for every paid attempt, including fallback. Include comparable fixed fees for the period and keep usage in one currency.
  3. Define an accepted result before aggregating. Count each accepted task once and persist failed attempts to avoid overstating successful economy.
Template preview: provider-meter-reconciliation.txt
Billing window: {{Window}}
Currency: {{Currency}}
Provider and model: {{Provider / model}}
Meter: {{Meter}}
Billable quantity: {{Quantity}}
Price per unit volume: {{Price and unit}}
Accepted tasks: {{Accepted count}}
Include retries and overflow as separate rows.

Scope & limits

  • The calculation uses entered rates and usage. Validate billing minimums, currency, tax, FX and committed capacity separately where applicable.

Questions & answers

What should I enter if none of the requests finished?
Enter zero accepted results and include all meters. The total spend remains defined and cost per accepted result is unavailable.

Verified sources

Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.

Related workflows