# Integrations - Gemini

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

<figure><img src="/files/eaa322d0d5525539b6c45c5bf808c6e334cb5fba" alt=""><figcaption></figcaption></figure>

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

The **API key** for Gemini is a unique credential that authorizes your Google Cloud project 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 starting, make sure that:

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

***

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

**Access AI Studio and click to create an 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 into Sprinthub

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

<figure><img src="/files/33d2062150eb9125b82e274b1c74854645ffd15c" 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 for **Artificial Intelligence APIs** and click **Manage**.

<figure><img src="/files/8aefa2772526ffbda6176e0db2c81ffe9a24a4db" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/c3c6eaa537b15ba106ee8b39a990f2c474a4c19b" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/integration/integrations-artificial-intelligence-apis/integrations-gemini.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
