# Google Gemini

🚀 Launch your own AI chatbot effortlessly with Google Gemini!&#x20;

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

You have to follow the instructions to connect Google Gemini

1. Go to 👇

{% embed url="<https://ai.google.dev/>" %}

2. Click on “Get Gemini API key in Google Studio”
3. Go to AI STUDIO Create API key  👇

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

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FFBC3znm3AFJ1J92Wfpyo%2FUntitled.png?alt=media&#x26;token=2b93ee05-761f-4139-ba13-054a87b344f0" alt=""><figcaption></figcaption></figure>

4. Select project

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FynDi6fXZDcAn9Frr6SX3%2FUntitled.png?alt=media&#x26;token=cb57cef6-adf9-4a97-8299-0ac1ecc32c4c" alt=""><figcaption></figcaption></figure>

5. API key generated. Copy the API key

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FORcxxd5TcwZJYCvw6bFo%2FUntitled.png?alt=media&#x26;token=99fc20cf-d792-44d5-8091-65e853baba36" alt=""><figcaption></figcaption></figure>

6. Paste the API in Integration -> Google Gemini

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FiXVwQhZwrKhhNIlt2k5A%2FGoogle%20Gemini.png?alt=media&#x26;token=a1ded717-496a-4e52-b30f-e775f74bf519" alt=""><figcaption></figcaption></figure>

**Available Actions:**

* Chat completions
* Clear chat history&#x20;
* List available models.
* Vision: Image-to-text conversion.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F8FEayuMKoOfJrD1rFvp3%2FUntitled.png?alt=media&#x26;token=fb457082-3e71-47c4-958f-f91bc0e72d21" alt=""><figcaption></figcaption></figure>

**Creating Chat Completions:**

* Users can input messages from users, enable history, select preferred models, set parameters (max tokens, temperature), and receive responses.
* Notable difference: Google Gemini doesn't support system messages, limiting its use for business-related inquiries compared to OpenAI.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2Fb2N2i1JrDN6CRRb6SIlG%2FUntitled.png?alt=media&#x26;token=108ce983-7272-4db4-acb0-35bc1f2dd741" alt=""><figcaption></figcaption></figure>

**Response Payload:**

* Responses are fast and returned with a different payload structure compared to OpenAI.
* Responses are located within the content section of the payload.
* Safety ratings provided, including categories like sexually explicit, hate speech, harassment, and dangerous content.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F8TwjnxcohtMPDq4oWZ3F%2FUntitled.png?alt=media&#x26;token=5b58d330-1216-456c-827e-8c00964841ee" alt=""><figcaption></figcaption></figure>

Safety ratings:

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FLItbWQg2xcAMXCHlIaa9%2FUntitled.png?alt=media&#x26;token=bf6d594d-303e-4632-bf8b-b8cedce61e69" alt=""><figcaption></figcaption></figure>

**Models:**

Users can retrieve available models through a GET request.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F0YJEpfaIcOF8Bt1T7K9C%2FUntitled.png?alt=media&#x26;token=d0e5109d-cfe7-423d-949f-5236c6af93c5" alt=""><figcaption></figcaption></figure>

**Vision Functionality:**

Vision functionality allows users to input image URLs and receive descriptions, with safety ratings provided for images as well.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FqZxCUqhieuAcgbnVavKu%2FUntitled.png?alt=media&#x26;token=8a42e7a4-9067-41eb-80b9-58c212ceef84" alt=""><figcaption></figcaption></figure>

How to use in flow follow the video:

🚀 Launch your own AI chatbot effortlessly with Google Gemini!&#x20;

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