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

# 用量统计与计费

Step Code 的官方模型有两种计费方式：Step Plan 使用订阅额度，API Key 按量计费。会话按当前所选模型的供应商计费。API Key 按量计费的详细说明见开放平台[计费规则](https://platform.stepfun.com/docs/zh/guides/pricing/intro.md)。

## 查看用量

在侧栏进入「设置 → 数据统计 → 用量统计」。「Plan」标签展示订阅额度、账户余额和历史用量；「API Key」标签提供前往开放平台查看用量的入口。

![用量统计中的 Plan 标签、用量热力图和日期筛选](https://mintcdn.com/stepfun/ho4Rzxj0opZfa8eD/images/step-code/desktop/desktop-plan-usage.png?fit=max\&auto=format\&n=ho4Rzxj0opZfa8eD\&q=85\&s=974c19d0682d62384debd6d54c8f129a)

Plan 视图从以下角度展示订阅额度的消耗：

| 图表 | 内容 |
| - | - |
| 活跃热力图 | 按日期排布的日历，颜色深浅表示当天用量。可以切换近 30 天、近 90 天、近一年或全部时间，也可以指定日期区间 |
| 每日趋势 | 每日调用量的折线图，配合时间范围筛选查看高峰与低谷 |
| 模型占比 | 各模型的请求数量与占比，以及具体模型清单 |

API Key 的调用用量在开放平台查看。

## 处理额度不足

* Step Plan 用户：额度用完时会提示升级套餐。未订阅时只做提示，仍可以发送消息。
* API Key 与自定义模型用户：额度或余额不足时，到对应服务商处补充额度，或改用其他可用模型。

需要继续当前任务时，可以在输入框底部切换到仍有额度的模型，当前会话不会中断。


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