> For the complete documentation index, see [llms.txt](https://docs.vngcloud.vn/vng-cloud-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vngcloud.vn/vng-cloud-document/vn/ai-stack/ai-gateway/bat-dau-voi-ai-gateway/khoi-tao-ai-gateway.md).

# Khởi tạo AI Gateway

Để bắt đầu sử dụng AI Gateway trên GreenNode, bạn hãy thực hiện theo các bước sau:

**Bước 1:** Truy cập giao diện AI Gateway tại GreenNode Console thông qua đường dẫn: <http://aigateway.console.vngcloud.vn/>

**Bước 2:** Trong menu bên trái, chọn mục **AI Gateway**, sau đó nhấn vào nút **Create an AI Gateway**.

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

**Bước 3:** Tại màn hình **Tạo Gateway mới**, vui lòng điền đầy đủ các thông tin sau:

* **AI Gateway Name:** Đặt tên dễ nhớ cho gateway của bạn. Tên này chỉ được chứa các ký tự **a–z, A–Z, 0–9, dấu gạch dưới (\_) hoặc dấu gạch ngang (-)**, và có độ dài từ **5 đến 50 ký tự**.
* **Model Provider:**
  * Chọn nhà cung cấp mô hình AI bạn muốn kết nối như **OpenAI, Anthropic, Google, DeepSeek**.
  * **API Key:** Nhập **API Key** tương ứng từ nhà cung cấp. Nếu chưa có, bạn có thể nhấn **Get API Key** — chúng tôi sẽ chuyển bạn đến trang tương ứng để lấy thông tin.
  * **Chọn mô hình (Model):** Lựa chọn mô hình AI bạn muốn sử dụng (ví dụ: *gemini-1.5*, *gemini-2.0*,...). Nếu muốn xem toàn bộ danh sách, hãy nhấn **View full list** để hiển thị tất cả các model mà chúng tôi hỗ trợ.
* **Gateway Config:** Mặc định, hệ thống sẽ bật tính năng **Authenticated Gateway**. Một **authenticated token** sẽ được tạo tự động – bạn có thể sử dụng token này để gửi request đến AI Gateway.

**Bước 4**: Chọn Create an AI Gateway, AI Gateway của bạn sẽ được khởi tạo và sẵn sàng để sử dụng.

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


---

# 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.vngcloud.vn/vng-cloud-document/vn/ai-stack/ai-gateway/bat-dau-voi-ai-gateway/khoi-tao-ai-gateway.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.
