> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/integrations/integrations-artificial-intelligence-apis/integrations-gemini.md).

# Integrations - Gemini

## Step-by-Step Guide to Generating and Integrating the Gemini API Key in Sprinthub

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FMlPgceQEAVIzlFAT4Yu0%2Fimage.png?alt=media&amp;token=614d616a-ce7a-4c50-9fbf-db9fde86db84" alt=""><figcaption></figcaption></figure>

### 1. What the API key is and what it is for

The **API key** from Gemini is a unique credential that authorizes your project in Google Cloud to consume Google's AI services (Gemini models) within other platforms — in this case, Sprinthub. With it, Sprinthub can send prompts to Gemini and receive AI-generated responses.

***

### 2. Prerequisites

Before you begin, make sure that:

* There is already a **active project** in Google Cloud associated with your account.
* You have permission to generate credentials (Editor or Owner) in this project.

***

### 3. How to generate the key in AI Studio

**Access AI Studio and click create API key and start the creation**

{% embed url="<https://aistudio.google.com>" %}

{% embed url="<https://www.youtube.com/watch?v=--QDL1gwLFI>" %}

***

### 4. How to insert the key in Sprinthub

**Open Settings**\
In the top-right corner of Sprinthub, click the ⚙️ icon and then **System Settings**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fryi3IB2Z91FpZfXwPSBG%2Fimage.png?alt=media&amp;token=42e3e7e4-e2a6-4bcd-8ea1-9a65a3cdaeeb" alt=""><figcaption></figcaption></figure>

**Go to Integrations and locate “Artificial Intelligence APIs”**\
In the side menu, choose **Integrations**. Within the integration options, find the panel of **Artificial Intelligence APIs** and click on **Manage**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FGowQOiUcqlSP6tL6M8UH%2Fimage.png?alt=media&amp;token=985af8f2-4b83-4c57-826b-aebab01b1d69" alt=""><figcaption></figcaption></figure>

**Paste the Gemini key**\
In the **Gemini Key**, paste the sequence copied from AI Studio.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FROPvJQKhYvPRRHPAng8e%2Fimage.png?alt=media&amp;token=4aaa9bc4-79bb-47c1-a453-c33256f1055e" alt=""><figcaption></figcaption></figure>

**Save and confirm**\
Scroll to the bottom of the panel and click on **Refresh**. You will see confirmation that the key was accepted.
