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.