OpenAI API pricing questions
How much does the OpenAI API cost?
It depends on the model. Per million tokens, GPT-6 Luna costs $0.10 input and $0.50 output, GPT-6.1 Terra $1.00 input and $5.00 output, GPT-6.1 Sol $2.00 input and $10.00 output, GPT-5.6 Sol $4.00 input and $20.00 output and GPT-6 Astra $10.00 input and $50.00 output. A chat reply of 3,000 input and 500 output tokens costs $0.0006 on GPT-6 Luna and $0.011 on GPT-6.1 Sol.
What is the cheapest OpenAI model?
GPT-6 Luna, at $0.10 input and $0.50 output per million tokens. GPT-5 nano is cheaper at $0.05 input and $0.40 output, but it shuts down on December 11, 2026, and its replacement, GPT-5.6 Luna, costs $0.20 input and $1.20 output.
Is GPT-6 cheaper than GPT-5.6?
Yes, at the same tier. Per million tokens, GPT-6.1 Sol costs $2.00 input and $10.00 output and GPT-6 Sol $2.00 input and $10.00 output, while GPT-5.6 Sol costs $4.00 input and $20.00 output. GPT-5.6 is the replacement for the GPT-5 models that shut down on December 11, 2026; GPT-6 is the newer family.
How much does GPT-5 mini cost?
GPT-5 mini costs $0.25 input and $2.00 output per million tokens, but it shuts down on December 11, 2026. Its replacement, GPT-5.6 Terra, costs $2.00 input and $12.00 output. GPT-4.1 costs $2.00 input and $8.00 output and shuts down on January 14, 2027.
What is the most expensive OpenAI model?
GPT-5.5 Pro and GPT-5.4 Pro, at $30.00 input and $180.00 output per million tokens, with no discount for cached input. Among the GPT-6 models, GPT-6 Astra is the most expensive at $10.00 input and $50.00 output.
What is the difference between Standard, Batch, Flex, Fast mode and Ultrafast?
They are service tiers for the same model. Standard is the list price. Batch and Flex cost 50% less in exchange for slower or asynchronous processing. Fast mode, formerly Priority processing, usually costs 2× for faster responses. Ultrafast costs 6× and is offered on GPT-6 Astra and GPT-6.1 Sol only.
Does the OpenAI API charge more for long prompts?
Yes, on GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4. Once a prompt passes 272,000 input tokens, the whole request costs 2× for input and cache and 1.5× for output: $4.00 input and $15.00 output per million on GPT-6.1 Sol.
Which OpenAI models are being retired?
GPT-5, GPT-5 mini, GPT-5 nano, GPT-5 Pro, o3 and o3-pro shut down on December 11, 2026, replaced by GPT-5.6 models. GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini follow on January 14, 2027, and GPT-5.1, GPT-5.3 Codex and GPT-5.4 nano on April 1, 2027. o1, o3-mini, o4-mini and GPT-4.1 nano already shut down on October 23, 2026.
Do the Responses API and Chat Completions cost the same?
Yes. OpenAI does not price the Responses, Chat Completions, Realtime or Assistants APIs separately: tokens are billed at the model's input and output rates. The Batch API is billed at the Batch tier price.
How do OpenAI prices compare with Claude?
Several tiers line up exactly. GPT-6 Luna and Claude Haiku 5.5 both cost $0.10/$0.50 per million input and output tokens ($0.10/$0.50 on Haiku), GPT-6.1 Sol and Claude Sonnet 5.5 $2.00/$10.00 ($2.00/$10.00 on Sonnet), and GPT-6 Astra and Claude Fable 5.1 $10.00/$50.00 ($10.00/$50.00 on Fable). Long prompts, cache rates and how many tokens each model uses make the real difference.
How much do OpenAI tools cost?
Web search costs $10 per 1,000 calls plus the search content tokens. File search costs $2.50 per 1,000 calls plus $0.10 per GB of storage per day after 1 GB free. Code Interpreter and Hosted Shell containers cost from $0.03 per 20-minute session.
How do I track OpenAI API cost per customer?
Tag each OpenAI call with the customer it served, then price it at these rates and add it up by customer. Ganivra does this automatically with two lines of the Python SDK, including Batch, Flex and Fast mode calls, and shows each customer's OpenAI cost next to what they pay you.
More detail: Why similar OpenAI API requests can cost 3× as much · GPT-6 pricing · GPT-5.6 pricing · Claude API pricing · Gemini API pricing · all supported models and prices.