/openai-go

Go client libraries for OpenAI

Primary LanguageGoApache License 2.0Apache-2.0

openai-go Go Reference Go

Go client libraries for OpenAI APIs. Supported APIs:

✅ completions
✅ chat
✅ edits
🚧 images
✅ moderations
✅ audio

Set your API key as the OPENAI_API_KEY environmental variable before running the examples.