openai/openai-python
The official Python library for the OpenAI API observed · 2026-10-18
Health v2 · maintenance only
96/100
- Activity 100
- Release rhythm 88
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 2186
- days_rel: 3
- days_push: 3
- n_releases_24m: 245
Adoption not part of the score
31870 stars · 8319 forks observed · 2026-10-18
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-05, confidence 0.99
The official OpenAI Python library provides a convenient wrapper around the OpenAI REST API. It supports both synchronous and asynchronous usage with full type definitions.
Use cases
- Generate text completions with GPT models from a Python script
- Call the OpenAI chat completions endpoint in a web service
- Integrate DALL·E image generation into a Python application
- Perform embeddings or vector searches using OpenAI's API
- Use workload identity authentication for cloud‑native deployments
When to choose
- You need a first‑party, well‑maintained client for the OpenAI API in Python
- You require async support and type‑checked request/response objects
- You want built‑in helpers for authentication, including workload identity
When to avoid
- You are working in a language other than Python
- You need a lightweight HTTP wrapper without the extra OpenAI‑specific abstractions
- You require offline model inference without calling the OpenAI service
Facets
library · maturity active
http-client api-framework llm-inference artificial-intelligence large-language-models python openai async sync type-hints httpx2 retrieval-augmented-generation
2 sources
- readme: https://github.com/openai/openai-python · fetched 2026-10-18 · 051f3b4e0161
- homepage: https://pypi.org/project/openai/ · fetched 2026-09-21 · f3c43b248d06
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| openai/openai-python | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="openai/openai-python")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem