A tiny (< 200 LOC) Go wrapper for the Groq LLM API
- One‑function call to send prompts and get responses.
- No dependencies beyond the std‑lib and a single HTTP client.
- Designed to stay simple, readable, and easy to embed in any Go project.
go install github.com/4sp1/GoGroq@latest
You can also explore GOOS and GOARCH to choose the platform you’d like to target—whether it’s Windows, Linux, macOS, or any other supported system.
If you’re a *‑nix user, you’ll see how to customize your usage:
GoGroq -h
For anyone who feels a little hesitant about diving into the terminal
-
Configuration
-
Generates a
key.txtfile where you copy your Groq API key. -
Generates a
user.txtfile to populate with your prompt. -
Run the configuration command:
GoGroq.exe -config
or
GoGroq -config
-
-
Make sure your key is saved in
key.txt -
Edit
user.txt, then double‑clickGoGroq.exe. After the terminal window closes, the fileresponse.txtwill be created.
- Explore the Groq Console.
- Generate your credentials in the Groq API Keys Console.
- Review the full list of Groq models.