# openai/openai-go

The official Go library for the OpenAI API

Repository: https://github.com/openai/openai-go
Canonical: https://ross.abutalabs.com/products/openai-go
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T22:11:54+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 55
- inputs: {"age_days": 772, "days_push": 7, "days_rel": 7, "gap_med": 3.0, "n_releases_24m": 99}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3434, forks 347 (observed 2026-08-28T04:08:04.259117+00:00)

## What it is
The official Go client library for the OpenAI REST API, providing typed access to models, the Responses API, conversations, and other OpenAI platform features. It is maintained by OpenAI and distributed as a Go module with regular releases.

## Use cases
- call the OpenAI API from a Go application
- generate text with GPT models in Go
- build a chatbot backend in Go using OpenAI
- stream OpenAI model responses in a Go service
- integrate OpenAI embeddings or responses API into a Go tool
- manage multi-turn conversations with OpenAI models in Go

## When to choose
- you are writing Go and want an officially supported, typed client for the OpenAI API
- you need access to the latest OpenAI features like the Responses API
- you want automatic API key handling from environment variables and idiomatic Go error handling

## When to avoid
- you use a language other than Go
- you need a provider-agnostic LLM client that works with many vendors
- you must stay on an older Go version outside the SDK's supported window

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, llm-inference
- domain: large-language-models, artificial-intelligence, apis, developer-tools
- platform: go, cross-platform
- tags: openai-api, gpt, official-sdk, rest-api-client, chat-completions, responses-api

## Member repositories
- openai/openai-go (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:04.259117+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:37:43.391961+00:00, confidence not recorded.
  - readme: https://github.com/openai/openai-go (fetched 2026-08-28T04:08:04.259117+00:00, sha 34f425741173)
- Data as of 2026-08-30T08:39:29.467469+00:00.
