> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/zen-firewall/zen-features/tracking-ai-llm-usage-with-zen-firewall.md).

# Zen Firewall で AI / LLM の利用を追跡する

Aikido の Zen Firewall は、OpenAI、Anthropic などの主要プロバイダーにわたる AI / LLM API の使用状況を監視します。この機能はモデルの使用状況とトークン消費を追跡し、コスト見積もりを提供して、AI インフラへの支出を把握し最適化できるようにします。各リクエストについて、使用した特定のモデルとともに、入力トークンと出力トークンの両方を追跡します。

{% hint style="warning" %}
コスト見積もりは標準価格に基づいており、LLM プロバイダーとの個別割引は反映されません。
{% endhint %}

## ユースケース <a href="#use-cases" id="use-cases"></a>

* 📊 トークン使用量を監視: すべての LLM 呼び出しで入力・出力トークンを追跡
* 💰 コストを見積もる: API 使用量のリアルタイムなコスト見積もりを取得
* 🔍 モデルの使用状況を特定: どのモデルが最も頻繁に使われているかを確認
* 📈 支出を最適化: LLM コストを削減できる機会を特定
* 🎯 プロバイダー別に追跡: OpenAI、Anthropic、その他のプロバイダー全体で使用状況を監視
* ⚡ 異常を検出: トークン消費の異常な急増を見つける

### LLM の使用状況の確認方法

特定のアプリを選択し、次に **ファイアウォール** タブへ移動して「**AI の利用**」で使用状況の分析を表示します。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-04c5c0d1a4a6c5c05aafd8a71f19d1daaba621c7%2FScreenshot%202025-06-26%20at%2010.36.50.png?alt=media" alt=""><figcaption></figcaption></figure>

### AI部品表（AIBOM）

Zen Firewall は、アプリケーションが通信するすべての AI および LLM サービスを一覧化した AI 部品表を生成できます。

この機能はリクエストに応じて利用可能です。有効化するにはサポートまでお問い合わせください。<br>


---

# 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://help.aikido.dev/docs/docs-ja/zen-firewall/zen-features/tracking-ai-llm-usage-with-zen-firewall.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.
