go-openai and goopenai
These are competitors—both provide independent Go client libraries for the OpenAI API, with sashabaranov/go-openai being the mature, widely-adopted option (10,585 stars) while franciscoescher/goopenai is a smaller alternative implementation.
About go-openai
sashabaranov/go-openai
OpenAI ChatGPT, GPT-5, GPT-Image-1, Whisper API clients for Go
This is a Go language library that helps developers integrate OpenAI's powerful AI models into their Go applications. It takes plain text prompts, audio files, or image descriptions and returns generated text (like chat responses or transcriptions) or images, allowing Go developers to build AI-powered features directly into their software. Developers who use Go for backend services, command-line tools, or web applications will find this useful.
About goopenai
franciscoescher/goopenai
This is a Go client library for the OpenAI API
This is a Go client library that allows Go developers to programmatically access the OpenAI API. It takes API keys and organization IDs as input to enable Go applications to interact with OpenAI models, such as generating text completions. Go developers building applications that need to integrate with OpenAI's AI capabilities would use this.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work