openai/openai-python
The official Python library for the OpenAI API
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #533 of 3,103 repositories GStars tracks this week (top 17%).
5 releases in the last 90 days, the latest today, with 199 contributors on GitHub.
Use Cases & Benefits
- Provides a Python client library for accessing the OpenAI REST API with synchronous and asynchronous support.
- Offers typed request and response models with built-in pagination, streaming, and workload identity authentication for secure, scalable API usage.
- Use for integrating advanced AI text and image generation into Python applications with type safety and async capabilities.
- Use for building real-time, multi-modal conversational interfaces using the Realtime API with WebSocket support.
- Use for securely handling API keys and tokens in cloud environments like Kubernetes, Azure, and Google Cloud with workload identity authentication.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
- Contributing guide: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
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.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+630 stars over 82 days across 10 snapshot days; best day +9 on Sep 21.
Forks
8.0K+3.0K
Open issues
147-461
Compared with peers in AI
Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| storytold/artcraft | 35.6K | +6.7K | 75 | 26 days ago |
| heygen-com/hyperframes | 70.8K | +5.6K | 45 | today |
| Comfy-Org/ComfyUI | 142.4K | +4.5K | 60 | 4 days ago |
| Leonxlnx/taste-skill | 101.6K | +3.8K | 75 | 3 days ago |
| harry0703/MoneyPrinterTurbo | 134.2K | +2.9K | 75 | 1 day ago |
| openai/openai-python | 31.9K | +0 | 75 | today |
| Category median | 101.6K | +4.5K | 75 | — |
Also by openai
Other repositories from this maintainer that GStars tracks
- Rust130.7K stars
codex
Lightweight coding agent that runs in your terminal
- Python111.0K stars
whisper
Robust Speech Recognition via Large-Scale Weak Supervision
- Jupyter Notebook76.7K stars
openai-cookbook
Examples and guides for using the OpenAI API
- JavaScript34.3K stars
codex-plugin-cc
Use Codex from Claude Code to review code or delegate tasks.
- Python30.2K stars
openai-agents-python
A lightweight, powerful framework for multi-agent workflows
Discover Repositories
Search across tracked repositories by name or description