GPT · Mid-tier · 272K context window
$0.0263 per call at 5,000 input / 2,000 output tokens.
Per call
$0.0263
10K calls/mo
$262.5
Cache savings
90% off input
Batch savings
50% off all
Adjust token counts, volume, and discount toggles to model your code review spend. Prices verified daily against provider pricing pages.
Call GPT 5 with the OpenAI Python SDK:
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-5",
max_tokens=2000,
messages=[{"role": "user", "content": "Your prompt here"}]
)
# Cost: ~$0.0263 per call at standard rates
# Input: $1.25/MTok
# Output: $10.00/MTokPer-call cost for all models scoring 50+ on code review benchmarks. Hover for details.
Cheapest viable option: Claude Sonnet 5 at $0.0300/call (-14% less, 96/100 quality).
Review is input-heavy in a way generation is not: the diff or file goes in whole, and structured feedback comes back short. That flips the usual optimization: input rate and cache discounts matter more than output rate. Reviewing the same repository repeatedly means the surrounding context is identical call over call, which is exactly the shape prompt caching is designed for.
For GPT 5 specifically, that means output tokens cost 8.0x more than input, at $10.00 vs $1.25 per MTok. At this use case’s 5,000/2,000 token split, output accounts for 76% of the $0.0263 per-call cost.
| Direction | $/MTok | Tokens per call |
|---|---|---|
| Input | $1.25 | 5,000 |
| Output | $10.00 | 2,000 |
Caching drops input cost from $1.25 to $0.13/MTok. For repeated system prompts, that saves $0.005625 per call.
Submit requests asynchronously and receive 50% off all token costs. This works best for offline pipelines where latency requirements are flexible.
| Monthly volume | Cost per call | Standard monthly | Cached monthly | You save with caching |
|---|---|---|---|---|
| 10,000 calls | $0.0263 | $262.5 | $206.25 | $56.25 |
| 50,000 calls | $0.0263 | $1,312.5 | $1,031.25 | $281.25 |
| 100,000 calls | $0.0263 | $2,625 | $2,062.5 | $562.5 |
| 500,000 calls | $0.0263 | $13,125 | $10,312.5 | $2,812.5 |
| 1,000,000 calls | $0.0263 | $26,250 | $20,625 | $5,625 |
Benchmark data for code review is pending for GPT 5. Test against your own evaluation suite before moving to production.
GPT 5 scores by task type. Code Review highlighted.
| Task type | Confidence score | Rank out of 72 |
|---|
Confidence scores are a third-party benchmark snapshot from week 29 of 2026. This snapshot is 10 weeks old, so treat the scores as directional and validate against your own evals.
6 models score 80+ on code review benchmarks, sorted by input rate. Cheapest: Claude Sonnet 5 (-14% less, 96/100 quality).
| Model | Provider | Input $/MTok | Output $/MTok | Quality | Per call | vs GPT |
|---|---|---|---|---|---|---|
| Claude Sonnet 5 | Claude | $2.00 | $10.00 | 96/100 | $0.0300 | 14% more |
| Claude Sonnet 4.6 | Claude | $3.00 | $15.00 | 95/100 | $0.0450 | 71% more |
| GPT 5.6 Sol | GPT | $4.00 | $20.00 | 92/100 | $0.0600 | 129% more |
| Claude Opus 4.8 | Claude | $5.00 | $25.00 | 94/100 | $0.0750 | 186% more |
| GPT 5.5 | GPT | $5.00 | $30.00 | 90/100 | $0.0850 | 224% more |
| Claude Fable 5 | Claude | $10.00 | $50.00 | 95/100 | $0.1500 | 471% more |
Provider
GPT
Tier
Mid-tier
Context
272K tokens
Released
Not published
Backfilled on 2026-09-23. Prices confirmed by the provider pricing page and the LiteLLM cross-check. Release date not published in a machine-readable source. Not yet benchmarked, so never recommended.
| Model | Tier | Input $/MTok | Output $/MTok | Context |
|---|---|---|---|---|
| GPT 5.5 | Flagship | $5.00 | $30.00 | 1,050K |
| GPT 5.4 | Mid-tier | $2.50 | $15.00 | 1,050K |
| GPT 5.6 Sol | Flagship | $4.00 | $20.00 | 922K |
| GPT 5.6 Terra | Mid-tier | $2.00 | $12.00 | 922K |
| GPT 5.6 Luna | Fast / Budget | $0.20 | $1.20 | 922K |
| GPT 3.5 Turbo | Fast / Budget | $0.50 | $1.50 | 16.385K |
| GPT 3.5 Turbo (0125) | Fast / Budget | $0.50 | $1.50 | 16.385K |
| GPT 4 (0613) | Flagship | $30.00 | $60.00 | 8.192K |
| GPT 4 Turbo (2024-04-09) | Flagship | $10.00 | $30.00 | 128K |
| GPT 4.1 | Mid-tier | $2.00 | $8.00 | 1,047.576K |
| GPT 4.1 Mini | Fast / Budget | $0.40 | $1.60 | 1,047.576K |
| GPT 4.1 Nano | Fast / Budget | $0.10 | $0.40 | 1,047.576K |
| GPT 4o | Mid-tier | $2.50 | $10.00 | 128K |
| GPT 4o (2024-05-13) | Flagship | $5.00 | $15.00 | 128K |
| GPT 4o Mini | Fast / Budget | $0.15 | $0.60 | 128K |
| GPT 5 Mini | Fast / Budget | $0.25 | $2.00 | 272K |
| GPT 5 Nano | Fast / Budget | $0.05 | $0.40 | 272K |
| GPT 5 Pro | Flagship | $15.00 | $120.00 | 400K |
| GPT 5.1 | Mid-tier | $1.25 | $10.00 | 272K |
| GPT 5.2 | Mid-tier | $1.75 | $14.00 | 272K |
| GPT 5.2 Pro | Flagship | $21.00 | $168.00 | 272K |
| GPT 5.4 Mini | Fast / Budget | $0.75 | $4.50 | 272K |
| GPT 5.4 Nano | Fast / Budget | $0.20 | $1.25 | 272K |
| GPT 5.4 Pro | Flagship | $30.00 | $180.00 | 1,050K |
| GPT 5.5 Pro | Flagship | $30.00 | $180.00 | 1,050K |
| GPT 6 Astra | Flagship | $10.00 | $50.00 | 922K |
| GPT 6 Luna | Fast / Budget | $0.10 | $0.50 | 922K |
| GPT 6 Sol | Flagship | $2.00 | $10.00 | 922K |
| o1 | Flagship | $15.00 | $60.00 | 200K |
| o1 Pro | Flagship | $150.00 | $600.00 | 200K |
| o3 | Mid-tier | $2.00 | $8.00 | 200K |
| o3 Mini | Fast / Budget | $1.10 | $4.40 | 200K |
| o3 Pro | Flagship | $20.00 | $80.00 | 200K |
| o4 Mini | Fast / Budget | $1.10 | $4.40 | 200K |
You can compare GPT 5 head-to-head against any other model on our model comparison pages, or track how pricing has changed over time on the pricing history tracker.
See how GPT 5 costs change across different workload types.
Code Generation
$0.0425/call
Unit Test Generation
$0.0538/call
SQL Generation
$0.0119/call
API Generation
$0.0638/call
Code Refactoring
$0.0450/call
PR Review
$0.0400/call
Security Review
$0.0325/call
Bug Detection
$0.0263/call
Document Summarization
$0.0225/call
PDF Summarization
$0.0338/call
Meeting Notes
$0.0300/call
Email Summarization
$0.008750/call
Chatbot
$0.0125/call
RAG Pipeline
$0.0225/call
Customer Support Bot
$0.0138/call
FAQ Bot
$0.009875/call
Data Extraction
$0.0150/call
JSON Extraction
$0.0118/call
Invoice Parsing
$0.008500/call
Resume Parsing
$0.0111/call
Chain of Thought
$0.0538/call
Legal Analysis
$0.0525/call
Math Reasoning
$0.0319/call
Financial Analysis
$0.0500/call
Content Moderation
$0.001625/call
Sentiment Analysis
$0.001625/call
Categorization
$0.002500/call
Intent Detection
$0.001375/call
Copywriting
$0.0206/call
Blog Writing
$0.0813/call
Marketing Copy
$0.0310/call
Product Descriptions
$0.0156/call
A typical code review call using GPT 5 costs about $0.0263 per call. This estimate uses 5,000 input tokens and 2,000 output tokens at standard rates. Standard rates are $1.25 per million input tokens and $10.00 per million output tokens.
Our benchmark data does not yet include a code review ranking for GPT 5. We recommend testing it against your own evaluation criteria before production usage.
The most affordable model for code review above 80/100 quality is Claude Sonnet 5. It comes from Claude at $2.00 per million input tokens. Output costs $10.00 per million tokens with a quality score of 96/100. Switching from GPT 5 to Claude Sonnet 5 saves about -14% per API call.
Three strategies lower GPT 5 costs for this task type effectively. Prompt caching gives a 90% discount on input tokens when reusing system prompts. The batch API gives 50% off all tokens for asynchronous processing workloads. Prompt optimization reduces token counts through more concise instructions and context windows. Combining caching with batching brings your cost from $0.0263 to about $0.001313 per call.
GPT has 34 other models alongside GPT 5 today: GPT 5.5 at $5.00/$30.00 per million tokens (flagship), GPT 5.4 at $2.50/$15.00 per million tokens (mid-tier), GPT 5.6 Sol at $4.00/$20.00 per million tokens (flagship), GPT 5.6 Terra at $2.00/$12.00 per million tokens (mid-tier), GPT 5.6 Luna at $0.20/$1.20 per million tokens (fast / budget), GPT 3.5 Turbo at $0.50/$1.50 per million tokens (fast / budget), GPT 3.5 Turbo (0125) at $0.50/$1.50 per million tokens (fast / budget), GPT 4 (0613) at $30.00/$60.00 per million tokens (flagship), GPT 4 Turbo (2024-04-09) at $10.00/$30.00 per million tokens (flagship), GPT 4.1 at $2.00/$8.00 per million tokens (mid-tier), GPT 4.1 Mini at $0.40/$1.60 per million tokens (fast / budget), GPT 4.1 Nano at $0.10/$0.40 per million tokens (fast / budget), GPT 4o at $2.50/$10.00 per million tokens (mid-tier), GPT 4o (2024-05-13) at $5.00/$15.00 per million tokens (flagship), GPT 4o Mini at $0.15/$0.60 per million tokens (fast / budget), GPT 5 Mini at $0.25/$2.00 per million tokens (fast / budget), GPT 5 Nano at $0.05/$0.40 per million tokens (fast / budget), GPT 5 Pro at $15.00/$120.00 per million tokens (flagship), GPT 5.1 at $1.25/$10.00 per million tokens (mid-tier), GPT 5.2 at $1.75/$14.00 per million tokens (mid-tier), GPT 5.2 Pro at $21.00/$168.00 per million tokens (flagship), GPT 5.4 Mini at $0.75/$4.50 per million tokens (fast / budget), GPT 5.4 Nano at $0.20/$1.25 per million tokens (fast / budget), GPT 5.4 Pro at $30.00/$180.00 per million tokens (flagship), GPT 5.5 Pro at $30.00/$180.00 per million tokens (flagship), GPT 6 Astra at $10.00/$50.00 per million tokens (flagship), GPT 6 Luna at $0.10/$0.50 per million tokens (fast / budget), GPT 6 Sol at $2.00/$10.00 per million tokens (flagship), o1 at $15.00/$60.00 per million tokens (flagship), o1 Pro at $150.00/$600.00 per million tokens (flagship), o3 at $2.00/$8.00 per million tokens (mid-tier), o3 Mini at $1.10/$4.40 per million tokens (fast / budget), o3 Pro at $20.00/$80.00 per million tokens (flagship), o4 Mini at $1.10/$4.40 per million tokens (fast / budget). The right choice depends on whether your code review workload prioritizes quality, cost, or speed.
GPT 5 supports a context window of 272K tokens per API call. This sets the maximum combined length of your input prompt and generated response. For code review, typical calls use 5,000 input and 2,000 output tokens. That is well within this limit, leaving room for longer prompts or multi-turn conversations.
This calculator estimates costs based on published rates only. Connect your API usage to see where your money goes and which models drive your spend.