sashabaranov/go-openai
Go SDK for OpenAI's REST API covering GPT chat completions, DALL·E image generation, and Whisper speech-to-text.

Velocity · 7d
+5.0
★ / day
Trend
→steady
star history
This library is an unofficial Go client for OpenAI’s API, enabling developers to integrate OpenAI’s models into Go applications. It provides type-safe wrappers for chat completions with streaming support, image generation via DALL·E and GPT Image 1, and audio transcription using Whisper. The library handles request/response serialization and authentication, allowing Go programs to consume OpenAI’s hosted models as a standard HTTP client.