Groq ↗ delivers high-speed processing and low-latency performance.
Endpoint
URL structure
When making requests to Groq ↗, replace https://api.groq.com/openai/v1 in the URL you’re currently using with https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq.
Prerequisites
When making requests to Groq, ensure you have the following:
Your AI Gateway Account ID.
Your AI Gateway gateway name.
An active Groq API token.
The name of the Groq model you want to use.
Examples
cURL
Use Groq SDK with JavaScript
If using the groq-sdk ↗, set your endpoint like this:
Was this helpful?
What did you like?
What went wrong?
Thank you for helping improve Cloudflare's documentation!