> ## Documentation Index
> Fetch the complete documentation index at: https://hilt.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM 成本

> 所有调用模型的 Hilt 服务的 token 用量与花费。

LLM 成本位于 **Settings → Admin → LLM Cost（设置 → 管理 → LLM 成本）**。

当模型账单突然上升时使用本页：它显示**哪个服务**、**哪个模型**、**哪个功能**在消耗 token。仪表盘（发现叙述、裁决）与 [查询](https://hilt.ai/docs/zh/dashboard/query.md) 助手写入同一套用量行，因此这是整个产品的花费视图。

需要 **view audit** 权限。

***

## 时间范围

分段切换：**7 days**、**30 days** 或 **90 days**。默认 **30 days**。

***

## 摘要

顶部四个指标：

| 指标 | 含义 |
| - | - |
| **Spend** | 所选范围内已定价的美元成本，以及已定价调用数 |
| **Total tokens** | 提示（入）加补全（出） |
| **Output share** | 产出答案的 token 占比；其余为输入。同时显示输入中由缓存提供的比例 |
| **Failed calls** | 范围内的错误。重试仍消耗 token |

若部分调用运行在没有价目表费率的模型上，这些 token 会计入但**不计入美元金额**，并由横幅提示。提供商未返回用量块的调用则同时排除 token 与成本。

***

## 按服务的每日花费

按天堆叠的已定价花费柱状图，按调用模型的 Hilt 服务拆分（例如仪表盘后端与查询服务）。未定价模型不出现在这些柱中。

***

## 明细

四张表，各含占比、调用次数、token 与成本：

| 表 | 回答的问题 |
| - | - |
| **By page** | 哪块屏幕触发了花费。后台 worker 没有页面。同时显示每次调用的平均提示 token |
| **By service** | 哪个 Hilt 服务在调用模型 |
| **By model** | 花费落在哪个模型（网关实际路由的 id），以及提供商 |
| **By feature** | 哪个产品功能消耗了 token |

***

## 相关

* 设置总览 → [设置](https://hilt.ai/docs/zh/dashboard/settings)
* 自然语言助手 → [查询](https://hilt.ai/docs/zh/dashboard/query.md)
* 订阅发票 → [计费](https://hilt.ai/docs/zh/administration/billing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.