#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
Stars, last 29 weeks+282
22 Apr 2026: 10,533 stars29 Apr 2026: 10,547 stars6 May 2026: 10,557 stars13 May 2026: 10,568 stars20 May 2026: 10,577 stars27 May 2026: 10,586 stars3 Jun 2026: 10,606 stars10 Jun 2026: 10,614 stars17 Jun 2026: 10,622 stars24 Jun 2026: 10,628 stars1 Jul 2026: 10,636 stars8 Jul 2026: 10,644 stars15 Jul 2026: 10,650 stars22 Jul 2026: 10,660 stars29 Jul 2026: 10,664 stars5 Aug 2026: 10,672 stars12 Aug 2026: 10,684 stars19 Aug 2026: 10,697 stars26 Aug 2026: 10,709 stars2 Sept 2026: 10,718 stars9 Sept 2026: 10,728 stars16 Sept 2026: 10,737 stars23 Sept 2026: 10,748 stars30 Sept 2026: 10,756 stars7 Oct 2026: 10,765 stars14 Oct 2026: 10,776 stars21 Oct 2026: 10,780 stars28 Oct 2026: 10,790 stars4 Nov 2026: 10,803 stars11 Nov 2026: 10,815 stars

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
Also in Backend and cloud templates
RankProjectScore
1fastapiPython web framework for typed REST APIs with automatic OpenAPI docs104.7k stars+1,871 (+1.8%) in 30 daysMIT90 out of 100
2fiberExpress-style HTTP web framework for Go, built on fasthttp40.3k starsMIT90 out of 100
3generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends22.5k starsApache-2.090 out of 100
#4serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml46.9k starscustom license89 out of 100
#5echoMinimalist Go web framework with a radix-tree router and middleware32.8k starsMIT88 out of 100