GPT · Mid-tier · 128K context window
$0.0400 per call at 6,000 input / 2,500 output tokens.
Per call
$0.0400
10K calls/mo
$400
Cache savings
50% off input
Batch savings
50% off all
Adjust token counts, volume, and discount toggles to model your security review spend. Prices verified daily against provider pricing pages.
Call GPT 4o with the OpenAI Python SDK:
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o",
max_tokens=2500,
messages=[{"role": "user", "content": "Your prompt here"}]
)
# Cost: ~$0.0400 per call at standard rates
# Input: $2.50/MTok
# Output: $10.00/MTokPer-call cost for all models scoring 50+ on security review benchmarks. Hover for details.
Cheapest viable option: Claude Sonnet 5 at $0.0370/call (7% less, 96/100 quality).
Security review is the code task where quality is worth paying for: a missed vulnerability costs more than the entire year's inference bill. Input is large (the code plus the threat context) and output is moderate. This is the clearest case on this list for choosing a top-ranked model over the cheapest viable one, and for not batching away the latency you need in CI.
For GPT 4o specifically, that means output tokens cost 4.0x more than input, at $10.00 vs $2.50 per MTok. At this use case’s 6,000/2,500 token split, output accounts for 63% of the $0.0400 per-call cost.
| Direction | $/MTok | Tokens per call |
|---|---|---|
| Input | $2.50 | 6,000 |
| Output | $10.00 | 2,500 |
Caching drops input cost from $2.50 to $1.25/MTok. For repeated system prompts, that saves $0.007500 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.0400 | $400 | $325 | $75 |
| 50,000 calls | $0.0400 | $2,000 | $1,625 | $375 |
| 100,000 calls | $0.0400 | $4,000 | $3,250 | $750 |
| 500,000 calls | $0.0400 | $20,000 | $16,250 | $3,750 |
| 1,000,000 calls | $0.0400 | $40,000 | $32,500 | $7,500 |
Benchmark data for security review is pending for GPT 4o. Test against your own evaluation suite before moving to production.
GPT 4o scores by task type. Security 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 security review benchmarks, sorted by input rate. Cheapest: Claude Sonnet 5 (7% 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.0370 | 7% cheaper |
| Claude Sonnet 4.6 | Claude | $3.00 | $15.00 | 95/100 | $0.0555 | 39% more |
| GPT 5.6 Sol | GPT | $4.00 | $20.00 | 92/100 | $0.0740 | 85% more |
| Claude Opus 4.8 | Claude | $5.00 | $25.00 | 94/100 | $0.0925 | 131% more |
| GPT 5.5 | GPT | $5.00 | $30.00 | 90/100 | $0.1050 | 162% more |
| Claude Fable 5 | Claude | $10.00 | $50.00 | 95/100 | $0.1850 | 362% more |
Provider
GPT
Tier
Mid-tier
Context
128K 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 (2024-05-13) | Flagship | $5.00 | $15.00 | 128K |
| GPT 4o Mini | Fast / Budget | $0.15 | $0.60 | 128K |
| GPT 5 | Mid-tier | $1.25 | $10.00 | 272K |
| 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 4o 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 4o costs change across different workload types.
Code Generation
$0.0450/call
Unit Test Generation
$0.0575/call
SQL Generation
$0.0138/call
API Generation
$0.0675/call
Code Refactoring
$0.0500/call
Code Review
$0.0325/call
PR Review
$0.0500/call
Bug Detection
$0.0325/call
Document Summarization
$0.0350/call
PDF Summarization
$0.0525/call
Meeting Notes
$0.0400/call
Email Summarization
$0.0125/call
Chatbot
$0.0150/call
RAG Pipeline
$0.0300/call
Customer Support Bot
$0.0175/call
FAQ Bot
$0.0118/call
Data Extraction
$0.0200/call
JSON Extraction
$0.0155/call
Invoice Parsing
$0.0110/call
Resume Parsing
$0.0143/call
Chain of Thought
$0.0575/call
Legal Analysis
$0.0650/call
Math Reasoning
$0.0338/call
Financial Analysis
$0.0600/call
Content Moderation
$0.002250/call
Sentiment Analysis
$0.002250/call
Categorization
$0.003500/call
Intent Detection
$0.001750/call
Copywriting
$0.0213/call
Blog Writing
$0.0825/call
Marketing Copy
$0.0320/call
Product Descriptions
$0.0163/call
A typical security review call using GPT 4o costs about $0.0400 per call. This estimate uses 6,000 input tokens and 2,500 output tokens at standard rates. Standard rates are $2.50 per million input tokens and $10.00 per million output tokens.
Our benchmark data does not yet include a security review ranking for GPT 4o. We recommend testing it against your own evaluation criteria before production usage.
The most affordable model for security 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 4o to Claude Sonnet 5 saves about 7% per API call.
Three strategies lower GPT 4o costs for this task type effectively. Prompt caching gives a 50% 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.0400 to about $0.0100 per call.
GPT has 34 other models alongside GPT 4o 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 (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 at $1.25/$10.00 per million tokens (mid-tier), 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 security review workload prioritizes quality, cost, or speed.
GPT 4o supports a context window of 128K tokens per API call. This sets the maximum combined length of your input prompt and generated response. For security review, typical calls use 6,000 input and 2,500 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.