# Credit 計費怎麼運作

Blockchain Atlantis 採 credit（點數）制計費。

## 重點

* 每把 API key 有自己的 **credit 餘額**。
* 每個端點有各自的**成本權重**；呼叫時依權重扣點。
* **只有成功（HTTP 2xx）的回應才扣點**——錯誤不扣。
* 管理／健康檢查類端點成本為 0。

## 怎麼知道花了多少

每個成功回應都會帶：

| 來源                                           | 欄位    |
| -------------------------------------------- | ----- |
| Header `X-Credit-Cost`                       | 本次扣除  |
| Header `X-Credit-Remaining`                  | 扣除後餘額 |
| `meta.credit_cost` / `meta.credit_remaining` | 信封內版本 |

## 餘額不足怎麼辦

餘額不足時，請求回 `402 insufficient_credit`，且不會扣點。請聯絡你方管理員加值。

## 如何加值

加值由管理員於管理後台操作（為指定 key 增加 credit）。詳見[管理 API key](/help-center/guan-li/managing-api-keys.md)。

## 如何調整方案

方案決定限流（RPS／Burst）與每月 credit 配額。需要調整方案時，請聯絡你的客戶經理，或由管理員建立新方案後將 key 套用過去。

{% hint style="info" %}
每筆扣點都會寫入帳本並關聯 `request_id`，可供事後對帳。需要用量明細請洽客戶經理。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blockchainsecurity.asia/help-center/fang-an-yu-ji-fei/how-credit-billing-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
