Use Groq’s JavaScript SDK to integrate with Helicone to log your Groq usage.
Depending on the model you are using, you may need to adjust the base URL.
For most cases with Groq, the base URL will be https://groq.helicone.ai/openai/v1.However, in some cases, you may need to use https://groq.helicone.ai/v1.
1
Create an account + Generate an API Key
Log into helicone or create an account. Once you have an account, you
can generate an API key.
2
Set HELICONE_API_KEY as an environment variable
Copy
Ask AI
HELICONE_API_KEY=<your API key>
3
Modify the base path and add a Helicone-Auth header