Workload cost scenario

AI Agent Loop Cost Calculator

Model monthly LLM API spend for agent workflows that make repeated planning, tool-use, and follow-up calls.

Engineering teams budgeting multi-step AI agent features.

Editable assumptions

Model the workload

Change the inputs to recalculate every compatible model.

Lowest tracked estimate
$41.26

DeepSeek V4 Flash non-thinking for the current assumptions

Lowest cost does not mean best model. Test output quality, latency, retries, and reliability on your own workload.

Cost comparison

Estimated monthly cost by model

Comparing 22 models that fit the initial input length.

ModelProviderInput costOutput costMonthly estimateContext usage
DeepSeek V4 Flash non-thinkingDeepSeek$20.26$21.00$41.260.6%
Gemini 2.5 Flash-LiteGoogle$14.76$30.00$44.760.6%
GPT-4o miniOpenAI$24.30$45.00$69.304.7%
gpt-5.4-nanoOpenAI$29.52$93.75$123.271.5%
deepseek-v4-proDeepSeek$62.77$65.25$128.020.6%
Gemini 3.5 Live Translate PreviewGoogle$36.90$112.50$149.404.6%
Gemini 3.1 Flash-LiteGoogle$36.90$112.50$149.400.6%
Gemini 2.5 FlashGoogle$44.28$187.50$231.780.6%
Gemini 3 Flash PreviewGoogle$73.80$225.00$298.800.6%
gpt-5.4-miniOpenAI$110.70$337.50$448.201.5%
Claude Haiku 4.5Anthropic$147.60$375.00$522.603.0%
gpt-5.6-lunaOpenAI$147.60$450.00$597.600.6%
Gemini 3.5 FlashGoogle$221.40$675.00$896.400.6%
Gemini 2.5 ProGoogle$184.50$750.00$934.500.6%
Claude Sonnet 5Anthropic$295.20$750.00$1,045.200.6%
GPT-4oOpenAI$405.00$750.00$1,155.004.7%
Gemini 3.1 Pro PreviewGoogle$295.20$900.00$1,195.200.6%
gpt-5.6-terraOpenAI$369.00$1,125.00$1,494.000.6%
Claude Sonnet 4.6Anthropic$442.80$1,125.00$1,567.800.6%
Claude Opus 4.8Anthropic$738.00$1,875.00$2,613.000.6%
gpt-5.6-solOpenAI$738.00$2,250.00$2,988.000.6%
Claude Fable 5Anthropic$1,800.00$3,750.00$5,550.000.6%
Why this scenario matters

AI agent loops cost drivers

Agent loops can multiply the number of billable calls per user action, while tool results and accumulated history enlarge later prompts.

StackLens checklist

What to measure

  • Count every model call inside a completed task.
  • Set loop and retry limits.
  • Route planning, execution, and validation steps independently when quality permits.

Estimate boundary: Treat monthly requests as model calls, not user tasks. Tool execution and external API charges are excluded.

View pricing sources

OpenAI model pricingHigh confidenceChecked 2026-07-13

Tracked prices for included OpenAI models are checked against official provider documentation.

Anthropic model pricingHigh confidenceChecked 2026-07-12

Tracked prices for included Anthropic models are checked against official provider documentation.

Google model pricingHigh confidenceChecked 2026-07-14

Tracked prices for included Google models are checked against official provider documentation.

DeepSeek model pricingHigh confidenceChecked 2026-07-12

Tracked prices for included DeepSeek models are checked against official provider documentation.

Anthropic model pricingHigh confidenceChecked 2026-07-14

Tracked prices for included Anthropic models are checked against official provider documentation.