openai

    openai/openai-python

    #533 this week

    The official Python library for the OpenAI API

    ai
    openai
    python
    Python
    Apache-2.0
    31.9K stars
    8.0K forks
    31.9K GitHub watchers
    Updated Oct 22, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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.

    Excerpt from the openai/openai-python README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 2: +1Sep 20: +6Sep 21: +9

    +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

    openai/openai-python compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    storytold/artcraft35.6K+6.7K7526 days ago
    heygen-com/hyperframes70.8K+5.6K45today
    Comfy-Org/ComfyUI142.4K+4.5K604 days ago
    Leonxlnx/taste-skill101.6K+3.8K753 days ago
    harry0703/MoneyPrinterTurbo134.2K+2.9K751 day ago
    openai/openai-python31.9K+075today
    Category median101.6K+4.5K75—

    Also by openai

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description