Skip to content

Groq

Open models (gpt-oss, Llama, Qwen) on Groq's fast inference hardware: replies in well under a second. A free plan with tight limits. No embedding model: keep embeddings on Ollama. Official docs: models · rate limits · API keys.

Setup

  1. Sign up at console.groq.com and create a key under API Keys.
  2. From the ai-learning folder: uv pip install -e '.[hosted]', then cp .env.example .env (if you haven't) and set:
    LLM_MODEL=groq/openai/gpt-oss-120b
    GROQ_API_KEY=gsk_...
    EMBED_MODEL=ollama/nomic-embed-text   # Groq has no embeddings
    
  3. Check: python -c "import door; print(door.describe())", then cd llm-api && python tools.py.

Models for the labs

Use LLM_MODEL Note
Start here groq/openai/gpt-oss-120b Open-weight model, good tool calling, on the free plan

The model name is groq/ plus Groq's own id, which can have its own slash (openai/gpt-oss-120b). Names checked November 2026; take current ones from the model list.

What's different

  • Free-plan limits are small (around 30 requests a minute and 1,000 a day per model in November 2026; your console shows yours). One lab run fits; RnR evals need --n 20 or the Developer plan.
  • Tool calling and JSON-schema output depend on the model: check the model page before picking another one.
  • Same open models as you'd self-host, so results tell you what a GPU deployment of that model would do.

Troubleshooting

Symptom Fix
401 AuthenticationError Wrong or missing GROQ_API_KEY
429 rate limit Free-plan limit: wait, use --n 20, or upgrade
tool_use_failed or schema errors That model's tool or JSON support is weaker: use the model above

Shared rules for data, keys, cost and evals: README.md.