Open-source projects · Established
openai/openai-python
Official Python client for the OpenAI API
- ★ 31,946
- 7 days +88
- 30 days +327
- Forks 7,423
- Language:Python
- License:Apache-2.0
Description on GitHub: The official Python library for the OpenAI API
Highlights
- This is OpenAI's official Python client library for applications using Python 3.10 or later.
- It provides synchronous and asynchronous clients, with type definitions for request parameters and response fields.
- The README shows text-generation calls through both the Responses API and Chat Completions API.
- Documented workload identity options include Kubernetes service-account tokens, Azure managed identity, Google Cloud tokens, and X.509 federation.
- The project is licensed under Apache-2.0.
Our take
This library connects applications to the OpenAI API; it is not an inference server that teams deploy themselves. Teams considering X.509 workload identity should check compatibility first: the documentation limits that mode to HTTP APIs and excludes Azure clients.
Star history
Data updated: Oct 25, 2026
Releases
The summary and analysis were generated by AI. The original sources are authoritative. AI content policy