> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/ai/llm/providers/groq.md).

# Groq

Connect Groq as an LLM integration.

Groq runs open models (Llama, Qwen, …) on its own chips, very fast.

## Get your credentials

1. Open the [GroqCloud console](https://console.groq.com/) and sign in.
2. Go to **API Keys** and press **Create API Key**; name it, for example `norbix-drafts`.
3. Copy the key (it starts with `gsk_`); it is shown only once.
4. Pick a model from the [supported models](https://console.groq.com/docs/models), for example `llama-3.3-70b-versatile`.

More in the provider's own guide: [Groq quickstart](https://console.groq.com/docs/quickstart).

## Connect it in Cloud

**Where:** Project → Integrations → LLM → **Add New Integration** → Groq → **Connect** · `/projects/<project>/ai/llms/integrations/new/groq`

| Field            | Required | What it does                                                              | Example                    |
| ---------------- | -------- | ------------------------------------------------------------------------- | -------------------------- |
| API Key          | yes      | The Groq key. Stored encrypted, never shown again.                        | `gsk_placeholder_not_real` |
| Endpoint         | no       | Another address for the Groq API. Empty = Groq's own.                     | empty                      |
| Default Model    | no       | The model used when a request names none. Empty = the provider's default. | `llama-3.3-70b-versatile`  |
| Integration Name | yes      | How the integration is listed in Norbix.                                  | `Fast drafts`              |

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-d614ce3cd0335e31805509d72c5f78266edc7614%2Fgroq-form-1.png?alt=media" alt="New Groq Integration form filled with placeholder values"><figcaption><p>The filled form (the key is a made-up placeholder).</p></figcaption></figure>

Press **Save**. The title becomes *Editing Groq integration*, the badges say **ENABLED** and **NOT TESTED**, the id (`int_…`) appears with a copy button, the key field is empty again with the note that the key will not be displayed, and the test panel appears at the bottom.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-3bc32ad5b13b3a9f7d24576f80650ac0a9ba1c95%2Fgroq-saved-2.png?alt=media" alt="The Groq integration after save: badges ENABLED and NOT TESTED, the integration id, and the Test integration panel"><figcaption><p>After save.</p></figcaption></figure>

## Test and set as default

**Test integration** checks only that Norbix can read the stored key; it does not call Groq, so a wrong key also passes — see [Test an LLM integration](/codemash/cloud/ai/llm/test.md). Ask the [AI chat](/codemash/cloud/ai/ai-chat.md) a question to check it for real.

The first LLM of an environment gets the **DEFAULT** badge. To make this one the model the AI uses, pick it as the project's **Default LLM** — see [Set the default LLM](/codemash/cloud/ai/llm/set-default.md). To turn it off: [Disable or delete](/codemash/cloud/ai/llm/disable.md).

## Common errors

| Message                                                 | Cause                                                                                                                                                                                                          | Fix                                                                               |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| *Required* under **API Key**                            | The key is empty — it is asked again on every save.                                                                                                                                                            | Type the key again.                                                               |
| *Domain URL format is invalid* (`CM-ERRORS-DOMAIN-002`) | **Endpoint** is not a full address.                                                                                                                                                                            | Write it with `http://` or `https://`.                                            |
| *Error while running chat turn* when you ask the chat   | The provider refused the call: the key is wrong or deleted; or the free tier limit of the model is used up — Cloud does not show the reason; the server log has it (for example *Status: 401 (Unauthorized)*). | Create a new key and save it again. Wait, pick another model, or upgrade at Groq. |
