All tools
Free AI cost calculator

Calculate cost per AI request, workflow, and successful outcome

Model price alone does not tell you what an AI workflow costs. Include token volume, calls per run, and the success rate to estimate the economics of the work that users actually receive.

AI cost per successful outcome
Pick a model, shape the workflow, and see the cost of success plus the cost consumed by failed runs.
2.5 input / 15 output USD per 1M tokensPricing source
tokens
tokens
USD / 1M
USD / 1M
Requests per workflow run5
120
Successful runs78%
10%100%
Estimated result
$0.0577
per successful outcome
Per request
$0.009
Per run
$0.045
Failed-run cost per 1,000
$9.90

At 78% success, 220 of 1,000 runs consume cost without a successful outcome. Shared infrastructure, tools, cache discounts, and review cost are not included.

Public list rates checked August 15, 2026. Estimates are directional and may differ from batch, cached, contracted, regional, long-context, or promotional rates.
How it works

From token price to outcome economics

The calculator prices input and output tokens for one request, multiplies that amount by the requests in a workflow run, then spreads the complete run cost across the share of runs that succeed. Failed runs stay in the calculation because they still consume paid model usage.

Price the request

Apply separate input and output rates to the token volume.

Count the workflow

Include every model request made during one complete run.

Measure success

Allocate the cost of both successful and failed runs to delivered outcomes.

Model presets

Public rates used by the model picker

These presets use public rates checked on August 15, 2026, including Anthropic's time-limited Sonnet 5 promotion and its standard rate. The editable custom option is more accurate when you have contracted pricing or use caching, batch processing, long context, or regional endpoints.

ModelInput / 1MOutput / 1MSource
GPT-5.6 LunaOpenAI$1$6Official pricing
GPT-5.6 TerraOpenAI$2.5$15Official pricing
GPT-5.6 SolOpenAI$5$30Official pricing
Claude Sonnet 5 (standard rate)Anthropic$3$15Official pricing
Claude Sonnet 5 (promo through Aug 31)Anthropic$2$10Official pricing
Claude Opus 5Anthropic$5$25Official pricing
Gemini 3.5 FlashGoogle$1.5$9Official pricing
Gemini 3.5 Flash-LiteGoogle$0.3$2.5Official pricing
Use the estimate well

What this calculator includes and leaves out

Included

  • input and output token cost
  • multiple requests in one workflow
  • the effect of failed runs on delivered outcomes
  • directional failed-run cost at volume

Not included by default

  • cache write, cache read, batch, or long-context adjustments
  • tools, search, grounding, storage, and infrastructure
  • human review, support, observability, or gateway cost
  • taxes, credits, commitments, and provider bill corrections

An estimate is the start, not the accounting record

Use the result to compare workflow designs or spot where success rate dominates unit cost. For finance and margin reporting, preserve provider usage, pricing versions, business dimensions, and allocation rules, then reconcile telemetry to the bill. The full method is covered in our AI cost attribution guide. To compare model and context changes with controlled tasks, review the AI coding agent benchmarks. If you are choosing a workspace plan, compare trAIce pricing against the event, employee, and retention limits you need.