openai

    openai/openai-go

    The official Go library for the OpenAI API

    api
    Go
    Apache-2.0
    3.5K stars
    357 forks
    3.5K GitHub watchers
    Updated Oct 27, 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.

    5 releases in the last 90 days, the latest today, with 52 contributors on GitHub.

    Gained 27% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a Go client library for interacting with the OpenAI REST API, enabling easy integration of OpenAI services in Go applications.
    • Offers idiomatic Go types, request options, and helpers for streaming, pagination, and error handling, ensuring type safety and developer convenience.
    • Use for building Go applications that require AI-powered chat completions and natural language processing via OpenAI models.
    • Use for implementing webhook verification and handling OpenAI event callbacks securely in Go web services.
    • Use for creating structured output responses and tool-calling workflows in Go, enabling complex AI interactions with external functions.

    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 Go library provides convenient access to the OpenAI REST API from applications written in Go.

    This library requires Go 1.21+.

    Excerpt from the openai/openai-go 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

    Forks

    357+16

    Open issues

    97-16

    Compared with peers in API

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    openai/openai-go compared with API repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vxcontrol/pentagi33.5K+7123831 days ago
    usebruno/bruno48.2K+2815914 days ago
    agentgateway/agentgateway6.0K+183609 days ago
    mudler/LocalAI50.2K+1765912 days ago
    sveltejs/svelte88.6K+77659 days ago
    openai/openai-go3.5K—40today
    Category median48.2K+18359—

    Also by openai

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description