> For the complete documentation index, see [llms.txt](https://docs.avis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avis.net/vi/huong-dan/console/usage-query.md).

# Tra cứu mức sử dụng

**Usage Query** cho phép bạn xem chi tiết mức sử dụng API theo API key, loại sản phẩm và khoảng thời gian. Dùng trang này để tìm nguyên nhân chi tiêu tăng, kiểm tra một tích hợp cụ thể hoặc chuẩn bị báo cáo chi phí.

Mở trang này từ mục **Usage Query** trên thanh bên của Console.

***

## Thực hiện tra cứu

**Bước 1:** Chọn loại sản phẩm từ các tab ở phía trên:

* **Video Generation**
* **Image Generation**
* **Audio Generation**
* **Text Generation**
* **Embedding Generation**
* **Video Tool**

**Bước 2:** Trong **API Keys**, chọn **All keys** hoặc một key cụ thể.

**Bước 3:** Trong **Select Time Range**, chọn ngày bắt đầu và ngày kết thúc. Mặc định là 7 ngày gần nhất.

**Bước 4:** Xem kết quả:

* **Overall Overview** hiển thị **Total Requests**, **Successful Tasks** và **Total Cost (Credits)** cho lựa chọn của bạn.
* **Query Analysis** hiển thị thêm các chi tiết như số đầu ra đã tạo và số request đồng thời theo thời gian.

**Lưu ý:** Nếu bạn thấy **No data found**, nghĩa là không có mức sử dụng nào của loại sản phẩm đó với key và khoảng thời gian đã chọn. Hãy thử tab khác hoặc mở rộng khoảng thời gian.

***

## Dashboard hay Usage Query?

| Dùng **Dashboard** khi bạn muốn…   | Dùng **Usage Query** khi bạn muốn…                 |
| ---------------------------------- | -------------------------------------------------- |
| Xem nhanh tổng chi tiêu            | Tìm hiểu một key hoặc một loại sản phẩm            |
| So sánh các mô hình                | Đối chiếu số tác vụ thành công với tổng số request |
| Tách mức sử dụng Playground và API | Xem một khoảng thời gian tùy chỉnh cụ thể          |

Để đưa dữ liệu sử dụng vào công cụ riêng của bạn, hãy dùng `GET /api/compat/v1/usage`. Xem [Mức sử dụng](/vi/tai-lieu-api/introduction/use.md).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avis.net/vi/huong-dan/console/usage-query.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
