openai/openai-go
The official Go 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.
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+.
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
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vxcontrol/pentagi | 33.5K | +712 | 38 | 31 days ago |
| usebruno/bruno | 48.2K | +281 | 59 | 14 days ago |
| agentgateway/agentgateway | 6.0K | +183 | 60 | 9 days ago |
| mudler/LocalAI | 50.2K | +176 | 59 | 12 days ago |
| sveltejs/svelte | 88.6K | +77 | 65 | 9 days ago |
| openai/openai-go | 3.5K | — | 40 | today |
| Category median | 48.2K | +183 | 59 | — |
Also by openai
Other repositories from this maintainer that GStars tracks
- Rust133.4K stars
codex
Lightweight coding agent that runs in your terminal
- Python111.9K stars
whisper
Robust Speech Recognition via Large-Scale Weak Supervision
- Jupyter Notebook76.9K stars
openai-cookbook
Examples and guides for using the OpenAI API
- JavaScript34.7K stars
codex-plugin-cc
Use Codex from Claude Code to review code or delegate tasks.
- Python32.0K stars
openai-python
The official Python library for the OpenAI API
Discover Repositories
Search across tracked repositories by name or description