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

# Google Gemini

## APIキーを取得する

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

<figure><img src="https://3776196818-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キーのページ](https://aistudio.google.com/app/apikey?hl=zh-cn) をクリック `キー　APIキーを作成`

<figure><img src="https://3776196818-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>

* 生成されたキーをコピーし、CherryStudio の [モデルサービス設定](/docs/jp/pre-basic/providers/providers.md)
* プロバイダ Gemini を見つけ、先ほど取得した key を入力します

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

* 最下部の管理または追加をクリックして、対応モデルを追加し、右上のサービス提供者のスイッチをオンにすれば使用できます。

{% hint style="info" %}

* 中国では台湾を除くその他の地域からは Google Gemini サービスを直接利用できないため、プロキシの問題は自分で解決する必要があります；
  {% endhint %}

***

### ヘルプの取得とフィードバックの送信

設定または使用中に不明点、バグ、機能改善の提案がある場合は、 [フィードバックと提案](/docs/jp/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, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/google-gemini.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
