> For the complete documentation index, see [llms.txt](https://docs.goassay.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goassay.ai/use-tools/zh/ru-men/turn-on-paid-calls.md).

# 开启付费调用

批准默认支出限额，并从本地 AI 应用进行一次付费工具调用。

允许本地 AI 应用在限额内使用你的 Assay 余额。你只需在钱包中批准一次；之后，应用就能在限额内支付调用费用，直到权限到期或你将其停止。

{% hint style="info" %}
**开始前：**[连接本地 AI 应用](/use-tools/zh/ru-men/connect-your-ai-app.md)、[完成免费调用](/use-tools/zh/ru-men/make-your-first-call.md)，并[充值](/use-tools/zh/ru-men/add-funds.md)。claude.ai 和 ChatGPT 的托管连接器无法付款。默认只有 **Everything** 连接可以付款；对于工具集或单个工具的 URL，还需运行 **Connect** 上 **Or let it also allow this URL for paid calls:** 下显示的命令。
{% endhint %}

## 操作步骤

{% stepper %}
{% step %}

### 请求一个付费工具

让 AI 应用为你的任务查找付费 Assay 工具，显示价格，并调用一个费用不超过 **$0.50** 的工具。例如：

> Find a paid Assay tool for my task. Show me what it does and its price. Use one costing at most $0.50 per call.

将 “my task” 替换为你想做的事。选择确实需要付款的工具；免费调用不会打开支付设置。

首次尝试付费调用时，会返回类似这样的消息：

> This tool is paid, and paid calls are off for this agent. Open *(a link to Assay)* to turn them on (about a minute), then ask again. The page must show this payment key: 1A2B 9F3C.

最后一部分是**支付密钥**指纹。密钥由电脑上的 Assay 本地应用创建，无需你自行创建或粘贴。
{% endstep %}

{% step %}

### 打开应用提供的链接

打开应用返回的完整链接。浏览器也可能自动打开它。如果需要登录，请登录同一个 Assay 账户。

页面标题是 **Turn on paid calls for**，后面是已连接应用的名称。确认这是你正在使用的应用。
{% endstep %}

{% step %}

### 核对支付密钥

将页面 **Payment key** 下的指纹与 AI 应用显示的指纹比较。指纹是密钥的最后 8 个字符，分为两组，每组四个，例如 `1A2B 9F3C`。

如果一致，勾选 **It matches what my app showed.** 如果不一致，不要批准。返回应用，重新打开它提供的链接。
{% endstep %}

{% step %}

### 核对默认限额

保留默认值：

| 限额               | 默认值   |
| ---------------- | ----- |
| **Per call**     | $0.50 |
| **Per 24 hours** | $5    |
| **Days**         | 30    |

阅读 **What your wallet will sign**。如果账户上限尚未设置或过低，页面会包含账户上限的设置。该上限适用于整个账户；支付密钥另有上面列出的自身限额。
{% endstep %}

{% step %}

### 在钱包中批准

选择 **Approve**。将钱包请求中的密钥末尾字符和限额与页面比较，然后签名。

如果必须先设置账户上限，请完成账户上限签名和支付权限签名。否则，只需签署支付权限。这些批准使用免费的钱包签名，无需网络手续费。

等待 **Paid calls are on. Go back to your app and ask again.**
{% endstep %}

{% step %}

### 让应用重试

返回 AI 应用，让它再次执行付费工具调用。设置支付权限的那次尝试不会自动完成工具调用。资金已确认且权限生效后，应用就能在批准的限额内付款并返回结果。
{% endstep %}
{% endstepper %}

## 确认是否成功

AI 应用返回付费工具结果，不再提供设置链接。在 **Activity → Calls** 中找到新调用，打开后核对金额和支付状态。

<figure><img src="https://1515942101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ3s1eCyfwYmPV4hcUtOZ%2Fuploads%2Fgit-blob-b2baa207bea1392562c27eaa0f24bdc7a9aa94cd%2Fturn-on-paid-calls-1.png?alt=media" alt="调用筛选器和一个可打开的已收费工具调用"><figcaption><p>找到付费调用。</p></figcaption></figure>

<figure><img src="https://1515942101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ3s1eCyfwYmPV4hcUtOZ%2Fuploads%2Fgit-blob-ed3cd4d75735b037582a150b8301b4c1bb03a846%2Fturn-on-paid-calls-2.png?alt=media" alt="收据显示二十五美分的收费和资金去向"><figcaption><p>在收据上核对费用。</p></figcaption></figure>

要停止以后的付款，打开 **Controls → Agents**，找到此应用的支付密钥，选择 **Stop it paying**。完成钱包签名以移除权限。免费调用仍可使用，已发生的调用仍需结算和付款。停止支付权限不会退还之前的调用费用，也不会提取余额。

## 遇到问题时

| 你看到的情况                                                                                            | 处理方式                          |
| ------------------------------------------------------------------------------------------------- | ----------------------------- |
| **This link doesn't match the payment key bound to this app. Don't approve.**                     | 不要批准。返回应用，重新打开它提供的链接。         |
| **This app isn't on the account you are signed in with. Sign in with the account your app uses.** | 登录连接应用时所用的账户。                 |
| **This link is missing its payment key.**                                                         | 打开应用输出的完整链接；它必须以 `#key=…` 结尾。 |
| 资金仍在确认中                                                                                           | 等到充值确认且可用于支出后重试。              |
| 应用拒绝超出限额的调用                                                                                       | 首次付费调用请选择默认限额内的工具。            |

<details>

<summary>可选：修改默认限额</summary>

选择 **Approve** 前，可以修改本页的 **Per call**、**Per 24 hours** 和 **Days**。签名前核对由此生成的钱包请求。基本设置不需要修改这些字段。

Assay 本地应用也会执行自己的限额：默认每次调用 $0.50、每 24 小时 $5。浏览器中的限额无法提高它们。要修改它们，请在终端中运行 `npx -y @goassay-ai/mcp limits set --per-call 1 --per-day 10`。

</details>

## 下一步

* [查找工具](/use-tools/zh/ri-chang-shi-yong/find-tools.md)


---

# 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.goassay.ai/use-tools/zh/ru-men/turn-on-paid-calls.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.
