OpenAI Python SDK
agent-sdkNo score yet
The official Python library for the OpenAI API
Stars
30,955
Δ stars 7d
—
Δ stars 30d
—
Forks
4,832
Contributors
155
npm DL / wk
—
PyPI DL / wk
—
Language
Python
Last push
2026-06-05
About OpenAI Python SDK
The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.9+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx. It is generated from our OpenAPI specification with Stainless. The REST API documentation can be found on platform.openai.com. The full API of this library can be found in api.md.
Read the full README on GitHub →
Install
OpenAI Python SDK alternatives
Projects in the same category, closest in size — picked by data, not opinion.
See all agent-sdk projects ranked by growth →
More from openai
Frequently asked questions
- Is OpenAI Python SDK still maintained?
- Yes — actively maintained. The last push was on 2026-06-05, with 155 contributors.
- What are the best OpenAI Python SDK alternatives?
- Closest by category and size in our data: OpenAI Agents SDK, Vercel AI SDK, PydanticAI — full list with live signals above.
Embed this badge
Show your project's live signal in your README — it updates weekly with the data.
Tracked since 2026-06-10 · data as of 2026-06-10 · 530 open issues · 385 releases