OpenAI API logo

OpenAI API

OpenAI's developer platform for building with GPT models

The OpenAI API is the developer platform for building applications on OpenAI models. It covers language models, realtime audio, image generation, transcription and fine-tuning, and it supports function calling, tool use…

OpenAI API screenshot

The OpenAI API is the developer platform for building applications on OpenAI models. It covers language models, realtime audio, image generation, transcription and fine-tuning, and it supports function calling, tool use such as web search and long-context requests. Current flagship tiers are priced per million tokens: GPT-6 Astra costs $10 for input and $50 for output, GPT-6.1 Sol costs $2 and $10, GPT-6.1 Terra costs $1 and $5, and GPT-6 Luna, the lowest cost tier for high volume, costs $0.10 and $0.50.

Batch and Flex processing run 50 percent below standard rates for Terra and Luna, fast mode costs twice the standard rate, and requests above 272K input tokens carry a higher long-context rate. Web search as a tool is billed at $10 per thousand calls.

AI engineers, software engineers and data scientists use it to build chatbots, agents and LLM-powered features. Usage is paid, and a free trial is available to try the platform.

OpenAI API API pricing

USD per 1M tokens, standard tier. Read from OpenAI's own pricing page, checked 4 Dec 2026.

Estimate a bill →
ModelInputCached inputOutputContext
GPT-6.2 Astra Flagshipgpt-6.2-astraBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $16.00 input, $0.80 cached input, $60.00 output for the full request. Max input 922,000 tokens. $8 $0.4 $40 1.1M
GPT-6.2 Solgpt-6.2-solBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $4.00 input, $0.20 cached input, $15.00 output for the full request. Max input 922,000 tokens. $2 $0.1 $10 1.1M
GPT-6.1 Terragpt-6.1-terraBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $2.00 input, $0.10 cached input, $7.50 output for the full request. Max input 922,000 tokens. $1 $0.05 $5 1.1M
GPT-6.1 Solgpt-6.1-solBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $4.00 input, $0.20 cached input, $15.00 output for the full request. Max input 922,000 tokens. $2 $0.1 $10 1.1M
GPT-6 Solgpt-6-solBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $4.00 input, $0.40 cached input, $15.00 output for the full request. Max input 922,000 tokens. $2 $0.2 $10 1.1M
GPT-6 Lunagpt-6-lunaBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $0.20 input, $0.02 cached input, $0.75 output for the full request. Max input 922,000 tokens. $0.1 $0.01 $0.5 1.1M
GPT-6 Astragpt-6-astraBase tier = prompts <=272K input tokens. Long context (>272K input tokens): $20.00 input, $2.00 cached input, $75.00 output for the full request. Max input 922,000 tokens. $10 $1 $50 1.1M
GPT-5.6 Solgpt-5.6-solPROMOTIONAL price in force today: page says promotional pricing is available until 2026-11-30. $4 $0.4 $20 1.1M
Official pricing page ↗ Batch, priority and long-context tiers are priced separately by the provider.

OpenAI API alternatives

See all →

Frequently asked

5 questions
How is usage billed?
Usage is billed per million tokens, with separate input, cached input and output rates for each model. GPT-6.1 Sol, for example, costs $2.00 for input and $10.00 for output. Tools such as web search carry their own fees, and specialized models have separate price tables.
Which model tiers are available?
Four current tiers are priced: GPT-6 Astra as the flagship, GPT-6.1 Sol as the balanced option, GPT-6.1 Terra at a lower price and GPT-6 Luna as the lowest-cost choice for high volume. Specialized models for audio, images, transcription and fine-tuning have their own tables.
Which tools can models use through the API?
Models can call tools, including web search, and the API supports function calling so applications can define actions a model may trigger. Web search content tokens are billed at model rates alongside a per-call fee, and realtime audio has its own model family.
Does the API cover more than text?
Yes. Beyond language models there are realtime audio models, image generation, transcription and fine-tuning, each with its own pricing table. Applications can combine these, for example transcribing audio, generating a reply and returning images, all under one account and billing relationship.
Who builds with the OpenAI API?
AI engineers, software engineers and data scientists use it to build chatbots, agents and LLM-powered features, and prompt engineers and founders use it to prototype products. It is a developer platform rather than a consumer app, so every use goes through an API key and per-token billing.

Traffic

Estimated monthly website visits · last 0 months

15.2M visits/mo
Monthly visits
15.2M

Not enough historical data for a chart yet.

Reviews (0)

Write review

No reviews yet. Be the first to share your experience.