AI 热点

Anthropic 推出 Claude API 应用关联计费 Beta

Unite.AI更新于 11月18日 02:38

Anthropic Launches Linked Billing Beta for Claude API Apps

AI 导读

Anthropic 于 2026 年 11 月 17 日上线 Linked billing Beta,允许开发者把 Claude API 用量计费到客户自己的 Claude 组织,并可在每次请求中选择由客户还是开发者付费。请求仍在开发者组织内执行,因此开发者的速率限制、模型访问和服务层级照常适用;若无法向客户计费,API 会拒绝该请求而非静默转由开发者承担。该功能仅支持直接通过预付额度或账单付款的 Claude Platform 组织,Message Batches 和可计费代码执行功能不支持客户计费。

正文

Anthropic launched Linked billing in beta on November 17, 2026, allowing developers to bill Claude API usage in their applications to a customer’s own Claude organization. Once a customer has linked its organization, the developer can choose on each request whether the customer or the developer pays.

Anthropic’s user-profile documentation distinguishes identification from payment. A profile tells Anthropic which end customer a request serves, so a safety restriction or ban can be limited to that customer rather than the developer’s entire organization. Profiles alone do not alter billing or pricing; Linked billing adds payer selection to that attribution system.

Per-Request Billing

In the default integration, the app sends the customer’s profile ID in the anthropic-user-profile-id header. On /v1/messages and /v1/chat/completions, setting billing_policy with bill_to: "user_profile" designates the linked customer as the payer. Setting bill_to: "self" or omitting the policy leaves the developer responsible. Calls that include billing_policy must also carry the user-profiles-billing-2026-10-01 beta header.

The payer selection does not move execution into the customer’s account. Requests still run in the developer’s organization, so the developer’s rate limits, model access, and service tier apply. If Anthropic cannot bill the customer for a request marked user_profile, the API refuses it instead of silently charging the developer. The developer can still serve that customer at its own cost by resending with bill_to: "self".

Coverage has technical exclusions. Message Batches does not support customer billing, and a customer-billed Messages request cannot use billable code-execution features. The token-counting endpoint accepts billing_policy but ignores it, so developers can count tokens on the same request body they intend to send.

Customer Authorization and Controls

An app adds a Link your Claude organization button to start the connection. The user signs in to Claude, selects an organization when offered a choice, reviews the billing explanation, and can set a monthly spend limit for a live app before giving final authorization. The approver needs the Admin or Billing role in the customer organization. Developers must also register an OAuth app, configure client authentication through an identity provider rather than a client secret, and designate an operator service account.

Connections are one-to-one within an app: a customer organization can link to only one user profile, and a profile can link to only one Claude organization. The operator service account can bill any linked customer by default. For single-tenant deployments or customer-controlled sandboxes, optional connection-bound OAuth access tokens can bill only their associated customer and expire within one hour.

Customers manage their connections on the Claude Console’s Linked platforms page. An app-specific monthly cap is separate from the organization’s overall monthly spend limit, and reaching either one causes customer-billed requests to be refused. The cap counts token costs and web search fees at list prices before any negotiated discount, so the counted amount can differ from the customer’s bill. Customers can also unlink an app at any time. Subsequent customer-billed requests are refused, and Anthropic sends the developer no notification when a customer unlinks.

Eligibility and Data Limits

Only Claude Platform organizations that pay Anthropic directly through prepaid credits or invoiced billing are eligible. Organizations billed through AWS, Google Cloud, or Azure marketplaces cannot be billed through the integration, and neither can organizations with only a Claude subscription plan. Monthly API credits included with Claude Max, Ultra, and Team plans cannot pay for these requests, nor can credits from Anthropic’s partner, venture capital, and startup programs. A completed connection therefore does not guarantee that Anthropic can bill the customer.

Data handling remains under the developer’s arrangements as well. The customer’s zero-data-retention setting, business associate agreement, and customer-managed encryption keys do not apply to these requests. Anthropic instructs developers not to link customers whose usage requires HIPAA or FERPA privacy coverage or those encryption controls.

Linked billing consequently changes who pays without changing where the request runs. It gives Claude-based applications a built-in customer-payment option, while customer eligibility, endpoint support, and the developer’s own retention and compliance terms determine where that option can be used.

来源

Unite.AI