OpenAI API pricing: what each GPT model costs and how to calculate your bill
Updated 2026-11-26
Model page: GPT-6.2 Sol API — pricing, specs and the playground
OpenAI bills the API per token, separately for input and output, and output costs five times as much as input on every current GPT-6 model. That ratio matters more than the headline price: a job that reads a lot and writes little (classification, extraction, search over documents) is dominated by the input price, while a job that writes long answers or reasons at length is dominated by output. Reasoning tokens are billed as output even though you never see them.
The prices here are OpenAI's published standard rates as they read on 26 November 2026, next to the APIMODELS price for the same models. One date to note: OpenAI lists GPT-5.6 Sol at $4 and $20 as promotional pricing that runs until 30 November 2026, so that row may change within days.
GPT model prices per million tokens
Standard processing, requests up to 272K input tokens. Each cell is input / cached input / output in US dollars per million tokens.
| Model | OpenAI standard rate | On APIMODELS | Difference |
|---|---|---|---|
| GPT-6.2 Astra | $8.00 / $0.40 / $40.00 | $4.00 / $0.20 / $20.00 | 50% below |
| GPT-6.2 Sol | $2.00 / $0.10 / $10.00 | $1.00 / $0.05 / $5.00 | 50% below |
| GPT-6.1 Sol | $2.00 / $0.10 / $10.00 | $1.00 / $0.05 / $5.00 | 50% below |
| GPT-6.1 Terra | $1.00 / $0.05 / $5.00 | $0.50 / $0.025 / $2.50 | 50% below |
| GPT-6 Astra | $10.00 / $1.00 / $50.00 | $3.40 / $0.34 / $17.00 | 66% below |
| GPT-6 Sol | $2.00 / $0.20 / $10.00 | $1.00 / $0.10 / $5.00 | 50% below |
| GPT-6 Luna | $0.10 / $0.01 / $0.50 | $0.09 / $0.009 / $0.45 | 10% below |
| GPT-5.6 Sol | $4.00 / $0.40 / $20.00 (promotional until 30 Nov 2026) | $1.324 / $0.132 / $6.618 | 67% below |
| GPT-5.6 Terra | $2.00 / $0.20 / $12.00 | $0.551 / $0.055 / $3.309 | 72% below |
| GPT-5.6 Luna | $0.20 / $0.02 / $1.20 | $0.18 / $0.018 / $0.96 | 10% to 20% below |
What changes the bill besides the per-token price
| Rule | Effect on OpenAI's standard price | Worth knowing |
|---|---|---|
| Long context | Above 272K input tokens: input ×2, cached input ×2, output ×1.5 | It applies to the whole request, not only the tokens above 272K |
| Cached input | 5% to 10% of the input price on GPT-6 models | Writing to the cache costs more than normal input: ×1.25 for 30 minutes, ×2.5 for 12 hours |
| Batch | 50% of standard | Asynchronous; results are not immediate |
| Fast (called Priority before 30 July 2026) | ×2 on current models | Older models differ: GPT-5.5 is ×2.5 |
| Ultrafast | ×6 on GPT-6 Astra and GPT-6.1 Sol; ×3 on GPT-6.2 until 28 Feb 2027, then ×6 | Has its own rate limits |
| Background | 30% lower with a 2-hour window, 40% lower with an 8-hour window | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna only |
| Flex | 50% of standard | Not being added to new models; GPT-6.2 does not have it |
| Regional processing | +10% on models released from 5 March 2026 | Data-residency endpoints |
| Built-in tools | Web search $10 per 1,000 calls; file search $2.50 per 1,000 calls | Billed on top of tokens; searched content is billed as tokens too |
Worked examples you can check
Standard processing, no cache hits, every request under 272K input tokens. The third column is a month of traffic that adds up to 1M input and 100K output tokens across many requests, not one request of that size.
| Model | 10K in + 1K out | 100K in + 4K out | 1M in + 100K out in total |
|---|---|---|---|
| GPT-6.2 Astra, OpenAI ($8 / $40) | $0.08 + $0.04 = $0.12 | $0.80 + $0.16 = $0.96 | $8.00 + $4.00 = $12.00 |
| GPT-6.2 Astra, APIMODELS ($4 / $20) | $0.04 + $0.02 = $0.06 | $0.40 + $0.08 = $0.48 | $4.00 + $2.00 = $6.00 |
| GPT-6.2 Sol, OpenAI ($2 / $10) | $0.02 + $0.01 = $0.03 | $0.20 + $0.04 = $0.24 | $2.00 + $1.00 = $3.00 |
| GPT-6.2 Sol, APIMODELS ($1 / $5) | $0.01 + $0.005 = $0.015 | $0.10 + $0.02 = $0.12 | $1.00 + $0.50 = $1.50 |
| GPT-6 Luna, OpenAI ($0.10 / $0.50) | $0.001 + $0.0005 = $0.0015 | $0.01 + $0.002 = $0.012 | $0.10 + $0.05 = $0.15 |
| GPT-6 Luna, APIMODELS ($0.09 / $0.45) | $0.0009 + $0.00045 = $0.00135 | $0.009 + $0.0018 = $0.0108 | $0.09 + $0.045 = $0.135 |
How to calculate your own cost
1. Count input tokens from real prompts. Include the system prompt, tool definitions and any history you resend each turn; in a chat, the whole conversation is input again on every message.
2. Estimate output generously for reasoning models. Reasoning tokens are billed as output. Take the usage object from a few real responses rather than guessing from the visible answer.
3. Apply the formula per request, then multiply by volume. Check each request against 272K before you multiply: one oversized request is billed at the long-context rate in full.
4. Subtract what caching saves, if your prompts share a long prefix. A cached input token costs 5% to 10% of a normal one on GPT-6 models, but the first write costs more than normal input, so caching pays off only when the prefix is reused.
5. Use the token calculator for the counting. Our token calculator (linked under Related pages below) counts the tokens in a pasted prompt and multiplies by the APIMODELS price of the model you pick. It does not model cache hits or the 272K rule, so apply those two by hand.
How billing works on APIMODELS
You pay per token from a prepaid balance, at the prices in the first table, through the same OpenAI-style endpoint. The 272K long-context rule applies to these GPT models on APIMODELS as well: input ×2 and output ×1.5 for a request above 272K input tokens. Failed requests are not charged.
Before a request runs we reserve its worst case: the estimated input plus your max_tokens at the output price, with a 20% margin. If the balance cannot cover that, the request is rejected with a 402 before anything runs, and the message states the amount needed. Only actual usage is charged afterwards, so a large max_tokens does not cost more, but it does need a larger balance to start.
What we do not have: OpenAI's own account features such as usage tiers, organization spend limits and data-residency endpoints. If you need an OpenAI enterprise agreement or regional processing, buy from OpenAI directly.
Inicio rápido
cURL
# The usage object in the response is what you are billed on
curl https://api.apimodels.app/v1/chat/completions \
-H "Authorization: Bearer $APIMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.2-sol",
"max_tokens": 512,
"messages": [{"role": "user", "content": "Explain prompt caching in two sentences."}]
}'Python
import openai
client = openai.OpenAI(
base_url="https://api.apimodels.app/v1",
api_key="sk_...your_apimodels_key...",
)
# USD per 1M tokens on APIMODELS, standard rate, request under 272K input tokens
PRICE = {"gpt-6.2-sol": {"in": 1.00, "cached": 0.05, "out": 5.00}}
r = client.chat.completions.create(
model="gpt-6.2-sol",
max_tokens=512,
messages=[{"role": "user", "content": "Explain prompt caching in two sentences."}],
)
u, p = r.usage, PRICE["gpt-6.2-sol"]
details = getattr(u, "prompt_tokens_details", None)
cached = (getattr(details, "cached_tokens", 0) or 0) if details else 0
fresh = u.prompt_tokens - cached
long_ctx = u.prompt_tokens > 272_000 # whole request: input x2, output x1.5
cost = (fresh * p["in"] + cached * p["cached"]) / 1e6 * (2 if long_ctx else 1) \
+ u.completion_tokens * p["out"] / 1e6 * (1.5 if long_ctx else 1)
print(f"in={u.prompt_tokens} (cached {cached}) out={u.completion_tokens} cost=${cost:.6f}")Preguntas frecuentes
How do I calculate my OpenAI API cost?
Multiply input tokens by the input price and output tokens by the output price, each per million, and add them. For GPT-6.2 Sol at $2 and $10, a request with 10,000 input and 1,000 output tokens costs $0.02 + $0.01 = $0.03. Then check three adjustments: the 272K long-context rate, cached input, and the processing tier you chose.
How much does the OpenAI API cost per month?
There is no monthly fee; you pay for the tokens you use. As a reference point, 1 million input and 100,000 output tokens in a month cost $3.00 on GPT-6.2 Sol, $12.00 on GPT-6.2 Astra and $0.15 on GPT-6 Luna at OpenAI's standard rate. Your usage tier also sets a monthly ceiling: $100 on Free, $500 on Build, $5,000 on Launch and $200,000 on Grow.
Why is my actual OpenAI bill higher than my estimate?
The usual causes are reasoning tokens billed as output, conversation history resent as input on every turn, a request that crossed 272K input tokens and was billed at 2× and 1.5× in full, cache writes that cost more than normal input, a Fast or Ultrafast tier at 2× to 6×, and built-in tools such as web search at $10 per 1,000 calls. Compare the usage object of real responses with your estimate to see which one it is.
What is the difference between standard and Batch pricing?
Batch costs half the standard rate in exchange for asynchronous processing: you submit a file of requests and collect the results later. GPT-6.2 Sol is $1 and $5 per million tokens on Batch against $2 and $10 on standard. Batch has its own limit on queued input tokens and does not use your per-minute rate limit, so it also helps with 429 errors on bulk jobs.
Is the OpenAI API free?
No. OpenAI's Free usage tier is a spending ceiling of $100 a month for accounts in supported countries, not free tokens; you still pay for what you use. On APIMODELS, new accounts on consumer email domains get a one-time $0.30 trial credit, which is enough for a few short chat requests on GPT-6.2 Sol, and after that you top up from $10.
