> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helicone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Groq cURL Integration

> Use cURL to integrate Groq with Helicone to log your Groq usage.

<Warning>
  This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new [AI Gateway](/gateway/overview) with unified API access to 100+ models.
</Warning>

<Note>
  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`.
</Note>

<Steps>
  <Step title="Create an account + Generate an API Key">
    Log into [helicone](https://www.helicone.ai) or create an account. Once you have an account, you
    can generate an [API key](https://helicone.ai/developer).
  </Step>

  <Step title="Set HELICONE_API_KEY as an environment variable">
    ```javascript theme={null}
    HELICONE_API_KEY=<your API key>
    ```
  </Step>

  <Step title="Modify the base path and add a Helicone-Auth header">
    <CodeGroup>
      ```cURL CLI example theme={null}
      curl -X POST "https://groq.staging.helicone.ai/openai/v1/chat/completions" \
           -H "Authorization: Bearer $GROQ_API_KEY" \
           -H "Helicone-Auth: Bearer $HELICONE_API_KEY" \
           -H "Content-Type: application/json" \
           -d '{"messages": [{"role": "user", "content": "Explain the importance of fast language models"}], "model": "llama3-8b-8192"}'
      ```
    </CodeGroup>
  </Step>
</Steps>
