GPT API Pricing 2026: Official vs Aggregator vs Gateway — Real Cost Calculator
OpenAI publishes a clean price list. Nobody else in the LLM market does. That asymmetry is the entire reason the "real cost" of running GPT-class models in production is so often a surprise — by the time the invoice arrives, you've accumulated assumptions that don't hold.
The good news: 2026 has more options than any previous year, and the spread between the cheapest and most expensive path to "GPT-quality output" is the widest it's ever been. The bad news: you have to actually run the numbers for your workload, because the answer depends on input/output ratio, prompt caching eligibility, and whether you're willing to route non-flagship traffic to non-OpenAI models.
The Three Pricing Models You Need to Compare
Direct vendor pricing. OpenAI's published rates. Input: $2.50/M for `gpt-4o`, output: $10.00/M. Predictable, hard-cap, billed monthly in arrears. Rate limits scale with your spend history, so the more you use it the more they trust you.
Aggregator markup. A reseller adds 10–30% on top of vendor cost, charges you per-token, pays the vendor from their own balance. You get one bill, many models, and a small discount compared to direct. Sometimes a small premium — depends on the reseller's volume deal.
OpenAI-compatible gateway. One endpoint, one SDK call, but the underlying model is whatever you route to. For OpenAI flagships the price is roughly aggregator-level. For DeepSeek/GLM/MiniMax/Qwen class models it's a tenth of the price and usually within 5% of the OpenAI flagship on most workloads. The savings come from which model you route to, not from a discount on the same model.
Worked Example 1: Customer Support Chatbot
Inputs are short (a system prompt + a user message, ~400 tokens). Outputs are short (a polite reply, ~200 tokens). Cache hits on the system prompt are near 100%. 10,000 conversations/day.
| Path | Model | Daily cost | Monthly cost |
|---|---|---|---|
| OpenAI direct | gpt-4o | $23.00 | $690 |
| Aggregator (15% off) | gpt-4o | $19.55 | $587 |
| Gateway → gpt-4o | gpt-4o | $19.55 | $587 |
| Gateway → deepseek-chat | DeepSeek V3 class | $0.95 | $29 |
| Gateway → glm-4.5 | GLM class | $1.30 | $39 |
For this workload, DeepSeek-class quality is enough 95% of the time, and the monthly bill drops from $690 to $29. That's not a discount — that's a category change.
Worked Example 2: RAG over a 50-page Document
Inputs are long (system prompt + retrieved chunks + user question, ~6,000 tokens). Outputs are moderate (a 400-token answer). Cache hits are low because each query has different chunks. 1,000 queries/day.
| Path | Model | Daily cost | Monthly cost |
|---|---|---|---|
| OpenAI direct | gpt-4o | $19.00 | $570 |
| Aggregator (15% off) | gpt-4o | $16.15 | $485 |
| Gateway → gpt-4o | gpt-4o | $16.15 | $485 |
| Gateway → qwen-long | Qwen long-context | $0.85 | $26 |
Long-context models are now competitive for RAG, and the input-token cost difference dominates. If your retrieval-augmented answer only needs ~Qwen-quality output, the savings are 95%+.
Worked Example 3: Coding Agent (Hardest Case)
Inputs are huge (full repository context + diff history + tool results, ~30,000 tokens). Outputs are variable (a 1,000-token patch or a 5,000-token refactor). 200 agent runs/day.
| Path | Model | Daily cost | Monthly cost |
|---|---|---|---|
| OpenAI direct | gpt-4o | $115.00 | $3,450 |
| Aggregator (15% off) | gpt-4o | $97.75 | $2,933 |
| Gateway → deepseek-coder | DeepSeek Coder V2 class | $3.20 | $96 |
| Gateway → qwen-coder | Qwen Coder class | $4.10 | $123 |
Coding is the case where the OpenAI flagship still pulls ahead on reasoning quality, but the cost difference is 30x. Most teams route hard cases to the flagship and easy refactors to the coder class model, splitting the difference.
The Hidden Lever: Prompt Caching
Most gateways now expose prompt caching for free or at 25% of the input rate. If your system prompt is stable (it usually is) and your retrieved context overlaps between calls (it often does), you can cut effective input cost by 30–60% without changing anything in your code, just by opting in. This is the highest-leverage cost optimization you can do in 2026, and most people still haven't turned it on.
The Practical Decision Tree
Spend under $200/mo: go direct, focus on engineering, not procurement. Spend $200–$2,000/mo: aggregator or gateway, route bulk traffic to DeepSeek/GLM class, keep flagship for the hard 10%. Spend $2,000+/mo: gateway is mandatory, custom routing logic per endpoint, prompt caching enabled, monthly cost review on the calendar. The exact threshold varies by workload, but the shape is stable.
If you want to test the gateway path without committing, start with a free credit and route one low-stakes workload through it. Measure. If quality holds and the dashboard shows the savings you expected, expand. If it doesn't, you spent $0 finding that out.
Run your own pricing calculator on real traffic — $4 free creditFrequently Asked Questions
Q: Are these prices current?
A: Indicative as of late September 2026. Vendor pricing changes several times a year — your gateway dashboard should show real-time per-token rates, not cached numbers.
Q: What about the $200/mo OpenAI Pro tier?
A: Pro gives you ChatGPT access, not API access. The API is billed separately and the Pro subscription doesn't reduce API rates.
Q: Is prompt caching actually free?
A: Most gateways charge 25% of input rate for cached tokens (vs 100% for fresh reads). Some charge full price. Read the fine print before assuming.