# Google Gemini

## 获取APIKey

* 获取 Gemini 的 api key 前，你需要有一个 Google Cloud 项目（如果你已有，此过程可跳过）
* 进入 [Google Cloud](https://console.cloud.google.com/projectcreate) 创建项目，填写项目名称并点击创建项目

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

* 在官方 [API Key页面](https://aistudio.google.com/app/apikey?hl=zh-cn) 点击 `密钥 创建API密钥`

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

* 将生成的 key 复制，并打开 CherryStudio 的 [服务商设置](https://github.com/CherryHQ/cherry-studio-docs/blob/main/pre-basic/providers/broken-reference/README.md)
* 找到服务商 Gemini，填入刚刚获取到的 key

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

* 点击最下方管理或者添加，加入支持的模型并打开右上角服务商开关就可以使用了。

{% hint style="info" %}

* 中国除台湾之外其他地区无法直接使用 Google Gemini 服务，需自行解决代理问题；
  {% 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/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.
