OpenAI API Pricing Explained: What You'll Actually Pay Per Request
Last updated: July 2026
OpenAI's API pricing looks simple until you sit down to estimate a monthly bill. There's no seat fee, no bundle, just a per-token price for each model. The trick is understanding which tokens count, how they add up, and where the numbers can quietly balloon. This is the version of the explanation I wish I'd had when I first switched from a subscription to the API.
Tokens, not requests
OpenAI charges by the token, not by the request. A token is roughly three-quarters of an English word, so 1,000 tokens is about 750 words. Every request has two token counts: the input (everything you send — system prompt, chat history, documents, the current question) and the output (what the model writes back). They are priced separately, and output is almost always more expensive than input.
This distinction matters more than it sounds. A chatbot that answers with a one-line reply after reading a long system prompt is mostly paying for input. A copywriting tool that gets a short brief and returns 800 words is mostly paying for output. The same "one request" can cost very different amounts depending on which side is doing the work.
Model tiers and why they exist
OpenAI ships a small family of models at very different price points. The flagship — GPT-4o today — is the smartest but the most expensive per million tokens. The mini variant is roughly an order of magnitude cheaper and handles the majority of everyday tasks (classification, extraction, short answers, drafts) without a visible drop in quality. Reasoning-focused models cost more still, because they generate a lot of hidden "thinking" tokens before producing their final answer.
A good default is to prototype on the flagship until you know the task works, then downgrade to mini and re-check quality. Teams that skip that step routinely overspend by 5–10× on tasks the cheaper model would have handled fine.
Estimating a realistic bill
The formula is unglamorous but reliable:
- Requests per day × average input tokens × input price per million ÷ 1,000,000
- + Requests per day × average output tokens × output price per million ÷ 1,000,000
- × 30 for a monthly estimate
Two numbers people consistently underestimate: chat history and system prompts. In a multi-turn conversation, every previous message is re-sent as input on every new turn — a 20-message thread bills 20× the tokens on turn 20, not once. And system prompts that grow to include examples, style guides, or tool descriptions can quietly become the single biggest line item in your bill.
Where costs surprise people
Three patterns account for most of the "why is my bill so high?" moments: long chat histories that never get summarised or trimmed; retrieval systems that stuff large document chunks into every request; and reasoning models left on for tasks that don't need them. All three are fixable once you can see which requests are driving spend.
Do the maths before you commit
Before you migrate a workflow from a subscription to the API — or the other way — run your expected volume through the API cost calculator. Punch in your real average token counts (not the defaults) and you'll usually get a monthly figure within 10–20% of what you'll actually see on the invoice.
Frequently asked questions
- Is the OpenAI API cheaper than ChatGPT Plus?
- It depends on volume. Light, occasional usage on the API is usually cheaper than a $20/month subscription. Heavy daily conversational use almost always costs more on the API than on Plus.
- Do I get billed for failed or cancelled requests?
- You're billed for tokens the model actually processed. A cancelled request still consumes any input tokens the model has already read and any output tokens it has already generated before you cancelled.
- Are there free credits when I sign up?
- OpenAI has historically offered small trial credits for new accounts, but they expire quickly and are not something to plan a project around. Budget as though you're paying from the first request.