go-openai and openaigo
These are competitors—both provide Go client libraries for OpenAI APIs with overlapping functionality, so developers would typically choose one based on feature completeness (sashabaranov/go-openai has broader model support) versus simplicity and minimal dependencies (otiai10/openaigo).
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 openaigo
otiai10/openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work