> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/~/revisions/VPtD4w6TGRsqMHNQKDN0/others/usage.md).

# 用量計算

本頁面說明系統在使用時，如何計算 **對話文字數量** 與 **知識庫容量**。理解用量計算方式能幫助您更有效地規劃使用資源與設計 AI 助理。

## 對話文字數量計算

### 一般文字如何計算

* 每一輪對話中，**使用者輸入** 與 **AI助理回覆** 都會被計入。
* 一個字元計算為一個字

例如：對話紀錄中，使用者輸入將計算為 6 個字，您好將計算為 2 個字，因此總共為 8 個字

```
使用者：Hello!
AI助理：您好
```

### 圖片如何計算

每張圖片計算為使用 **500** 個字

## 知識庫容量計算

組織下的所有 AI 助理的知識庫上傳頁面中的 **檔案大小** 加總即為知識庫所使用的容量。

## 用量統計頁面

請至 **組織設定** 查看目前用量

<figure><img src="/files/dt9hktlOJWKzchxyAuW5" 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.maiagent.ai/~/revisions/VPtD4w6TGRsqMHNQKDN0/others/usage.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.
