sashabaranov

    sashabaranov/go-openai

    OpenAI, GPT 6.1, GPT-Image-2, Whisper API clients for Go. Zero-dependency.

    10.8K stars
    1.7K forks
    10.8K GitHub watchers
    Updated Nov 2, 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.

    2 releases in the last 90 days, the latest 34 days ago, with 176 contributors on GitHub.

    Gained 9% more stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides zero-dependency Go clients for OpenAI APIs including ChatGPT, GPT models, DALL·E, and Whisper.
    • Enables seamless integration with OpenAI services in Go with support for streaming, image generation, transcription, and Azure OpenAI.
    • Use for building conversational AI chatbots with streaming and context support in Go applications.
    • Use for generating and saving AI-created images using DALL·E or GPT Image models programmatically.
    • Use for transcribing audio files to text or captions using Whisper speech-to-text API in Go projects.

    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

    Currently, go-openai requires Go version 1.18 or greater.

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

    1.7K+10

    Open issues

    229+11

    Compared with peers in AI

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

    sashabaranov/go-openai compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    D4Vinci/Scrapling101.1K+6.3K756 days ago
    thedotmack/claude-mem115.8K+4.7K75today
    heygen-com/hyperframes82.3K+4.0K75today
    harry0703/MoneyPrinterTurbo142.0K+3.8K753 days ago
    github/spec-kit149.2K+2.6K75today
    sashabaranov/go-openai10.8K—5834 days ago
    Category median115.8K+4.0K75—

    Discover Repositories

    Search across tracked repositories by name or description