#2424th of 55 in Backend and cloud templates
go-openai
Unofficial Go client library for the OpenAI API
- Stars
- 10.8k
- License
- Apache-2.0
- Last commit
- Sep 2026
- Last release
- Sep 2026
- Language
- Go
10,533 on 22 Apr 202610,815 on 11 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A Go module that wraps the OpenAI API: Responses (with streaming and previous-response chaining), Chat Completions, embeddings, images, audio, moderation, files, fine-tuning, batches and vector stores. The base URL is configurable for compatible endpoints, and there is a default Azure OpenAI config. It is a library to import into Go services, not a runnable app.
Who it is for: Go developers calling the OpenAI API from backend services
Strengths
- Covers Responses, Chat Completions, embeddings, images, audio, moderation, files, fine-tuning and batches
- Model IDs accepted as strings, so new models work before constants are added
- Configurable BaseURL and DefaultAzureConfig for compatible endpoints and Azure OpenAI
- Runnable examples for Responses, tools, images and speech to text
Weaknesses
- Library only: no server, UI or agent loop included
- Unofficial, so it can lag behind OpenAI API changes
- Assistants API support is described as legacy
- Targets the OpenAI API shape; other providers only work through compatible endpoints
What it needs
- Go, OpenAI GPT-6 and GPT-5 series, GPT-4o, OpenAI-compatible endpoints, Azure OpenAI
- Needs OpenAI API key, Go 1.18+
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 55| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 89 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 88 out of 100 |