{"repo":"sashabaranov/go-openai","free":true,"listed":false,"github":"https://github.com/sashabaranov/go-openai","clone":"git clone https://github.com/sashabaranov/go-openai.git","description":"OpenAI,GPT 5.5, GPT-Image-2, Whisper API clients for Go","language":"Go","stars":10738,"topics":["go","openai","golang","streaming-api","dall-e","chatgpt","chatgpt-api","openai-whisper","gpt-5-6","gpt-5-6-sol"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"Go OpenAI An unofficial Go client for the OpenAI API. For new text-generation, reasoning, tool-calling, and multi-turn integrations, start with the Responses API. Chat Completions remains available for existing integrations. The client also covers embeddings, images, audio, moderation, files, fine-tuning, batches, vector stores, and legacy Assistants API surfaces. Installation Go OpenAI requires Go 1.18 or later. Quick start: Responses API Set an OpenAI API key in your environment: Then create a response and read its generated text: Input can be a string or a slice of typed input items. For reasoning, tools, multimodal output, or custom processing, inspect response.Output instead of using the GetOutputText convenience method. Continue a conversation Use PreviousResponseID when OpenAI should carry the earlier response context. Resend Instructions on each call when they should continue to apply. Stream output Choosing a model The current GPT-5.6 family exposes separate capability, balance, and efficiency tiers. Pick the tier that matches the workload instead of using the flagship for every request. Constant Model ID Typical use --- --- --- GPT5Dot6Sol gpt-5.6-sol Complex reasoning and coding GPT5Dot6Terra gpt-5.6-terra Balance of intelligence and cost GPT5Dot6Luna gpt-5.6-luna Cost-sensitive, high-volume work GPT5Dot6 gpt-5.6 Family alias that currently routes to Sol See the OpenAI model catalog for capabilities and availability. Model IDs are accepted as strings, so you can us","default_branch":null,"files":null,"tree":[],"storefront":"/r/sashabaranov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sashabaranov/go-openai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}