> 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/maiagent-user-guide/maiagent-user-guide-ja/others/usage.md).

# 使用量の計算

本ページでは、ご利用時にシステムが **会話の文字数** と **ナレッジベースの容量** をどのように計算するかについて説明します。使用量の計算方法を理解することで、リソースをより効率的に計画し、AIアシスタントを設計するのに役立ちます。

## 会話の文字数の計算 <a href="#conversation-text-calculation" id="conversation-text-calculation"></a>

### 通常のテキストの計算方法 <a href="#general-text-calculation" id="general-text-calculation"></a>

* 各ラウンドの会話において、**ユーザーの入力** と **AIアシスタントの返信** の両方がカウントされます。
* 1文字を1字として計算します

例：会話履歴において、ユーザーの入力「Hello!」は6字、「こんにちは」は5字として計算されるため、合計で11字となります

```
ユーザー：Hello!
AIアシスタント：こんにちは
```

### 画像の計算方法 <a href="#image-calculation" id="image-calculation"></a>

画像1枚につき **500** 字を使用したものとして計算します

## ナレッジベースの容量の計算 <a href="#knowledge-base-storage-calculation" id="knowledge-base-storage-calculation"></a>

組織配下のすべてのAIアシスタントのナレッジベースのアップロードページにある **ファイルサイズ** の合計が、ナレッジベースで使用されている容量となります。

## 使用量統計ページ <a href="#usage-statistics" id="usage-statistics"></a>

現在の使用量は **組織設定** からご確認ください

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

## よくある質問 <a href="#faq" id="faq"></a>

* ファイルを削除した場合、容量はカウントされますか？
  * 削除後はカウントされません


---

# 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:

```
GET https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/others/usage.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.
