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

# Connect Groq with API Key – StackOne Hub

> Link a Groq account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Groq actions.

<Warning>Keep your API keys secure. Never share them publicly or commit them to version control. The key value is displayed only once at creation — if lost, revoke and mint a new one.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Sign up for a Groq Account</h2>

  <p>Create a free Groq account to access the LPU inference API. No credit card is required for the free tier.</p>

  <Steps>
    <Step title="Navigate to the Groq Console">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>1. Open [https://console.groq.com](https://console.groq.com) in your browser.<br />2. Click "Sign in" or "Sign up".<br />3. Authenticate with email + password OR Google OAuth (no card prompt).<br />4. Accept the Services Agreement on first sign-in.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate an API Key</h2>

  <p>Generate a new API key from the console. Each key starts with the `gsk_` prefix.</p>

  <Steps>
    <Step title="Open the API Keys Page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>1. Navigate to [https://console.groq.com/keys](https://console.groq.com/keys).<br />2. Click "Create API Key".</p>
      </div>
    </Step>

    <Step title="Configure and Copy the Key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>1. Give the key a descriptive name (e.g. "StackOne Integration").<br />2. Click "Submit".</p>

        <ul>
          <li>The full key value (`gsk_...`) is shown ONCE — copy it immediately.</li>
          <li>Store it in a secure password manager.</li>
          <li>If lost, revoke the key and mint a new one.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>API Key Best Practices</h2>

  <p>Follow these security practices to protect your Groq API key.</p>

  <Steps>
    <Step title="Security Recommendations">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Implement these measures to protect your API key.</p>

        <ul>
          <li>Never expose the key in client-side code or public repositories.</li>
          <li>Use environment variables in deployment (e.g. `GROQ_API_KEY`).</li>
          <li>Create separate keys for separate environments (dev, staging, prod).</li>
          <li>Rotate keys regularly and revoke compromised keys immediately.</li>
        </ul>
      </div>
    </Step>

    <Step title="Rate Limits and Usage">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Be aware of Groq's per-organization rate limits and monitor your usage.</p>

        <ul>
          <li>Free tier limits live at [https://console.groq.com/docs/rate-limits](https://console.groq.com/docs/rate-limits).</li>
          <li>Rate limits are enforced at the organization level — all keys under one org share the same budget.</li>
          <li>Both Requests Per Minute (RPM) and Tokens Per Minute (TPM) ceilings trigger 429.</li>
          <li>Respect the `retry-after` header on 429 responses.</li>
          <li>Upgrade to the Developer tier (card required, no minimum spend) for \~10x higher limits.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Groq API Key</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
