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

Sau khi đã đang nhập thành công <https://platform.openai.com/>&#x20;

**Bước 1:** Truy cập vào đương link sau: <https://platform.openai.com/api-keys>

**Bước 2:** Bạn chọn Create new secret key

![](https://aiv-group.gitbook.io/~gitbook/image?url=https%3A%2F%2F2689032055-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6blRTHwND7G0Pnu8iqQq%252Fuploads%252FWt9G8Wk9a7YvvwoM8jG9%252Fimage.png%3Falt%3Dmedia%26token%3Dc46e7b0a-fd20-4990-a534-1f65e63e67b6\&width=768\&dpr=4\&quality=100\&sign=8062e3fa\&sv=2)Chọn nút "create new secreat key"

**Bước 3:** Điền tên cho key của bạn và nhấn Create secret key

![](https://aiv-group.gitbook.io/~gitbook/image?url=https%3A%2F%2F2689032055-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6blRTHwND7G0Pnu8iqQq%252Fuploads%252F6zznEXxRI77Du0RrqqAF%252Fimage.png%3Falt%3Dmedia%26token%3Da21ac8f5-6794-46a1-a614-5d702901e4c5\&width=768\&dpr=4\&quality=100\&sign=e8e80483\&sv=2)Điền thông tin và tạo key

Như vậy là bạn đã hoàn thành tạo OpenAI key thành công

**Lưu ý:** Không chia sẻ khóa API của bạn với người khác hoặc hiển thị khóa đó trong trình duyệt hoặc mã phía máy khách khác. Để bảo vệ tính bảo mật cho tài khoản của bạn.


---

# 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://guide.ucall.vn/tai-lieu-khac/huong-dan-lay-key-openai.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.
