# Vertex AI

## チュートリアル概要

### 1. APIキーを取得する

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

<figure><img src="/files/2eb248cc81b0823f73094928bb807ad2b49e0ea9" alt=""><figcaption></figcaption></figure>

* に入る[Vertex AI コンソール](https://console.cloud.google.com/vertex-ai)
* 作成したプロジェクトで有効化する [Vertex AI API](https://console.cloud.google.com/apis/library/aiplatform.googleapis.com?inv=1\&invt=Ab0iBA)

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

## 2. API アクセス権限を設定する

* 開く [サービスアカウント](https://console.cloud.google.com/iam-admin/serviceaccounts) 権限画面で、サービスアカウントを作成する

<figure><img src="/files/25976aab3c521bfe2223d2315fa76a6786c28acc" alt=""><figcaption></figcaption></figure>

* サービスアカウント管理ページで、先ほど作成したサービスアカウントを見つけて、`キー`をクリックし、新しい JSON 形式のキーを作成する

<figure><img src="/files/5e263a8320987a22df9df074563a4399a545176d" alt=""><figcaption></figcaption></figure>

* 作成に成功すると、キー ファイルは JSON ファイルとして自動的にパソコンに保存されますので、 **大切に保管してください**

## 3. Cherry Studio で Vertex AI を設定する

* Vertex AI サービスプロバイダーを選択する
* JSON ファイルの対応するフィールドに入力する

<figure><img src="/files/3b0cfccb667b4ba7cca6dc6b2f5d5d2c6fb218fc" alt=""><figcaption></figcaption></figure>

追加をクリックする [モデル](https://console.cloud.google.com/vertex-ai/model-garden)、これで気持ちよく使い始められます！


---

# 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/vertex-ai.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.
