Workload cost scenario

AI Code Review API Cost Calculator

Estimate LLM API costs for code review prompts containing diffs, repository context, and structured review output.

Developer tooling teams evaluating an automated review workflow.

Editable assumptions

Model the workload

Change the inputs to recalculate every compatible model.

Lowest tracked estimate
$20.85

Gemini 2.5 Flash-Lite 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
Gemini 2.5 Flash-LiteGoogle$13.65$7.20$20.851.4%
DeepSeek V4 Flash non-thinkingDeepSeek$18.94$5.04$23.981.5%
GPT-4o miniOpenAI$21.38$10.80$32.1811.7%
gpt-5.4-nanoOpenAI$27.30$22.50$49.803.8%
Gemini 3.5 Live Translate PreviewGoogle$34.13$27.00$61.1311.4%
Gemini 3.1 Flash-LiteGoogle$34.13$27.00$61.131.4%
deepseek-v4-proDeepSeek$58.78$15.66$74.441.5%
Gemini 2.5 FlashGoogle$40.95$45.00$85.951.4%
Gemini 3 Flash PreviewGoogle$68.25$54.00$122.251.4%
gpt-5.4-miniOpenAI$102.38$81.00$183.383.8%
Claude Haiku 4.5Anthropic$136.50$90.00$226.507.5%
gpt-5.6-lunaOpenAI$136.50$108.00$244.501.4%
Gemini 2.5 ProGoogle$170.63$180.00$350.631.4%
Gemini 3.5 FlashGoogle$204.75$162.00$366.751.4%
Claude Sonnet 5Anthropic$273.00$180.00$453.001.5%
Gemini 3.1 Pro PreviewGoogle$273.00$216.00$489.001.4%
GPT-4oOpenAI$356.25$180.00$536.2511.7%
gpt-5.6-terraOpenAI$341.25$270.00$611.251.4%
Claude Sonnet 4.6Anthropic$409.50$270.00$679.501.5%
Claude Opus 4.8Anthropic$682.50$450.00$1,132.501.5%
gpt-5.6-solOpenAI$682.50$540.00$1,222.501.4%
Claude Fable 5Anthropic$1,500.00$900.00$2,400.001.5%
Why this scenario matters

Code review assistant cost drivers

Large diffs and repository instructions make reviews input-heavy, while retries and follow-up reviews can increase calls per pull request.

StackLens checklist

What to measure

  • Measure tokens by diff-size band.
  • Avoid resending unchanged repository context.
  • Separate initial review calls from follow-up validation.

Estimate boundary: This scenario does not claim equal review quality and excludes code indexing, sandbox, and repository-hosting costs.

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.