> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/ji-fen-yu-ji-fei/convai-credits/how-convai-credits-work.md). Agents can also search and read this documentation through its [MCP server](https://docs.convai.com/api-docs/~gitbook/mcp).

# Convai 积分如何运作

了解一个 Convai 积分值多少钱、对话的哪些部分会消耗积分，以及 Convai 如何计算每轮的费用。

Convai 将角色使用的所有服务统一用一种单位衡量：积分。每轮对话都会累加该轮所用服务的积分，例如语音识别、语言模型和语音。了解总积分的构成，有助于你选择符合预算的配置。

### Convai 为什么使用积分

积分将角色使用的所有服务计入同一个余额。一次语音回复可能会用到多种服务，而每种服务的用量单位各不相同：语音识别按音频秒数计算，语言模型按 token 数计算，语音则按生成的语音时长计算。Token 是语言模型读取或生成的一小段文本，通常是单词的一部分。积分将这些不同单位换算成一个数值，因此你只需跟踪一个余额，而不用分别管理每种服务的额度。

你的套餐会在每个计费周期提供一定数量的积分。你为角色选择的模型、语音和功能决定了积分的消耗速度。

### 积分的价值

<code class="expression">space.vars.credits\_per\_dollar</code> 积分的价值为 1 美元。要将积分数量换算成美元，请将其除以 <code class="expression">space.vars.credits\_per\_dollar</code>。一轮对话消耗 19 个积分，即花费 0.019 美元，略低于两美分。

积分衡量的是用量，而不是对话次数。对于同一段对话，两个角色消耗的积分可能大不相同，具体取决于各自使用的模型、语音和功能。

### 哪些操作会消耗积分

积分有三种消耗方式：每轮对话会消耗积分，会话保持连接期间会消耗积分，处理你上传的文件也会消耗积分。

#### 对话轮次

一轮对话包括最终用户的一条消息及角色对此的回复。积分计算器将一轮对话称为一次交互。一段对话由多轮组成。

每轮对话都会根据所用服务计费。 [积分计算器](https://credit-calculator.convai.com) 将这些服务称为：

| 组件        | 内容                           | 衡量内容                                                                      |
| --------- | ---------------------------- | ------------------------------------------------------------------------- |
| **语音输入**  | 语音识别，将最终用户的语音转换为文本           | 语音秒数                                                                      |
| **提示词大小** | 语言模型读取的所有内容：角色指令、当前对话内容以及新消息 | 输入 token 数                                                                |
| **AI 处理** | 语言模型生成回复                     | 输出 token 数                                                                |
| **语音输出**  | 文本转语音，将回复转换为语音               | 生成的语音时长                                                                   |
| **动画**    | 与语音同步的口型和面部动画                | 动画时长                                                                      |
| **记忆**    | 保存和调用长期记忆                    | 每次使用                                                                      |
| **知识**    | 搜索角色的知识库                     | 每次使用                                                                      |
| **平台费用**  | 协调生成回复所需的各项服务                | <code class="expression">space.vars.platform\_fee\_credits</code> 每轮对话的积分 |

语言模型每轮都会读取角色指令和当前对话内容，因此指令越长、对话越长， **提示词大小** 每轮都会增加，而不仅仅是第一轮。

一轮对话只会对实际使用的组件收费。文本对话不会产生 **语音输入** 或 **语音输出** 费用；没有长期记忆的角色也不会产生 **记忆** 费用。

#### 会话时长

会话是指与角色建立的一次持续连接，例如在 Playground 或您自己的应用中进行语音对话。会话处于连接状态时，Convai 会按会话时长收费，此外还会对其中的轮次收费。时长按会话保持开启的全部时间计算，包括无人说话的时间。

{% hint style="warning" %}
即使没有声音，开启的会话也会消耗积分。对话结束后，请及时结束会话，不要让它在后台保持连接。
{% endhint %}

积分计算器不包含会话时长。您可以在每个实际会话的 **积分** 标签页中查看时长费用；另请参阅 [积分余额和计费周期](https://docs.convai.com/api-docs/zh/ji-fen-yu-ji-fei/convai-credits/credit-balance-and-billing-cycle.md).

### 轮次费用的计算方式

Convai 会汇总一个轮次所用各项组件的精确费用，包括 **平台费**，然后将总额向上取整到下一个整数积分。取整仅针对轮次总费用进行一次，不会对各个组件分别取整。某个组件使用了 2 秒，就按 2 秒计费。

由于只对总额取整，一个轮次的费用最多比其精确费用高 1 个积分。积分计算器显示的是取整前的精确费用，因此实际轮次的费用可能比计算器显示的多 1 个积分。

### 示例：一次语音回复

在此示例中，最终用户说话 8 秒。语言模型读取 4,000 个输入令牌（包括角色指令和此前的对话内容），并生成一条 60 个令牌的回复。角色用 16 秒说出这条回复。该轮次的费用明细如下：

| 组件        | 服务                    | 用量          |     积分 |
| --------- | --------------------- | ----------- | -----: |
| **语音输入**  | Soniox STT（流式）        | 8 秒         |  0.267 |
| **提示词大小** | GPT-4o mini           | 4,000 个输入令牌 |  0.600 |
| **AI 处理** | GPT-4o mini           | 60 个输出令牌    |  0.036 |
| **语音输出**  | ElevenLabs Flash v2.5 | 16 秒        | 11.947 |
| **平台费用**  | —                     | 1 个轮次       |  6.000 |
| 取整前总额     |                       |             | 18.849 |
| **该轮次费用** |                       |             | **19** |

组件费用数值四舍五入到小数点后三位，因此相加后会略高于精确总额。以上数值采用积分计算器在 2026 年 9 月的费率。费率可能会变动，请使用计算器查看当前数值。

#### 使用不同语音的同一轮次

下表保持其他条件不变，只将语音从 ElevenLabs Flash v2.5 更换为 Convai TTS（托管）：

| 组件        | 服务             | 用量          |    积分 |
| --------- | -------------- | ----------- | ----: |
| **语音输入**  | Soniox STT（流式） | 8 秒         | 0.267 |
| **提示词大小** | GPT-4o mini    | 4,000 个输入令牌 | 0.600 |
| **AI 处理** | GPT-4o mini    | 60 个输出令牌    | 0.036 |
| **语音输出**  | Convai TTS（托管） | 16 秒        | 0.480 |
| **平台费用**  | —              | 1 个轮次       | 6.000 |
| 取整前总额     |                |             | 7.383 |
| **该轮次费用** |                |             | **8** |

仅更换语音，就能将该轮次的费用从 19 个积分降至 8 个，因为 **语音输出** 是其中费用最高的组件。这仅适用于此配置。如果提示词长得多、使用更大的语言模型，或启用了动画，费用总额中占比最高的组件可能会不同。

### 相关页面

每个轮次都会从余额中扣除积分，因此接下来需要了解余额在一个计费周期内如何变化，以及余额降至零时会发生什么。

{% content-ref url="/pages/7a9f143ebd8418dc708460fd894f2170cf29cfa0" %}
[积分余额与计费周期](https://docs.convai.com/api-docs/zh/ji-fen-yu-ji-fei/convai-credits/credit-balance-and-billing-cycle.md)
{% endcontent-ref %}

{% content-ref url="/pages/83502004c23b528b38584925adb4ed2fc69ebdd1" %}
[估算项目的积分用量](https://docs.convai.com/api-docs/zh/ji-fen-yu-ji-fei/convai-credits/estimate-credit-usage.md)
{% endcontent-ref %}


---

# 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://docs.convai.com/api-docs/zh/ji-fen-yu-ji-fei/convai-credits/how-convai-credits-work.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.
