OpenAI API pricing
What OpenAI charges for each GPT text model on its API, in US dollars per million tokens, with cached input, cache writes, long-context, Batch, Fast and Ultrafast rates and the price of built-in tools.
Source: OpenAI API pricing and deprecations, checked 27 November 2026. Standard tier list prices, before tax.
GPT-6 models
| Model | Input | Output | Cached input | Cache write 30 min | Cache write 12 h | Long input | Long output | Batch input | Batch output |
|---|---|---|---|---|---|---|---|---|---|
GPT-6.2 Astragpt-6.2-astra | $8 | $40 | $0.40 | $10 | $20 | $16 | $60 | $4 | $20 |
GPT-6.2 Solgpt-6.2-sol | $2 | $10 | $0.10 | $2.50 | $5 | $4 | $15 | $1 | $5 |
GPT-6 Astragpt-6-astra | $10 | $50 | $1 | $12.50 | $25 | $20 | $75 | $5 | $25 |
GPT-6.1 Solgpt-6.1-sol | $2 | $10 | $0.10 | $2.50 | $5 | $4 | $15 | $1 | $5 |
GPT-6.1 Terragpt-6.1-terra | $1 | $5 | $0.05 | $1.25 | $2.50 | $2 | $7.50 | $0.50 | $2.50 |
GPT-6 Lunagpt-6-luna | $0.10 | $0.50 | $0.01 | $0.125 | $0.25 | $0.20 | $0.75 | $0.05 | $0.25 |
GPT-6 Solgpt-6-sol | $2 | $10 | $0.20 | $2.50 | $5 | $4 | $15 | $1 | $5 |
Per million tokens. Input, output, cached input and cache writes are the short-context prices (272,000 input tokens or fewer); long input and long output apply above 272,000. Batch is half the short-context Standard price.
Earlier models
| Model | Input | Output | Cached input | Cache write 30 min | Cache write 12 h | Long input | Long output | Batch input | Batch output |
|---|---|---|---|---|---|---|---|---|---|
GPT-5.6 Solgpt-5.6-sol. OpenAI lists this as promotional pricing until 30 November 2026 | $4 | $20 | $0.40 | $5 | $10 | $8 | $30 | $2 | $10 |
GPT-5.6 Terragpt-5.6-terra | $2 | $12 | $0.20 | $2.50 | $5 | $4 | $18 | $1 | $6 |
GPT-5.6 Lunagpt-5.6-luna | $0.20 | $1.20 | $0.02 | $0.25 | $0.50 | $0.40 | $1.80 | $0.10 | $0.60 |
GPT-5.5gpt-5.5 | $5 | $30 | $0.50 | - | - | $10 | $45 | $2.50 | $15 |
GPT-5.5 Progpt-5.5-pro | $30 | $180 | - | - | - | $60 | $270 | $15 | $90 |
GPT-5.4gpt-5.4 | $2.50 | $15 | $0.25 | - | - | $5 | $22.50 | $1.25 | $7.50 |
GPT-5.4 Progpt-5.4-pro | $30 | $180 | - | - | - | $60 | $270 | $15 | $90 |
GPT-5.4 minigpt-5.4-mini | $0.75 | $4.50 | $0.075 | - | - | - | - | $0.375 | $2.25 |
GPT-5.4 nanogpt-5.4-nano. Deprecated: shuts down 1 April 2027 | $0.20 | $1.25 | $0.02 | - | - | - | - | $0.10 | $0.625 |
GPT-5.2gpt-5.2 | $1.75 | $14 | $0.175 | - | - | - | - | $0.875 | $7 |
GPT-5.2 Progpt-5.2-pro | $21 | $168 | - | - | - | - | - | $10.50 | $84 |
GPT-5.1gpt-5.1. Deprecated: shuts down 1 April 2027 | $1.25 | $10 | $0.125 | - | - | - | - | $0.625 | $5 |
GPT-4.1gpt-4.1. Deprecated: shuts down 14 January 2027 | $2 | $8 | $0.50 | - | - | - | - | $1 | $4 |
GPT-4.1 minigpt-4.1-mini. Deprecated: shuts down 14 January 2027 | $0.40 | $1.60 | $0.10 | - | - | - | - | $0.20 | $0.80 |
GPT-4ogpt-4o. Deprecated: shuts down 14 January 2027 | $2.50 | $10 | $1.25 | - | - | - | - | $1.25 | $5 |
GPT-4o minigpt-4o-mini. Deprecated: shuts down 14 January 2027 | $0.15 | $0.60 | $0.075 | - | - | - | - | $0.075 | $0.30 |
A dash means OpenAI prints no price for that column. Left out: gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro, which OpenAI shuts down on 11 December 2026, and the trusted-access GPT-6 Cyber and GPT-6 Rosalind models. Shutdown dates for all vendors: AI model deprecation tracker.
Fast and Ultrafast
Fast mode (called Priority processing until 30 July 2026) costs twice the Standard price on the GPT-6 family:
| Model | Fast input | Fast output |
|---|---|---|
| GPT-6.2 Astra | $16 | $80 |
| GPT-6.2 Sol | $4 | $20 |
| GPT-6 Astra | $20 | $100 |
| GPT-6.1 Sol | $4 | $20 |
| GPT-6.1 Terra | $2 | $10 |
| GPT-6 Luna | $0.20 | $1 |
| GPT-6 Sol | $4 | $20 |
Ultrafast is offered on four models. GPT-6 Astra costs $60 input and $300 output, and GPT-6.1 Sol $12 and $60 (6 times Standard). GPT-6.2 Astra ($24 and $120) and GPT-6.2 Sol ($6 and $30) are at 3 times Standard through 28 February 2027, then 6 times Standard from 1 March 2027.
Discounts and surcharges
- Batch API: half the Standard input and output price.
- Background requests on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna: 30 percent below Standard with a 2-hour completion window, 40 percent below with an 8-hour window.
- Flex (beta): priced the same as Batch on the models that still have it. OpenAI is winding Flex down and is not adding it to new models.
- Regional processing (data residency) endpoints: 10 percent more for models released on or after 5 March 2026. FedRAMP endpoints are also 10 percent more.
Built-in tools
- Web search: $10 per 1,000 calls plus the search content tokens at the model’s rates. Web search preview on non-reasoning models: $25 per 1,000 calls, with search content tokens free.
- Hosted Shell and Code Interpreter containers, per 20-minute session: 1 GB $0.03, 4 GB $0.12, 16 GB $0.48, 64 GB $1.92.
- File search: storage $0.10 per GB a day after the first free GB, and $2.50 per 1,000 tool calls.
OpenAI’s image, audio, transcription and embedding prices are compared with other vendors on image generation API pricing, speech-to-text API pricing, text-to-speech API pricing and embedding API pricing.
API compared with a ChatGPT plan
The API is paid per token; ChatGPT plans are a monthly price. The plan prices, from OpenAI’s ChatGPT pricing page:
- Free: $0
- Go: $8/month
- Plus: $20/month. Codex on web, CLI, IDE and iOS; credits can extend usage.
- Pro: $100, $200 or $500/month. Three usage tiers; Ultrafast mode on Pro $500; no five-hour limit.
Every vendor’s plans side by side: AI subscription pricing. The same layout for other vendors: Claude API pricing, Gemini API pricing, DeepSeek API pricing, Grok API pricing, Mistral API pricing. A monthly figure for your own traffic: AI token cost calculator.
Frequently asked questions
How much does the OpenAI API cost per million tokens?+
GPT-6.2 Astra: $8 input and $40 output. GPT-6.2 Sol: $2 input and $10 output. GPT-6 Astra: $10 input and $50 output. GPT-6.1 Sol: $2 input and $10 output. GPT-6.1 Terra: $1 input and $5 output. GPT-6 Luna: $0.10 input and $0.50 output. GPT-6 Sol: $2 input and $10 output. These are Standard-tier prices for prompts up to 272,000 input tokens, in US dollars.
Is the OpenAI API included in ChatGPT Plus or Pro?+
No. ChatGPT plans and the OpenAI API are billed separately: the API is paid per token through the OpenAI API platform, while ChatGPT plans are a monthly price.
What counts as long context in OpenAI pricing?+
OpenAI prices requests with more than 272,000 input tokens at its long-context rates, which are about double the short-context input price on most current models. Prompts of 272,000 tokens or fewer use the short-context rates.
How much cheaper is the OpenAI Batch API?+
Batch input and output tokens cost half the Standard price on every model in the table. Background requests on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna cost 30 percent less with a 2-hour completion window and 40 percent less with an 8-hour window.
What do Fast and Ultrafast cost?+
Fast (formerly Priority processing) costs twice the Standard rate on the GPT-6 family. Ultrafast costs 6 times Standard on GPT-6 Astra and GPT-6.1 Sol; on GPT-6.2 Astra and GPT-6.2 Sol it is 3 times Standard through 28 February 2027 and 6 times from 1 March 2027.
Does OpenAI vs Anthropic API pricing differ?+
Both bill per million tokens with cached-input, cache-write and batch rates; the per-model prices differ. Anthropic’s current rates are on the Claude API pricing page linked below, in the same layout as this page.
Related: how to get an OpenAI API key for free, OpenRouter vs direct API pricing, AI model rankings.