OpenAI API
In-depth entryby OpenAI · Platform · also known as OpenAI Platform, OpenAI Developer Platform, platform.openai.com
OpenAI's hosted developer platform: Responses and Chat Completions APIs, Realtime voice, embeddings, images, audio, fine-tuning, evals and managed agents
Overview
The OpenAI API is the developer platform through which OpenAI exposes its GPT, reasoning, image, audio and embedding models as metered HTTP services. The documentation now lives at developers.openai.com; the older platform.openai.com address remains the account console. It is a cloud-only, usage-billed service aimed at software teams who want to integrate language and multimodal models into applications without operating any model infrastructure.
The primary interface is the Responses API, which replaced the Assistants API and layers built-in tools (web search, file search, code interpreter, computer use, image generation, remote MCP servers) on top of model calls. Chat Completions remains available for compatibility and is widely imitated by other vendors, which makes the OpenAI request format a de facto standard for inference servers such as vLLM, Ollama and llama.cpp. Further endpoints cover the Realtime API for speech-to-speech sessions over WebRTC, WebSocket or SIP, embeddings, image generation and editing, transcription and text-to-speech, supervised, preference and reinforcement fine-tuning, batch and flex processing at lower priority, prompt caching, structured outputs, webhooks and an evals and graders service. An Agents SDK (Python and TypeScript) and a managed Agents API with sandboxes and sessions sit above the raw endpoints, and admin APIs, role-based access control and a Terraform provider cover organization management.
Official SDKs exist for Python and Node, with others listed in the docs, plus an OpenAI CLI. Practical limits are those of any proprietary hosted API: model behavior and availability change on the vendor's schedule, rate limits and spend limits must be managed per organization, data handling is governed by OpenAI's terms rather than your own infrastructure, and there is no on-premises option. Note that openai.com and platform.openai.com return 403 to non-browser clients, which affects automated link checking.
Editorial note on uncertainty. The marketing site openai.com and the console platform.openai.com answer 403 to non-browser user agents; verification relied on developers.openai.com and the SDK repository.
Capabilities
- Responses API with built-in tools (web search, file search, code interpreter, computer use, MCP)
- Chat Completions endpoint that other vendors emulate
- Realtime API for low-latency speech-to-speech over WebRTC, WebSocket or SIP
- Embeddings, image generation and editing, transcription and text-to-speech
- Supervised, DPO and reinforcement fine-tuning
- Batch and flex processing, prompt caching and structured outputs
- Evals and graders, webhooks, admin APIs and Terraform provider
- Agents SDK and managed Agents API with sandboxes and sessions
Typical workflows
- Add a chat or extraction feature to an application through the Responses API
- Build a tool-using agent with the Agents SDK and trace it in the dashboard
- Run large offline classification jobs through the Batch API
- Fine-tune a smaller model on domain data and route traffic to it
Strengths
- Broad model lineup across text, reasoning, vision, audio and images behind one account
- Request format widely supported by third-party tools and gateways
- Mature SDKs, documentation and cookbook
- Built-in hosted tools reduce the amount of orchestration code to write
Limitations
- Cloud-only; no self-hosted or on-premises deployment
- Models and endpoints are retired on the vendor's schedule (e.g. Assistants API)
- Costs scale with token volume and must be governed with spend limits
- Marketing and console pages block automated clients, complicating link monitoring
Prerequisites
- OpenAI account with billing enabled and an API key
- Python or Node runtime for the official SDKs, or any HTTP client
Who it is for
- Application developers integrating LLM features
- Teams building agents and automations
- Researchers who need hosted frontier models through an API
Alternatives & comparison
The Claude Platform (Anthropic) and the Gemini API (Google) are the closest hosted equivalents, each with its own request schema and tool-calling conventions; Anthropic additionally offers Managed Agents and Google ties its API to AI Studio and Vertex AI. Mistral AI publishes open-weight models alongside its API. OpenRouter and Together AI are aggregators or open-model hosts that accept the OpenAI request format, which is why many teams prototype against OpenAI and later swap the base URL.
- Claude Platform
Anthropic's developer platform for the Claude models: Messages API, tool use, structured outputs, prompt caching, batch processing and Managed Agents, plus cloud availability
ProprietaryUsage-based - Cohere
Enterprise-focused model provider with Command generation, Embed and Rerank retrieval models, Aya multilingual research models, the North agent platform and private or dedicated deployment options
ProprietaryFreemium - ElevenLabs
Hosted voice AI platform: text-to-speech and speech-to-text models, voice cloning, dubbing, music and sound effects, a voice-agent builder and a REST API with Python and TypeScript SDKs
ProprietaryFreemium - Foundation Models (Apple)
Apple's Swift framework giving apps access to the on-device Apple Intelligence language model with guided generation, tool calling and sessions, on OS 26 and later
ProprietaryFree - Gemini API
Google's developer API for the Gemini model family, keyed from Google AI Studio, with function calling, Search grounding, Live API, image and video generation and a free tier
ProprietaryFreemium - GroqCloud
Low-latency hosted inference API for open-weight models on Groq's LPU hardware, OpenAI-compatible, with speech-to-text, text-to-speech, tool use and batch tiers
ProprietaryUsage-based - Instructor
Python library for extracting validated structured data from LLM responses using Pydantic models, with automatic retries, streaming partials and support for many providers
Open sourceOpen source - LiteLLM
Open-source Python SDK and self-hosted AI gateway that calls 100+ LLM providers in the OpenAI format, with routing, fallbacks, virtual keys, budgets, spend tracking and logging callbacks
MixedOpen source - Mistral AI
French model provider offering open-weight and proprietary models through the Studio API, OCR and speech models, the Vibe agent for productivity and coding, and self-deployment options
MixedFreemium - OpenRouter
Unified API gateway to hundreds of models from many providers with automatic fallbacks, credit-based pass-through billing, BYOK, free models and data-policy routing
ProprietaryFreemium - Sentence Transformers
Python library for computing and training embedding, cross-encoder reranker, sparse and multi-vector retrieval models, maintained by Hugging Face with thousands of pretrained models on the Hub
Open sourceOpen source - Together AI
Cloud platform for open-source models: serverless and dedicated inference, fine-tuning, GPU clusters, batch jobs and code sandboxes behind an OpenAI-compatible API
ProprietaryUsage-based - Voyage AI
Hosted embedding and reranking models for retrieval, including code, finance, law and multimodal variants, offered by MongoDB with a free token allowance and pay-as-you-go API
ProprietaryFreemium - Whisper
OpenAI's open-source multilingual speech recognition model family with MIT-licensed code and weights, a Python package and CLI for transcription, translation and language identification
Open sourceOpen source
Sources & verification
Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.
- Official siteOpenAI API docschecked Nov 1, 2026
https://developers.openai.com/api/docs
Supports: name, summary, capabilities, interfaces
developers.openai.com is the current documentation host; platform.openai.com returns 403 to automated clients
- Pricing pagehttps://developers.openai.com/api/docs/pricingchecked Nov 1, 2026
Supports: pricing_model
- Repositoryopenai-python (Apache-2.0 SDK)checked Nov 1, 2026
https://github.com/openai/openai-python
Supports: languages, interfaces
- Confidence
- High
- Reviewed
- Nov 1, 2026
- Links
- Verified · Nov 2, 2026
Spotted an error?
More in Model providers & APIs
LiteLLM
BerriAI · Prompting, evaluation & observability
Open-source Python SDK and self-hosted AI gateway that calls 100+ LLM providers in the OpenAI format, with routing, fallbacks, virtual keys, budgets, spend tracking and logging callbacks
Hugging Face Hub
Hugging Face · Training & fine-tuning
Hosting platform for open models, datasets and Spaces demo apps built on git repositories and Xet storage, with Inference Providers, Endpoints, Jobs and an open-source Python client and CLI
Cohere
Cohere Inc. · Model providers & APIs
Enterprise-focused model provider with Command generation, Embed and Rerank retrieval models, Aya multilingual research models, the North agent platform and private or dedicated deployment options
GroqCloud
Groq, Inc. · Model providers & APIs
Low-latency hosted inference API for open-weight models on Groq's LPU hardware, OpenAI-compatible, with speech-to-text, text-to-speech, tool use and batch tiers