Skip to main content

AI agent cost per task calculator

Estimate AI agent cost per task and per month from steps, growing context, caching and tool fees, priced with verified per-token API rates.

Defaults are examples only, not industry data.

$0.13 per task · $390.00 per month · 40,000 input + 5,000 output tokens per task.

Per task: input $0.08, cached input $0.00, output $0.05, tools $0.00.

Compare all models (cheapest first)
ModelPer taskPer month
OpenAI GPT-6 Luna$0.0065$19.50
Anthropic Claude Haiku 5.5$0.0065$19.50
Vercel v0 Mini$0.0065$19.50
DeepSeek deepseek-flash$0.02$54.00
Google Gemini 3.5 Flash-Lite$0.02$73.50
xAI Grok 4.3$0.06$187.50
OpenAI GPT-6.1 Terra$0.07$195.00
DeepSeek deepseek-v4-pro$0.07$217.80
xAI Grok 4.7$0.11$330.00
OpenAI GPT-6.1 Sol$0.13$390.00
OpenAI GPT-6.2 Sol$0.13$390.00
Anthropic Claude Sonnet 5.5$0.13$390.00
Vercel v0 Pro$0.13$390.00
Anthropic Claude Opus 5.5$0.26$780.00
Google Gemini 4 Argon$0.26$780.00
Vercel v0 Max$0.26$780.00
OpenAI GPT-6.2 Astra$0.52$1,560.00
Vercel v0 Max Fast$0.52$1,560.00
OpenAI GPT-6 Astra$0.65$1,950.00
Anthropic Claude Fable 5.1$0.65$1,950.00

Not included: agent hosting, vector databases, monitoring and other platform fees. Estimate from published prices (last checked 2026-11-18); USD excl. tax.

An AI agent rarely makes one API call per task. It plans, calls tools, reads the results and calls the model again, and each step usually re-sends the growing conversation. This calculator prices a task as a series of model calls so you can see how steps, context growth and caching drive the bill.

How the estimate works

  1. Input for step n = input tokens per step + context growth per step × (n − 1). This models the history the agent re-sends on every call.
  2. Each step is billed at the selected model’s published rates. Your cached-input share is billed at the cached rate where the vendor publishes one, and output tokens at the output rate. If a step’s input crosses a long-context threshold, that step uses the long-context rate.
  3. Cost per task = the sum of all steps + your external tool cost per task.
  4. Monthly cost = cost per task × tasks per day × days per month.
  5. Compare all models runs the same workload through every model with verified standard rates, cheapest first.

The default inputs are examples only, not measured agent traces. Replace them with step and token counts from your own logs.

What the result does not include

Agent hosting, vector databases, monitoring, retries after errors, web-search or tool fees that you haven’t entered, batch discounts and tax. A step whose prompt is larger than the model’s context window is flagged rather than priced as if it fits.

API cost calculator · Prompt caching savings calculator · Context window cost calculator · LLM API pricing · Tokens explained

How we check prices

Per-token rates come from each vendor’s official pricing documentation. We rechecked the Anthropic, OpenAI, Google, xAI and Perplexity rates on 18 November 2026 (Asia/Colombo). DeepSeek and v0 rates date from 3 November 2026. Prices are USD and exclude tax. Corrections: [email protected].

USD, excluding tax. Prices come from each vendor’s official pricing page; plans or figures we couldn’t verify are shown as not calculable, never estimated.

Last checked (Re-check due)

More cost calculators