---
title: Linked billing
url: https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing
description: 了解由誰付費、哪些客戶符合資格，以及適用誰的條款，以便您判斷 Linked billing 是否適合您的業務。
featureMetadata:
  status: beta
  betaHeader: user-profiles-billing-2026-10-01
  supportedModels:
    - claude-fable-5-2
    - claude-mythos-5-2
    - claude-fable-5-1
    - claude-mythos-5-1
    - claude-fable-5
    - claude-mythos-5
    - claude-mythos-preview
    - claude-opus-5-5
    - claude-opus-5
    - claude-sonnet-5-5
    - claude-sonnet-5
    - claude-haiku-5-5
    - claude-haiku-4-5-20251001
    - claude-opus-4-8
    - claude-opus-4-7
    - claude-opus-4-6
    - claude-sonnet-4-6
    - claude-opus-4-5-20251101
    - claude-sonnet-4-5-20250929
  supportedPlatforms:
    Claude API:
      availability: beta
      note: 只有傳送 `billing_policy` 的請求才需要 beta 標頭。
---

<Warning>
  Claude Platform OAuth 是一項 Beta Service：依據您與 Anthropic 之間的協議（例如[商業服務條款](https://www.anthropic.com/legal/commercial-terms)）以及[特定服務條款](https://www.anthropic.com/legal/service-specific-terms)所提供的預發布軟體。在 Beta 期間，端點、參數與行為可能會變更。它可能不適合用於正式環境。
</Warning>

Linked billing 讓您的客戶透過他們自己的 Claude 組織，支付您產品中的 Claude 用量。它是 [Claude Platform OAuth](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/overview) 的一項功能，因此透過您為產品註冊的 [OAuth 應用程式](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/overview#your-oauth-app)運作。客戶只需將其組織連結到您的應用程式一次。之後，您可以在每個 Claude API 請求上選擇由您或由客戶付費。

## 運作方式

假設 Acme 使用您的產品，且已經向 Anthropic 支付其自身的 Claude 用量。您為 Acme 建立一個 [user profile](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles)（使用者設定檔）：這是您組織中代表該客戶的一筆記錄。Acme 的某人在您的產品中點擊 [Link your Claude organization 按鈕](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/link-button)。在 Claude 的核准頁面上，他們核准您的應用程式。核准需要在 Acme 的 Claude 組織中具備 Admin 或 Billing 角色。他們也可以為其設定每月的 [spend cap](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/what-your-customers-see#spend-caps)（支出上限）。

從此之後，您的後端會以您應用程式的 [operator service account](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/set-up-your-app#service-account)（操作員服務帳戶）傳送 Acme 的 Claude API 請求，這是您 Claude 組織中的一個非人類帳戶。只有該帳戶可以向已連結的客戶計費。客戶自己的 OAuth 存取權杖也視為該帳戶，因此使用該權杖的請求可以向該客戶計費，但不能向其他客戶計費。您的後端會標記由 Acme 付費的請求，Anthropic 會將這些請求以 Acme 自己的費率計費給 Acme 的組織，而非您的組織。[Linked Billing Beta Terms](https://www.anthropic.com/legal/linked-billing-terms) 說明了客戶的收費方式。

### 連線如何開始與結束

連結會建立一個連線，將客戶的 Claude 組織與其使用者設定檔綁定。該連線屬於客戶的組織，而非核准它的人，因此即使該人離開，連線仍會保留。以下是連線結束的常見方式：

* 客戶取消連結您的應用程式。
* 您組織的 Admin 在 Claude Console 中取消連結該客戶。
* 您的後端透過 API 結束連線。

另外還有[較不常見的連線結束方式](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/what-your-customers-see#after-linking)。客戶取消連結時，Anthropic 不會通知您，因此請[檢查客戶是否仍處於連結狀態](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/manage-customers#check-a-links-status)。

### 在每個請求上選擇由誰付費

您的操作員服務帳戶為已連結客戶傳送的每個請求，都會在 `anthropic-user-profile-id` 標頭中指明其使用者設定檔。請求主體的內容決定由誰付費：

* 當主體的 [`billing_policy`](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#bill-a-request) 欄位將 `bill_to` 設為 `user_profile` 時，**由客戶付費**。
* 當 `bill_to` 為 `self`，或主體沒有 `billing_policy` 時，**由您付費**。

因此，您可以將客戶的部分用量計費給客戶，其餘部分則由您自行支付。改用客戶自己的存取權杖傳送的請求，只會向該客戶計費：請參閱[為每位客戶使用個別的憑證](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/credential-for-each-customer)。

### 請求被拒絕時

如果 Anthropic 無法就某個請求向客戶計費，Claude API 會拒絕該請求。它絕不會改向您計費。以下是常見原因：

* 客戶已達到他們為您的應用程式設定的支出上限，或其組織已達到每月支出限制。
* 客戶帳戶上沒有可支付該請求的額度。
* 連線已結束。

您可以將被拒絕的請求改為由您付費的請求再次傳送。關於每種拒絕情況及其修正方式，請參閱 [Linked billing 錯誤](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/errors)。

## 何時使用

Linked billing 適合使用者大多是擁有自己 Claude 組織的 Claude Platform 客戶的產品。若要提供此功能，您自己的組織必須透過預付額度或發票計費直接向 Anthropic 付款。

有些請求無法向客戶計費。若要處理這些請求，請將它們作為由您付費的請求傳送：

* 針對其組織[無法以此方式計費](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing#eligible-customers)的客戶的請求
* 傳送至[無法向客戶計費的端點](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing#which-endpoints-can-bill-a-customer)的請求

### 符合資格的客戶

只有當客戶的 Claude 組織透過預付額度或發票計費直接向 Anthropic 支付其 API 用量時，才能以此方式向該客戶計費。以下組織無法以此方式計費：

* 透過雲端市集（AWS、Google Cloud 或 Azure）計費的組織
* 僅有 Claude 訂閱、本身沒有 Claude API 存取權的組織

僅有 Claude 訂閱的組織無法連結您的應用程式。透過雲端市集計費的組織，會在嘗試連結時被拒絕，或在您向其計費的每個請求上被拒絕。因此，完成連結並不代表此類組織可以被計費。

### 哪些額度可以付款

並非所有額度都能支付應用程式向客戶計費的請求。可用於付款的額度取決於被計費的組織：

* **當您的應用程式向客戶計費時：**&#x5BA2;戶的組織
* **當其他公司的應用程式向您計費時：**&#x60A8;自己的組織

在 Claude Console 中為該組織購買的額度可以支付這些請求。如果該組織採用發票計費，這些請求會開立發票。

Anthropic 的部分促銷額度無法支付這些請求。其中包括 Claude Max、Ultra 和 Team 方案隨附的每月 API 額度。來自 Anthropic 合作夥伴、創投與新創計畫的額度不符合支付這些請求的資格。

當該組織的帳戶上沒有任何可支付請求的項目時，Claude API 可能會以 402 拒絕該請求。回應不會說明拒絕是因額度不足還是支出限制所致。請參閱 [`linked_organization_spend_limit_reached`](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/errors#linked-organization-spend-limit-reached)。

### 哪些端點可以向客戶計費

| 端點 | 可以向客戶計費 |
| ----- | ----- |
| Messages API（`/v1/messages`） | 是，但使用[需計費的程式碼執行](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing#if-you-use-code-execution)時除外 |
| OpenAI SDK 相容性（`/v1/chat/completions`） | 是 |
| [Message Batches](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing#if-you-use-message-batches) | 否 |
| Claude Managed Agents | 否 |

若要申請其他端點，請聯絡 [Anthropic 支援](https://support.claude.com/en/articles/9015913-how-to-get-support)。

## 適用誰的條款與限制

<Warning>
  請勿向此用量需要 HIPAA、FERPA 或客戶管理加密金鑰保障的客戶提供 Linked billing。
</Warning>

您向客戶計費的請求仍在您的組織中執行：

| 設定 | 是否適用於這些請求 |
| ----- | ----- |
| 您的速率限制、使用層級、模型存取權，以及[服務層級](https://platform.claude.com/docs/zh-TW/api/service-tiers) | 是 |
| 您的使用層級的[每月支出上限](https://platform.claude.com/docs/zh-TW/api/rate-limits#spend-limits) | 是 |
| 您的資料保留與加密金鑰 | 是 |
| 客戶的[零資料保留（ZDR）](https://platform.claude.com/docs/zh-TW/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope)、商業夥伴協議（BAA）、客戶管理加密金鑰（CMEK）及 IP 允許清單 | 否 |
| 客戶為您的應用程式設定的支出上限，以及其組織的每月支出限制 | 是 |
| 您為組織及其工作區設定的支出限制 | 否 |

一旦您的組織達到您的使用層級的每月支出上限，Claude API 就會拒絕其所有請求，包括向客戶計費的請求：請參閱 [`enforced_spend_limit_reached`](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/errors#enforced-spend-limit-reached)。您向客戶計費的用量不會計入該上限。

## 您可以計費的項目

只能就客戶指示您產生的用量向其計費。也就是客戶及其使用者在您的產品中引起的 Claude 用量。請勿將您自己的用量計費給他們，例如測試、評估或為其他客戶進行的工作。Claude API 無法替您檢查這一點，因此這是您的責任。您在建立應用程式時即接受 [Linked Billing Beta Terms](https://www.anthropic.com/legal/linked-billing-terms)。

## 由誰支援客戶

您需就應用程式的一切事項支援您的客戶，包括您向他們計費的 Claude 用量。Anthropic 只在客戶的 Claude Console 中提供[核准頁面與 Linked platforms 頁面](https://platform.claude.com/docs/zh-TW/manage-claude/oauth-apps/linked-billing/what-your-customers-see)。關於您應用程式的所有其他問題都會由您處理，因此請告訴您的客戶如何聯絡您。

## 規則與特殊情況

部分功能無法向客戶計費，部分功能則以自己的方式處理 `billing_policy`。

### 如果您使用 Message Batches

請將 [message batch](https://platform.claude.com/docs/zh-TW/build-with-claude/batch-processing)（訊息批次）中的請求作為由您付費的請求傳送：將 `bill_to` 設為 `self`，或不包含 `billing_policy`。這些請求會照常向您計費。批次中標記為由客戶付費的請求會被拒絕。其結果為 `errored` 並帶有 `invalid_request_error`，且不會向任何人計費。批次中的其他請求會照常執行。

### 如果您使用程式碼執行

向客戶計費的請求不能使用[需計費的程式碼執行功能](https://platform.claude.com/docs/zh-TW/about-claude/pricing#code-execution-tool)：API 會以 400 拒絕該請求。請將此類請求作為由您付費的請求傳送。

### 如果您計算 token

當請求帶有 `user-profiles-billing-2026-10-01` beta 標頭時，token 計數端點（`/v1/messages/count_tokens`）會接受 `billing_policy` 欄位，並忽略該欄位。您在計算 token 之前不需要移除它。

## 可用性

Linked billing在所有模型上處於 Beta 階段。

### API 支援

#### [Messages API](https://platform.claude.com/docs/zh-TW/build-with-claude/working-with-messages)

* 可用性：可用

| 狀態 | 雲端平台 |
| ----- | ----- |
| Beta<sup>1</sup> | Claude API |

1. 只有傳送 `billing_policy` 的請求才需要 beta 標頭。

### 必要的 Beta 標頭

[Beta 標頭概覽](https://platform.claude.com/docs/zh-TW/api/beta-headers)

Beta 標頭可讓您在實驗性功能與新模型能力成為標準 API 的一部分之前搶先存取。

* `user-profiles-billing-2026-10-01`
