> 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/google.md).

# Google

Connect Google as an LLM integration.

Google runs the Gemini models through the Gemini API (Google AI Studio).

{% hint style="warning" %}
You can connect and test Google in Cloud, but the AI chat cannot run on it yet: every chat question fails with *Error while running chat turn* (the server has no Google chat connector). For the chat, use an OpenAI-compatible provider — [OpenAI](/codemash/cloud/ai/llm/providers/openai.md), [Groq](/codemash/cloud/ai/llm/providers/groq.md), [Mistral](/codemash/cloud/ai/llm/providers/mistral.md), [OpenRouter](/codemash/cloud/ai/llm/providers/openrouter.md) or [Grok](/codemash/cloud/ai/llm/providers/grok.md). Through the SDK, CLI and API the integration is saved the same way: [Save Llm Integration](/codemash/api-reference/ai/integrations/save-llm-integration.md).
{% endhint %}

## Get your credentials

1. Open [Google AI Studio → API keys](https://aistudio.google.com/app/apikey) and sign in with a Google account.
2. Press **Create API key** and choose a Google Cloud project (or let AI Studio create one).
3. Copy the key (it starts with `AIza`).
4. Pick a model from the [Gemini models list](https://ai.google.dev/gemini-api/docs/models), for example `gemini-2.5-flash`.

More in the provider's own guide: [Gemini API — using API keys](https://ai.google.dev/gemini-api/docs/api-key).

## Connect it in Cloud

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

| Field            | Required | What it does                                                              | Example                     |
| ---------------- | -------- | ------------------------------------------------------------------------- | --------------------------- |
| API Key          | yes      | The Google key. Stored encrypted, never shown again.                      | `AIza-placeholder-not-real` |
| Default Model    | no       | The model used when a request names none. Empty = the provider's default. | `gemini-2.5-flash`          |
| Integration Name | yes      | How the integration is listed in Norbix.                                  | `Gemini Flash`              |

Google has no **Endpoint** field: Norbix always uses Google's own address.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-c3c4d6e017795c915782c36f11f55e97d4221cec%2Fgoogle-form-1.png?alt=media" alt="New Google 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 Google 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-fa903960beaadc25477a1b869e249719026fb08f%2Fgoogle-saved-2.png?alt=media" alt="The Google 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 Google, 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.                                                                                         |
| *Error while running chat turn* on every chat question | Norbix has no chat connector for Google yet: the server log says *Service of type 'IChatCompletionService' not registered*. | Use an OpenAI-compatible provider (OpenAI, Groq, Mistral, OpenRouter, Grok) for the chat until it is added. |
