Pular para o conteúdo principal
OpenAI API Pricing: GPT 6 Astra, Sol, Luna per 1M (2026)
Guides

OpenAI API pricing: what every GPT model costs per million tokens, and which one is worth paying for

OpenAI API pricing per 1M tokens for GPT 6 Astra, Sol, Luna and GPT 5: input, output, cache and long-context rates, real request costs, and which to pick.

UnificAlly Model Research TeamComo pesquisamos
12 min de leituraAtualizado 16 de novembro de 2026

OpenAI API pricing works per token in three lines: input, output, and cached input, with a fourth for cache writes on the GPT 6 and GPT 5.6 models. On UnificAlly the GPT 6.1 Sol API costs $0.30 / $1.50 per million input / output tokens and GPT 6 Luna starts at $0.015 per million input tokens. As of November 16, 2026, OpenAI sells four current GPT models, and the one most teams default to, GPT 6 Astra, is the one the numbers argue against.

TL;DR: Pay for GPT 6.1 Sol. It scores 75.2% on DeepSWE v1.1 against 74.1% for GPT 6 Astra, edges Astra on Arena's text board (1481 against 1474), and costs $0.30 per million input tokens on our card against $1.50 for Astra. Use the new GPT 6.1 Terra for computer use and writing at volume, GPT 6 Luna for routing and extraction, and Astra only for science-heavy agents. Keep prompts under 272,000 tokens: past that line OpenAI reprices the whole request, not just the overflow.

OpenAI API pricing per model (November 2026)

The "ChatGPT API" people search for is OpenAI's Chat Completions API, and ChatGPT API pricing is the same per-token list as every other OpenAI endpoint. OpenAI's own rates are on OpenAI's API pricing page. Our GPT API pricing per million tokens, for prompts up to 272,000 tokens:

ModelInputCached inputOutput
GPT 6 Astra$1.50$0.15$7.50
GPT 6.1 Sol$0.30$0.015$1.50
GPT 6.1 Terra$0.15$0.0075$0.75
GPT 6 Sol$0.30$0.03$1.50
GPT 6 Luna$0.015$0.0015$0.075
GPT 5.6 Sol$0.75$0.075$4.50
GPT 5.6 Terra$0.375$0.0375$2.25
GPT 5.6 Luna$0.15$0.015$0.90
GPT 5.5$0.75$0.075$4.50
GPT 5.4$0.375$0.0375$2.25

Read it top to bottom and the GPT 6 API pricing ladder is plain: GPT 6 Luna is the cheapest OpenAI API model by a wide margin, Astra the most expensive, and GPT 6.1 Terra now sits between Luna and the Sol line. GPT 6.1 Sol pricing matches GPT 6 Sol on input and output, with cheaper cached input, so GPT 6 Sol pricing only matters to code pinned to the older ID. Every OpenAI model we serve is collected on the OpenAI API overview.

Two dates sit behind this table. OpenAI's promotional list price for GPT 5.6 Sol runs until November 30, 2026, which changes GPT 5.6 Sol pricing on OpenAI's own side after that date. And OpenAI renamed its Priority processing tier "Fast mode" on July 30, 2026, so older docs and invoices use the old name.

Which GPT model to pay for: GPT 6.1 Sol, with Terra and Luna under it

OpenAI's published DeepSWE v1.1 scores, which run long software tasks in real codebases:

ModelDeepSWE v1.1
GPT 6.1 Sol75.2%
GPT 6 Astra74.1%
GPT 5.6 Sol72.7%
GPT 6 Sol (max effort)68.8%
GPT 6 Luna (max effort)66.6%

DeepSWE v1.1 scores for GPT 6.1 Sol, GPT 6 Astra, GPT 5.6 Sol, GPT 6 Sol and GPT 6 Luna, OpenAI's published results

And the chat-preference view, from Arena's text leaderboard (board dated November 11, 2026, pulled November 16):

ModelArena text scoreRank
GPT 5.6 Sol (xhigh)1485#23
GPT 6.1 Sol (max)1481#30
GPT 6 Astra (max)1474#42
GPT 6 Sol (max)1457#68
GPT 6 Luna (max)1441#99
  • GPT 6.1 Sol is the default. It beats Astra on DeepSWE, lands within 2.1 points of Astra on OSWorld 2.0 at max effort, and sits above it on Arena. GPT 6.1 Sol pricing on our card is a fraction of Astra's.
  • GPT 6.1 Terra is new, and it is the computer-use and writing tier. OpenAI released it on October 26, 2026. On Agents' Last Exam at medium effort OpenAI puts it level with Astra, it finished those tasks more than three times faster than Astra or 6.1 Sol, and its error rate on OpenAI's hard factual prompts at low effort dropped from 53.6% on GPT 5.6 Terra to 16.7%. It is weaker at hard coding: 50.3% on Terminal-Bench 4.0 against 58.2% for Astra, and OpenAI itself steers the hardest coding to Sol and Astra.
  • GPT 6 Luna is the cheap OpenAI API for volume. Classification, extraction, routing, short replies. 66.6% on DeepSWE at max effort is respectable for its rate, but it ranks #99 on Arena, so keep it away from user-facing chat that has to sound polished.
  • GPT 6 Astra pricing buys science. Astra scores 68.1% on Terminal-Bench Science 0.1, the top OpenAI result, and OpenAI recommends it for the hardest research work. For coding or tool use, you pay several times Sol's rate for no measured gain.
  • The GPT 5 line is a holdover. GPT 5.6 Sol still edges 6.1 Sol on Arena, by 4 points inside the margin of error, but on our card it costs more per input token than 6.1 Sol and scores lower on DeepSWE. GPT 5.5 API pricing and GPT 5.4 API pricing are also above 6.1 Sol on input. Keep a GPT 5 model only for a pipeline you have regression-tested against it.

We expected Astra to win somewhere a developer would notice. On these numbers it wins on science agents and nowhere else.

OpenAI token pricing: the 272K line, cache writes and processing tiers

Every GPT request bills input tokens (system prompt, history, documents, tool definitions), output tokens (including reasoning tokens the response does not show you), cached input, and on GPT 6 and GPT 5.6 a cache-write line. That is the whole of OpenAI token pricing; what changes the bill is how the lines interact.

The 272K line reprices the entire request. On GPT 6 Astra, GPT 6.1 Sol, GPT 6.1 Terra, GPT 6 Sol, GPT 6 Luna and the GPT 5.6 models, a prompt over 272,000 tokens moves every token of that request to the long-context rates: input, cached input and cache writes double, output goes up by half. Both tiers for GPT 6.1 Sol:

Nossas tarifas em
ModelOptionOur rate
GPT 6.1 Solinput (prompt up to 272k)$0.30/1M tokens
output (prompt up to 272k)$1.50/1M tokens
cache read (prompt up to 272k)$0.015/1M tokens
cache creation (prompt up to 272k)$0.375/1M tokens
input (prompt over 272k)$0.60/1M tokens
output (prompt over 272k)$2.25/1M tokens
cache read (prompt over 272k)$0.03/1M tokens
cache creation (prompt over 272k)$0.75/1M tokens

A worked case on GPT 6.1 Sol. A 270,000-token prompt bills its input at $0.081. Add 30,000 tokens of retrieval results and the 300,000-token prompt bills at the doubled rate, which works out to $0.18 for input alone, more than twice the cost for 11% more text. Trimming history or retrieved chunks to stay under 272,000 is the cheapest optimization in this whole guide. On our card GPT 5.5 and GPT 5.4 bill one rate at any prompt length.

Cache writes come in two lengths. OpenAI's rate card lists a 30-minute write and a 12-hour write next to cached input for the GPT 6 and GPT 5.6 models. With GPT 6, OpenAI also stopped breaking the cache when you change reasoning effort or switch tools on and off mid-conversation, and added explicit breakpoints that let you choose where a cached prefix ends. Our Chat Completions response reports the reused part as usage.prompt_tokens_details.cached_tokens, and reasoning as usage.completion_tokens_details.reasoning_tokens.

Processing tiers are an OpenAI-side choice. On OpenAI's own API, Batch and Flex bill at half the standard rate for work that can wait, Fast mode bills at double, and a new Ultrafast tier exists only for GPT 6 Astra and GPT 6.1 Sol (OpenAI quotes up to 8x faster generation for 6.1 Sol in Codex). That half-price rule answers OpenAI Batch API pricing. OpenAI also charges 10% extra on regional data-residency and FedRAMP endpoints, for any model released from March 5, 2026 onward. Every figure in our own tables is a plain UnificAlly request at its listed per-token rate.

OpenAI API cost examples (what a real request costs)

The OpenAI API cost of a task is its tokens times the rate. Four cases at UnificAlly rates, all under 272,000 tokens:

TaskTokens (in / out)Input costOutput cost
Answer one question over 8k tokens of retrieved docs, GPT 6.1 Sol9,000 / 600$0.0027$0.0009
Pull fields from 1,000 text invoices of about 4,000 tokens each, GPT 6.1 Terra4M / 400K$0.60$0.30
Tag 100,000 product titles, GPT 6 Luna5M / 500K$0.075$0.0375
Support bot for a month, GPT 6.1 Sol30M / 5M$9$7.50

A single GPT 6.1 Sol question costs a fraction of a cent, which is why ChatGPT API cost for a production app is a volume question. The OpenAI cost per token in the table is the starting point; the input side then shrinks with caching, and the output side with lower reasoning effort. Sending the same invoices as scans changes the input count, so measure a few with usage.prompt_tokens before budgeting a month.

GPT Image pricing

OpenAI's price list covers image generation too. On UnificAlly the GPT Image models bill per image by resolution:

Nossas tarifas em
ModelOptionOur rate
GPT Image 21K$0.03
2K$0.05
4K$0.08
GPT Image 2.5 FlareText input$4.50/1M tokens
Image input$7.20/1M tokens
Image output$27/1M tokens
GPT Image 2.5 SunburstText input$4.50/1M tokens
Image input$7.20/1M tokens
Image output$27/1M tokens

The GPT Image 2 pricing guide works through those rates with examples, and the GPT Image 2.5 API page covers the Flare and Sunburst variants.

Calling GPT 6.1 Sol through an OpenAI-compatible endpoint

OpenAI's platform gives you a key for api.openai.com at OpenAI's rates, with Batch, Flex and Fast mode. A UnificAlly key covers GPT, Claude, Gemini and the image, video and audio models from one balance, with no subscription to cancel. UnificAlly is an independent API, not affiliated with OpenAI.

Send language-model requests to https://direct-api.unifically.com. Our docs explain that the main api.unifically.com host sits behind a proxy whose timeout can cut a long answer short, and the tokens produced before the cut are still billed. Every GPT model answers on /v1/chat/completions, /v1/responses and /v1/messages:

curl -X POST https://direct-api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-6.1-sol",
    "messages": [
      {"role": "user", "content": "Review this pull request and list any bugs you find."}
    ]
  }'

Swap the model ID for any row above (openai/gpt-6.1-terra, openai/gpt-6-luna, openai/gpt-5.5). On our docs, reasoning_effort runs from low to max for 6.1 Sol and from none to max for 6.1 Terra. OpenAI SDK code needs two edits: base_url="https://direct-api.unifically.com/v1" and a UnificAlly key. When streaming, add "stream_options": {"include_usage": true} or the stream ends without a token count to bill against.

OpenAI FAQ

How much does the OpenAI API cost?

On UnificAlly, per million input / output tokens for prompts up to 272,000 tokens: $1.50 / $7.50 for GPT 6 Astra, $0.30 / $1.50 for GPT 6.1 Sol, $0.15 / $0.75 for GPT 6.1 Terra and $0.015 / $0.075 for GPT 6 Luna. That is the OpenAI API price per token, times your volume.

Is the ChatGPT API pricing different from OpenAI API pricing?

No. "ChatGPT API" is the everyday name for OpenAI's Chat Completions API, and it bills per token like every other OpenAI endpoint. ChatGPT Plus, Pro and Business are per-seat subscriptions for the ChatGPT app, a separate price list from the API's OpenAI pricing per token.

Is the OpenAI API free?

No. OpenAI and UnificAlly both bill per token. A new UnificAlly account starts with a $0.50 balance, enough for about 33 million GPT 6 Luna input tokens or 1 million GPT 6.1 Sol input tokens, and the balance has no monthly reset.

What is the cheapest OpenAI API model?

GPT 6 Luna, at $0.015 input and $0.075 output per million tokens on UnificAlly. GPT 6 Luna pricing makes it the cheapest OpenAI API model for classification and extraction; GPT 6.1 Terra is the next step up when the work involves screens or forms.

What does GPT 6.1 Sol cost per million tokens?

On UnificAlly, GPT 6.1 Sol costs $0.30 input and $1.50 output per million tokens, with cached input at $0.015, for prompts up to 272,000 tokens. A longer prompt moves the whole request to the long-context row of the rate card above.

Why is OpenAI API pricing different from what I pay on UnificAlly?

OpenAI's page is the first-party rate card for api.openai.com. UnificAlly is an independent API that sets its own per-token rates, listed in the tables above and billed from one balance across every provider. The request shapes match, so switching means a new base URL and key.

Do cached tokens cost less?

Yes. On UnificAlly, GPT 6.1 Sol cached input is $0.015 per million tokens against $0.30 for fresh input. Keep the system prompt and tool list identical and at the front of every request so the prefix stays cacheable, and check cached_tokens in the usage object to confirm it.


For the other two labs, the Claude API pricing guide and the Gemini API pricing guide use the same layout, and the GPT 6.1 Sol API and GPT 6.1 Terra API playgrounds take a prompt without any code.

Última atualização: 16 de novembro de 2026

Continuar lendo

Relacionado a OpenAI