# Vertex AI

## Обзор руководства

### 1. Получите API-ключ

* Перед тем как получить API-ключ Gemini, вам нужен проект Google Cloud (если он у вас уже есть, этот шаг можно пропустить)
* Перейдите в [Google Cloud](https://console.cloud.google.com/projectcreate) Создайте проект, укажите название проекта и нажмите «Создать проект»

<figure><img src="/files/17675e10a77fced6842b671d494287481bfdb4d8" 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/edec119b5ba358cc9b1c0b5e2fbb8b967fee6f63" alt=""><figcaption></figcaption></figure>

## 2. Настройте доступ к API

* Открыть [Сервисный аккаунт](https://console.cloud.google.com/iam-admin/serviceaccounts) На странице прав доступа создайте сервисный аккаунт

<figure><img src="/files/6c5f6bfc65267e966a446145e106ab9f9a5fb42e" alt=""><figcaption></figcaption></figure>

* На странице управления сервисными аккаунтами найдите только что созданный сервисный аккаунт и нажмите`Ключ`и создайте новый ключ в формате JSON

<figure><img src="/files/8e76919cc8e8f65d65b9b79c72167fb8245b6347" alt=""><figcaption></figcaption></figure>

* После успешного создания файл ключа будет автоматически сохранён на вашем компьютере в формате JSON. Пожалуйста, **надёжно сохраните его**

## 3. Настройте Vertex AI в Cherry Studio

* Выберите провайдера Vertex AI
* Заполните соответствующие поля файла JSON

<figure><img src="/files/5ef9c6931d222af6ccb16a63e82a896f720f7c10" 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/russian/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.
