OpenAI API pricing (2026): what each GPT model costs per token, and how to pay less

updated ยท prices checked on vendor pages

quick answer: OpenAI API pricing, as of nov 1, 2026, per million tokens (input / output): GPT-6.1 Sol is $2 / $10, GPT-6.1 Terra is $1 / $5, GPT-6 Luna is $0.10 / $0.50 and GPT-6 Astra is $10 / $50, for prompts up to 272K tokens. longer prompts cost more. batch and flex halve those prices, fast mode doubles them, and cached input is a fraction of the normal rate.

the OpenAI API is #3 of 10 on our LLM APIs & models board (8.5/10). it's the biggest ecosystem going, and the GPT-6 range runs from cheap-as-chips Luna to big-brain Astra. it's not our #1 for coding agents (that's the Claude API), but it's the safe default for general-purpose and multimodal apps. here's what it costs.

the price per model

as of nov 1, 2026, from OpenAI's API pricing page, per million tokens, short context (up to 272K input tokens):

model input output cached input batch / flex (input / output)
GPT-6 Astra $10 $50 $1 $5 / $25
GPT-6.1 Sol $2 $10 $0.10 $1 / $5
GPT-6.1 Terra $1 $5 $0.05 $0.50 / $2.50
GPT-6 Luna $0.10 $0.50 $0.01 $0.05 / $0.25
GPT-6 Sol $2 $10 $0.20 $1 / $5

long context (over 272K input tokens) costs roughly double on input: GPT-6.1 Sol is $4 / $15, GPT-6.1 Terra $2 / $7.50, GPT-6 Luna $0.20 / $0.75 and GPT-6 Astra $20 / $75.

older models are still listed, often at a higher price than the new ones: GPT-5.6 Sol is $4 / $20 (OpenAI says its promotional pricing runs at least until nov 21, 2026), GPT-5.5 is $5 / $30 and GPT-5.4 is $2.50 / $15. so GPT-6.1 Sol is cheaper per token than the GPT-5 generation it replaces. if you're still on an old model id, check the table before you assume it's the bargain.

which model should you pay for?

a rough sum, our arithmetic on the list prices: an agent run that reads 1 million input tokens and writes 100,000 output tokens costs about $3 on GPT-6.1 Sol ($2 + $1), $1.50 on GPT-6.1 Terra, $0.15 on GPT-6 Luna and $15 on GPT-6 Astra, with no caching and every request under 272K tokens.

how to pay less

the extras that show up on the bill

is the OpenAI API free?

OpenAI's pricing page doesn't list a free tier, so we don't claim one: plan on paying per token from the first request. the one model it lists as free is the moderation model.

if you want OpenAI's coding agent in your terminal on a monthly plan rather than per token, that's Codex: see Codex pricing.

OpenAI API vs the other LLM APIs

the rest of the field

the table: the rest of the field
rank tool best for free tier paid from numptr score
#3 OpenAI API general-purpose and multimodal apps unknown GPT-6.1 Sol $2/$10 per M tokens 8.5/10
#1 Anthropic Claude API coding agents, tool use small amount of free credits for new API users Sonnet 5.5 $2/$10 per M tokens 9.0/10
#2 Google Gemini API long-context and agentic tasks on a budget free tier on Flash models (Argon not on free tier) Gemini 4 Argon $2/$10 per M tokens through nov 30, 2026, then $4/$20 8.5/10
#4 OpenRouter prototyping across providers 25+ free models, 50 requests a day pay-as-you-go at model list prices, 5.5% fee on credit purchases 8.5/10
#6 DeepSeek API cheap agent and coding workloads on a tight token budget unknown: no free tier stated (the pricing page mentions a granted balance) deepseek-flash $0.30/$1.20 per M tokens at peak, $0.15/$0.60 off-peak 8.0/10

faq

how much does the OpenAI API cost?

per million tokens, as of nov 1, 2026, for prompts up to 272K tokens: GPT-6.1 Sol $2 input / $10 output, GPT-6.1 Terra $1 / $5, GPT-6 Luna $0.10 / $0.50, GPT-6 Astra $10 / $50. batch and flex are half price.

what's the cheapest OpenAI model on the API?

of the GPT-6 range, GPT-6 Luna at $0.10 per million input tokens and $0.50 per million output tokens, or $0.05 / $0.25 on batch. older models like gpt-5-nano are listed at $0.05 / $0.40.

is the OpenAI API free?

the pricing page doesn't list a free tier, so assume you pay per token. the moderation model is the one listed as free.

how much is GPT-6.1 Sol on the API?

$2 per million input tokens and $10 per million output tokens up to 272K input tokens, $4 / $15 above that. cached input is $0.10, batch is $1 / $5 and fast mode is $4 / $20.

is the batch API cheaper on OpenAI?

yes, half price on input and output. flex gives the same price on the GPT-6 models.

tools in this guide

sources

checked 2026-11-01

numptrlast price check 224 prices 74 toolsbuild 0ea800d45 · nov 1