# Hướng dẫn lấy key Gemini free

Bạn có thể tạo dự án mới nếu chưa có hoặc thêm khóa API vào dự án hiện có. Tất cả các dự án đều phải tuân theo Điều khoản dịch vụ của Google Cloud Platform mà bạn đồng ý khi tạo dự án mới, trong khi việc sử dụng API Gemini và Google AI Studio phải tuân theo Điều khoản dịch vụ của API Gemini.

Hướng dẫn lấy Api key:\
**Bước 1:** Truy cập vào website: <https://aistudio.google.com/>

<figure><img src="/files/Vx3FVt7OQQSr8Rjzfvq4" alt=""><figcaption><p>Truy cập vào trang "<a href="https://aistudio.google.com/">https://aistudio.google.com/</a>"</p></figcaption></figure>

**Bước 2:** Chọn vào "Get API key"

<figure><img src="/files/x0ldnEvBuq9WP12zXDaX" alt=""><figcaption><p>Chọn vào nút "Get API key" ở góc trên bên trái màn hình</p></figcaption></figure>

**Bước 3:** Tiếp theo chọn vào nút "Create API key"<br>

<figure><img src="/files/IZE9OGhyxhSBZq3w5wSZ" alt=""><figcaption><p>Chọn vào nút "Create API key" ở màn hình</p></figcaption></figure>

**Bước4:** Chọn một dự án từ các dự án Google Cloud có quyền truy cập ghi hiện có của bạn<br>

<figure><img src="/files/IL8mhduXvIfweH0cuPUj" alt=""><figcaption><p>Chọn một dự án từ các dự án Google Cloud có quyền truy cập ghi hiện có của bạn</p></figcaption></figure>

**Bước 5**: Tạo API key thành công

<figure><img src="/files/HzSXMeatqMCPsBbLUoN5" alt=""><figcaption><p>Khi tạo API key thành công hãy nhấn nút copy để có thể sử dụng ở bất kì đâu</p></figcaption></figure>

**Bước 6:** Sau khi tạo thành cộng bạn có thể vào cấu hình của bot và thay đổi sang API key của Gemini


---

# 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://aiv-group.gitbook.io/mindmaid-documentation/tutorials/huong-dan-lay-key-gemini-free.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.
