OpenAI API
OpenAI's platform API for GPT and o-series models, image, audio and realtime models, embeddings and the Responses API for agents.
The OpenAI API offers proprietary language, reasoning, image, speech and embedding models through REST endpoints and official SDKs. The Responses API combines chat with built-in tools such as web and file search, and the Realtime API supports low-latency voice. OpenAI has also published open-weight models (gpt-oss) under Apache 2.0, which can be self-hosted separately. API access is usage-billed.
- Type
- API
- Category
- AI & ML
- Maintainer
- OpenAI
- First released
- 2020
- License
- Proprietary
- Pricing
- Paid — Usage-based per token (and per image/audio unit), varying by model; batch discounts. gpt-oss open weights are free to download (Apache-2.0).
- Level
- Intermediate
- Technologies
- llm, rest-api, python, typescript, agents
- GitHub stars
- 32,314
- Weekly downloads
- 98,290,187 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What OpenAI API is used for
- Chat and assistant products
- Structured extraction
- Voice agents
- Image generation
- Embeddings for search
Strengths
- Broad multimodal model range
- Mature SDKs and tooling
- Large third-party ecosystem
Limitations
- Closed weights for flagship models
- Model deprecations require migration work
- Usage policies apply
OpenAI API alternatives
How it relates to other tools
- OpenAI API works with OpenAI Agents SDK
- OpenAI API works with LangChain
- OpenAI API works with AI SDK (Vercel)
- OpenAI API works with Microsoft Foundry (formerly Azure AI Foundry)
- OpenAI API competes with Claude API (Anthropic)
- OpenAI API competes with Gemini API (Google)
- Works with OpenAI API: CrewAI
- Works with OpenAI API: DSPy
- Works with OpenAI API: Instructor
- Works with OpenAI API: Langfuse
- Works with OpenAI API: LlamaIndex
- Works with OpenAI API: Open WebUI
- Works with OpenAI API: OpenRouter
- Works with OpenAI API: Pinecone
- Works with OpenAI API: Pydantic AI
- Works with OpenAI API: Whisper (OpenAI)
Built with the same technologies
Learn OpenAI API
Official links
- Official website
- Documentation
- Source code (openai/openai-python)
- pypi: openai
- npm: openai