# Vertex AI

## Tutorial Overview

### 1. Get an API Key

* Before obtaining a Gemini API key, you need a Google Cloud project (if you already have one, you can skip this step)
* Go to [Google Cloud](https://console.cloud.google.com/projectcreate) Create a project, enter the project name, and click Create Project

<figure><img src="/files/12e124197fd018f61e00a8f3aea78663731047d3" alt=""><figcaption></figcaption></figure>

* Go to[Vertex AI Console](https://console.cloud.google.com/vertex-ai)
* Enable in the created project [Vertex AI API](https://console.cloud.google.com/apis/library/aiplatform.googleapis.com?inv=1\&invt=Ab0iBA)

<figure><img src="/files/8427cf78ef612e73cffe74c633b867f8b271acdc" alt=""><figcaption></figcaption></figure>

## 2. Set up API access permissions

* Open [Service account](https://console.cloud.google.com/iam-admin/serviceaccounts) Permissions page, create a service account

<figure><img src="/files/2747c44d1c4201c0bb6fcc506e0dd85792f8086b" alt=""><figcaption></figcaption></figure>

* On the service account management page, find the service account you just created and click`Key`and create a new JSON-format key

<figure><img src="/files/94e9a3256e81f8bddd1012be6fdd933bf9180f94" alt=""><figcaption></figcaption></figure>

* After creation succeeds, the key file will be automatically saved to your computer in JSON format, please **keep it safe**

## 3. Configure Vertex AI in Cherry Studio

* Select the Vertex AI provider
* Fill in the corresponding fields from the JSON file

<figure><img src="/files/41624de6690f2bdd4b2410ecfc37f88b6b75b13b" alt=""><figcaption></figcaption></figure>

Click Add [Model](https://console.cloud.google.com/vertex-ai/model-garden), and you can happily start using it!


---

# 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/en-us/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.
