Skip to content
G

Go Openai

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

by sashabaranovFree

#423in AI
0In stores

Description

go-openai is an unofficial Go client library for the OpenAI API, and its tagline describes it as zero-dependency. It needs Go 1.18 or later.…

Highlights

  • Zero-dependency Go client
  • Responses API and Chat Completions
  • Streaming and multi-turn conversations
  • Embeddings, images, audio and files
  • Azure OpenAI configuration

Ratings & Reviews

No ratings yet

Be the first to rate Go Openai.

People also visit

C

Chatgpt

ChatGPT Console client in Golang

AI
Launch
R

Ruby Openai

OpenAI API + Ruby! GPT-5 & Realtime WebRTC compatible!

AI
Launch
D

developing-genkit-go

Build AI applications in Go

AI Skills
Get
G

Gptcli

ChatGPT in command line with OpenAI API (gpt-3.5-turbo/gpt-4/gpt-4-32k)

AI
Launch
D

developing-genkit-go

Develop AI-powered applications using Genkit in Go

AI Skills
Get
C

Chat

chat web app for teams, sass with user management and ratelimit, support…

AI
Launch

Go Openai FAQ

What is go-openai?

It is a Go client library for the OpenAI API, used to send requests and read responses from Go code.

Is it official?

No. The README calls it an unofficial Go client.

How do I start?

Set an OpenAI API key in your environment, then create a response with the Responses API and read the generated text.

Which Go version does it need?

Go 1.18 or later.

Does it support Azure OpenAI?

Yes. Start from the Azure default config and set the deployment mapping or API version your Azure resource requires.

Which API should I use?

The README recommends the Responses API for new work and keeps Chat Completions for existing integrations.

Do I need an account to use it?

You need your own OpenAI API key to make requests. The library itself is public on GitHub.

What are the best Go Openai alternatives?

Popular alternatives to Go Openai include Chatgpt, Ruby Openai and Gptcli. See all Go Openai alternatives

Developer Stuff

Badges