OpenAI API pricing: cost per 1M tokens

Every OpenAI API model with its price per million input and output tokens, cached input and batch prices, read from OpenAI's official pricing page. Current models start at $0.05 per 1M input tokens (gpt-5-nano).

Standard tier, US dollars per 1M tokens, checked on 4 December 2026 against OpenAI official pricing.

ModelInputOutputCached inputBatch in / outNotes
gpt-6.2-astra$8.00$40.00$0.40$4.00 / $20.00Over 272K input tokens: $16.00 input, $60.00 output per 1M.
gpt-6.2-sol$2.00$10.00$0.10$1.00 / $5.00Over 272K input tokens: $4.00 input, $15.00 output per 1M.
gpt-6-astra$10.00$50.00$1.00$5.00 / $25.00Over 272K input tokens: $20.00 input, $75.00 output per 1M.
gpt-6.1-sol$2.00$10.00$0.10$1.00 / $5.00Over 272K input tokens: $4.00 input, $15.00 output per 1M.
gpt-6.1-terra$1.00$5.00$0.05$0.50 / $2.50Over 272K input tokens: $2.00 input, $7.50 output per 1M.
gpt-6-luna$0.10$0.50$0.01$0.05 / $0.25Over 272K input tokens: $0.20 input, $0.75 output per 1M.
gpt-6-sol$2.00$10.00$0.20$1.00 / $5.00Over 272K input tokens: $4.00 input, $15.00 output per 1M.
gpt-5.6-sol$5.00$30.00$0.50$2.50 / $15.00Over 272K input tokens: $10.00 input, $45.00 output per 1M.
gpt-5.6-terra$2.00$12.00$0.20$1.00 / $6.00Over 272K input tokens: $4.00 input, $18.00 output per 1M.
gpt-5.6-luna$0.20$1.20$0.02$0.10 / $0.60Over 272K input tokens: $0.40 input, $1.80 output per 1M.
gpt-5.5$5.00$30.00$0.50$2.50 / $15.00Over 272K input tokens: $10.00 input, $45.00 output per 1M.
gpt-5.5-pro$30.00$180.00–$15.00 / $90.00Over 272K input tokens: $60.00 input, $270.00 output per 1M.
gpt-5.4$2.50$15.00$0.25$1.25 / $7.50Over 272K input tokens: $5.00 input, $22.50 output per 1M.
gpt-5.4-pro$30.00$180.00–$15.00 / $90.00Over 272K input tokens: $60.00 input, $270.00 output per 1M.
gpt-5.4-mini$0.75$4.50$0.075$0.375 / $2.25
gpt-5.4-nano$0.20$1.25$0.02$0.10 / $0.625
gpt-5.2$1.75$14.00$0.175$0.875 / $7.00
gpt-5.2-pro$21.00$168.00–$10.50 / $84.00
gpt-5.1$1.25$10.00$0.125$0.625 / $5.00
gpt-5$1.25$10.00$0.125$0.625 / $5.00
gpt-5-mini$0.25$2.00$0.025$0.125 / $1.00
gpt-5-nano$0.05$0.40$0.005$0.025 / $0.20
gpt-5-pro$15.00$120.00–$7.50 / $60.00
gpt-4.1$2.00$8.00$0.50$1.00 / $4.00
gpt-4.1-mini$0.40$1.60$0.10$0.20 / $0.80
gpt-4o$2.50$10.00$1.25$1.25 / $5.00
gpt-4o-mini$0.15$0.60$0.075$0.075 / $0.30
o3-pro$20.00$80.00–$10.00 / $40.00
o3$2.00$8.00$0.50$1.00 / $4.00

Compare these prices with other providers and estimate a monthly bill in the AI API cost calculator.

Questions

How much does the OpenAI API cost?

Current GPT models cost from $0.05 to $30.00 per million input tokens and from $0.40 to $180.00 per million output tokens. With 2,000 input and 500 output tokens per request, 10,000 requests a month on gpt-5-nano cost about $3.00.

Does the OpenAI API have a free tier?

OpenAI's pricing page lists no free tier for its models: tokens are billed from the first request. The moderation model is the one model it lists as free.

How do I lower my OpenAI API bill?

Send work that can wait to the batch API, which costs about half (see the batch column). Keep the repeated part of your prompt at the start so it is billed at the cached input price. Cap the length of answers, since output tokens cost the most, and try the smaller models for routine tasks.

What is long context pricing?

For the models with two prices, OpenAI charges the higher one when a request has more than 272K input tokens. The Notes column lists it.

Other AI API prices

Claude API pricing · Gemini API pricing · Token calculator · Is ChatGPT down?