> For the complete documentation index, see [llms.txt](https://docs.cherry-ai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherry-ai.com/docs/en-us/pre-basic/providers/google-gemini.md).

# Google Gemini

## Get API Key

* Before obtaining a Gemini API key, you need to have a Google Cloud project (if you already have one, you can skip this step)
* Enter [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 Gemini provider 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 top right to use it.

{% hint style="info" %}

* In China, except for Taiwan, Google Gemini services cannot be used directly; you need to resolve proxy issues yourself;
  {% endhint %}

***

### 💡 Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to [Feedback and Suggestions](/docs/en-us/question-contact/suggestions.md) the official channels provided there.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
