settings.json

modelPricing

object記述場所管理者設定のみ

組織が支払うレート(契約レート)で使用量を報告します。リスト価格ではなく、請求額に近い金額を表示します。

既定値: unset, so Claude Code reports list price unless a host application supplies a table

記述例

{
  "modelPricing": {
    "multiplier": 0.85,
    "overrides": {
      "claude-sonnet-4-6": {
        "input": 2.4,
        "output": 12,
        "cacheRead": 0.24,
        "cacheWrite": 3
      }
    }
  }
}

使い方・用途

  • デフォルト値は未設定(リスト価格が表示されます)
  • v2.1.242 以降で利用可能
  • multiplier で一律の割引率を設定し、overrides で各モデルのレートを指定できます
  • /usage、ステータスライン、Agent SDK、--max-budget-usd、OpenTelemetry に適用されます
  • 管理設定で優先されます
英語原文(公式ドキュメントより)

Report spend at the rates your organization pays instead of list price. Set it when your organization has contracted rates, so the dollar figures developers see match your bill. Claude Code applies the rates in /usage, the [status line](/docs/en/statusline), the Agent SDK's total_cost_usd, the [--max-budget-usd](/docs/en/cli-reference) limit, and the [OpenTelemetry](/docs/en/monitoring-usage) cost metric and events. You supply the rates: Claude Code doesn't read them from your contract or the Claude Console. Requires Claude Code v2.1.242 or later.

関連する変更履歴

v2.1.271(1件)

Added
`modelPricing マネージド設定および Claude apps gateway の pricing ブロックにおいて、内部チャージバック用の割増レートを表現するため、1 を超え最大 10 までの multiplier` の指定に対応した。
英語原文を表示
Added support for a multiplier above 1, up to 10, in the modelPricing managed setting and the Claude apps gateway pricing block, for marked-up internal chargeback rates

変更前

`modelPricing マネージド設定と Claude apps gateway の pricing ブロックでは、割増(マークアップ)レートを表す multiplier` を指定できず、USD 定価に基づくレートでのみコストを計上していた。そのため、内部チャージバックで割増料金を課している組織は、表示されるコスト額と実際の請求額の間に差が生じていた。

変更後

`modelPricing マネージド設定と Claude apps gateway の pricing ブロックで、1 を超え最大 10 までの multiplier` を指定できるようになった。これにより、内部チャージバック用の割増レートを表現できる。これまでは倍率を設定できず、組織が支払う実際の契約レート(割増料金)をコスト表示に反映できなかった。

ユーザーへの恩恵

ユーザーは内部チャージバック用の割増レート(最大 10 倍まで)を `modelPricingpricing ブロックに設定でき、/usage`、ステータスライン、OpenTelemetry に表示されるコストが実際の請求額に沿うようになる。

v2.1.243(1件)

Added
modelPricing 管理設定を追加しました。これにより、組織の契約済みモデルごとのレートと割引乗数が /cost、ステータスライン、およびテレメトリのコスト数値に使用されるようになり、リスト価格の代わりに適用されます
英語原文を表示
Added modelPricing managed setting so an organization's contracted per-model rates and discount multiplier are used for /cost, the status line, and telemetry cost figures instead of list price

変更前

以前は /cost やステータスラインで表示されるコスト数値が常にリスト価格を使用していました

変更後

現在は modelPricing 管理設定を使用して、組織の契約レートと割引が適用されたコスト数値を表示できます

ユーザーへの恩恵

開発者は実際の請求額に近いコスト数値を確認できるようになり、予算管理が容易になります