openai/openai-python
The official Python library for the OpenAI API observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.5
- age_days: 2138
- days_rel: 7
- days_push: 7
- n_releases_24m: 225
Adoption not part of the score
31467 stars · 5145 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
The official Python client library for the OpenAI REST API, generated from OpenAI's OpenAPI specification. It provides typed, synchronous and asynchronous access to OpenAI models and services from Python 3.10+ applications.
Use cases
- call GPT models from Python to generate text
- build a chatbot using the Chat Completions API
- use the Responses API for model interactions
- make async OpenAI API requests with httpx
- authenticate to OpenAI with API keys or workload identity
- embed OpenAI API calls in a backend service
When to choose
- you are building a Python application or service that uses OpenAI models
- you want official, typed, auto-generated API coverage with sync and async clients
- you need up-to-date support for the latest OpenAI API features
When to avoid
- you need a provider-agnostic LLM client that works across many vendors
- you are not using Python
- you want to run models locally without calling OpenAI's hosted API
Facets
library · maturity stable
http-client sdk llm-inference auth artificial-intelligence large-language-models apis developer-tools python cross-platform openai api-client gpt chat-completions responses-api async generated-client
2 sources
- readme: https://github.com/openai/openai-python · fetched 2026-08-28 · 91d1a4ecb8aa
- homepage: https://pypi.org/project/openai/ · fetched 2026-08-29 · 6ba4e62daf76
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| openai/openai-python | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="openai/openai-python")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem