---
title: "知识库使用量"
method: GET
path: "/llm-application/open/knowledge/capacity"
tags: ["知识库 API"]
---

# 知识库使用量

`GET /llm-application/open/knowledge/capacity`

获取个人知识库的使用量详情，包括字数和字节数。点击 **Try it** 按钮可快速试用。

## Response `200`

业务处理成功

- KnowledgeCapacityResponse
  - `data` object
    - `used` KnowledgeCapacityItem
      - `word_num` integer — 字数
      - `length` integer — 字节数
    - `total` KnowledgeCapacityItem
      - `word_num` integer — 字数
      - `length` integer — 字节数
  - `code` integer — 响应码，200为成功
  - `message` string — 响应信息
  - `timestamp` integer — 响应时间戳

## Other responses

- `default` — 请求失败。

---

[API](https://skmtc.net/bigmodel/apis/zhipu-ai-api.md) · [All operations](https://skmtc.net/bigmodel/apis/zhipu-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigmodel/zhipu-ai-api/revisions/37de2d7b73de/schema)
