> 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/zhong-wen-fan-ti/pre-basic/providers/google-gemini.md).

# Google Gemini

## 攞 API Key

* 喺攞 Gemini 嘅 api key 之前，你需要有一個 Google Cloud 項目（如果你已經有，可以跳過呢個步驟）
* 入去 [Google Cloud](https://console.cloud.google.com/projectcreate) 建立項目，填寫項目名稱，然後點擊建立項目

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

* 喺官方 [API Key 頁面](https://aistudio.google.com/app/apikey?hl=zh-cn) 撳 `密鑰　建立 API 密鑰`

<figure><img src="/files/62542cf57c30f77754f9753d60126f21dddba83f" 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/22b03f4a444744b65fb7828f2d8107df93740b09" alt=""><figcaption></figcaption></figure>

* 撳最底下管理或者添加，加入支持嘅模型，再打開右上角服務商開關就可以用喇。

{% hint style="info" %}

* 中國除咗台灣之外其他地區無法直接使用 Google Gemini 服務，需要自行解決代理問題；
  {% endhint %}

***

### 💡 獲取幫助同提交反饋

如果您喺配置或使用過程中遇到任何疑問、Bug 或有功能改進建議，請參考 [反饋同建議](/docs/zhong-wen-fan-ti/question-contact/suggestions.md) 入面提供嘅官方渠道。


---

# 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/zhong-wen-fan-ti/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.
