# Google Gemini

## APIキーを取得

* Gemini の API キーを取得する前に、Google Cloud プロジェクトが必要です（すでにある場合、この手順はスキップできます）
* に入る [Google Cloud](https://console.cloud.google.com/projectcreate) プロジェクトを作成し、プロジェクト名を入力して「プロジェクトを作成」をクリックします

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

* 公式の [API Keyページ](https://aistudio.google.com/app/apikey?hl=zh-cn) をクリック `キー　APIキーを作成`

<figure><img src="/files/4d7f178c9c862f947a99d41df557874cb6538990" alt=""><figcaption></figcaption></figure>

* 生成されたキーをコピーし、CherryStudio の [サービスプロバイダー設定](https://github.com/CherryHQ/cherry-studio-docs/blob/main/pre-basic/providers/broken-reference/README.md)
* サービスプロバイダー Gemini を見つけ、先ほど取得したキーを入力します

<figure><img src="/files/73c21935e70f7c7807c8f64f30333c35e4a40262" 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/docs/jp/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.
