# Google Gemini

## 攞 API Key

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

<figure><img src="https://2742912793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-1b672d0d3a7c91ec2029c67bf61bd841e60ab506%2Fimage%20(74).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2742912793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-d25a68f843733f29ba0b541b64499296a8eec5ad%2Fimage%20(72).png?alt=media" 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="https://2742912793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-aac8dc1f791d2a5acdcb9c9892e5bd9b69e34b99%2Fimage%20(75).png?alt=media" alt=""><figcaption></figcaption></figure>

* 撳最下面管理或者新增，加入支援嘅模型並打開右上角服務商開關就可以用喇。

{% hint style="info" %}

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