Skip to contentSkip to page list

Docs

Groq

Add a Groq API key under Settings, Model Providers and call Groq models through the LangWatch AI Gateway.

On this page

Add the credential

Open Settings > Model Providers, click Add Model Provider and select Groq. Give the row a name, pick the organization, team or project it belongs to, and fill in:

FieldValue
GROQ_API_KEYYour Groq API key.

Save the row. Every virtual key whose scope can see the row can now dispatch to it, unless the key restricts its providers. See Virtual keys.

The Groq model provider drawer with the GROQ_API_KEY field and the routing handle groq
The Groq row: name, scope, GROQ_API_KEY and the routing handle groq.

Model names

Write groq/<model>, for example groq/llama-3.3-70b-versatile. The gateway does not infer Groq from a bare name.

Send a request

example.shBash
curl https://gateway.langwatch.ai/v1/chat/completions \  -H "Authorization: Bearer $LANGWATCH_VIRTUAL_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "groq/llama-3.3-70b-versatile",    "messages": [{"role": "user", "content": "Say hi in one word"}]  }'

Endpoints

EndpointServed
POST /v1/chat/completionsYes
POST /v1/messagesYes, translated
GET /v1/modelsYes, from the Groq catalog

Documentation