# Google Gemini

## Get API Key

* Before obtaining a Gemini API key, you need a Google Cloud project (if you already have one, you can skip this step)
* Go to [Google Cloud](https://console.cloud.google.com/projectcreate) Create a project, enter the project name, and click Create Project

<figure><img src="/files/40c35305af73445fa304250a2443860558e89de0" alt=""><figcaption></figcaption></figure>

* On the official [API Key page](https://aistudio.google.com/app/apikey?hl=zh-cn) Click `Key: Create API key`

<figure><img src="/files/454ab3c9753790de1aa055230c62e371209a2199" alt=""><figcaption></figcaption></figure>

* Copy the generated key, and open CherryStudio's [provider settings](https://github.com/CherryHQ/cherry-studio-docs/blob/main/pre-basic/providers/broken-reference/README.md)
* Find the provider Gemini, and enter the key you just obtained

<figure><img src="/files/3276d309aaf5cc57f4d8690fccb1ac46c8870789" alt=""><figcaption></figcaption></figure>

* Click Manage or Add at the bottom, add the supported models, and turn on the provider switch in the upper right corner to use it.

{% hint style="info" %}

* In China, regions other than Taiwan cannot directly use Google Gemini services; you need to resolve proxy issues yourself;
  {% endhint %}


---

# 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.cherry-ai.com/docs/en-us/pre-basic/providers/google-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.
