go-openai and openai-go
These are competitors offering overlapping Go client library implementations for OpenAI's API, with sashabaranov/go-openai being the substantially more mature and widely-adopted option.
About go-openai
sashabaranov/go-openai
OpenAI ChatGPT, GPT-5, GPT-Image-1, Whisper API clients for Go
Supports streaming responses for real-time token delivery across chat and completion endpoints, and provides audio transcription with caption format output (SRT). Covers the full OpenAI ecosystem including image generation (DALL·E 2/3, GPT Image 1), speech-to-text (Whisper), and legacy completion models alongside modern chat interfaces, with context-aware request/response handling via Go's standard library patterns.
About openai-go
all-in-aigc/openai-go
OpenAI Go SDK.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work