AIチャージバック/ショーバック — 部門・ワークフロー・エージェント単位の費用可視化・配賦

用語・参照用語・参照実挙動未確認実挙動未観測鮮度未確認鮮度を確定できない
記事ID
EA-095

要点

AI 費用の showback/chargeback は、トークン数だけでなく、プロバイダー請求データとワークフロー実行テレメトリを突合し、直接コスト・共有/アイドルコスト・未配分コストを分離して設計する。FOCUS や OpenCost は正規化・配賦の有力な基盤だが、エージェント/ワークフロー単位の会計帰属は組織固有のアイデンティティマッピングとバージョン管理された配賦ポリシーを別途必要とする。

現在の判断

Showback(可視化)とChargeback(会計上の配賦・請求)は分離する。観測値が取れることは、配賦規則が会計・組織的に承認済みであることを意味しない。

どこまで当てはまるか

FOCUS 1.4自体は公開仕様。各providerのFOCUS export対応version、billing export freshness、tag/principal allocation対応service、OpenCost導入可否、OTel GenAI instrumentation coverageは環境依存。AWSのtag activation権限はmanagement account等に制約がある。tenant実挙動は未検証。

詳しく理解する

対象範囲と前提

Enterprise AI Core / FinOps、組織オーバーレイ、相互運用性、オブザーバビリティ、実装、ガバナンス

検討ポイント

AIのshowback/chargebackは、provider billing dataだけ、またはtoken countだけで正確に成立するか。workflow/Agent単位まで追跡するために必要な最小provenance、allocation rule、reconciliation、failure boundaryは何か。

根拠資料

  • source_class=公式仕様書; title=FOCUS仕様書 1.4 / FOCUSとは何か?; author_org=FinOps Open Cost & Usage Specification / FinOps Foundation; canonical_url=https://focus.finops.org/docs/specification/v1-4/ ; publication=2026-06-04 批准; access=2026-09-16; version=FOCUS 1.4; locator=リリース説明 + データ粒度機能; label=仕様確認済み; relation=サポート/コンテキスト。FOCUS 1.4は、AI/クラウド/SaaS/データセンター等を含むテクノロジー請求データの正規化を対象とし、リソース/アカウント/サービス等の複数の粒度を扱う。
  • source_class=official specification / CNCF OSS; title=OpenCost Specification; author_org=OpenCost/CNCF; canonical_url=https://opencost.io/docs/specification/ ; access=2026-09-16; version=current docs, implementation release NOT PINNED; locator=Workload Costs / Asset Idle Cost / Appendix A; label=仕様確認済み+OSS_PRACTICE; relation=support/limit. Kubernetes workload costをcontainer levelから集計でき、CPU/memory/GPU等はallocationとusage、idle costを区別する。
  • source_class=official implementation docs; title=OpenCost API; author_org=OpenCost/CNCF; canonical_url=https://opencost.io/docs/integrations/api/ ; access=2026-09-16; locator=Allocation API; label=OSS_PRACTICE; relation=support. window/aggregate/includeIdle/shareIdle等を持ち、shared/idle costの配賦方式が結果を変えることを実装上確認できる。
  • 出典区分=公式プロバイダー文書; タイトル=ユーザー定義のコスト配分タグの使用 / 月次コスト配分レポート; 作成組織=Amazon Web Services; 正式なURL=https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/custom-tags.html ; アクセス日=2026-09-16; 参照箇所=有効化要件 + 未割り当てのリソース; ラベル=検証済み仕様+製品変動あり; 関係性=サポート/制限事項。コスト配分タグは作成するだけでなく、Billing側での有効化が必要。タグ未設定、非対応サービス、サブスクリプション/一時料金などは、未割り当てとなる可能性がある。
  • source_class=official provider docs; title=Using IAM principal for cost allocation; author_org=Amazon Web Services; canonical_url=https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/iam-principal-cost-allocation.html ; access=2026-09-16; locator=Amazon Bedrock IAM principal tags; label=仕様確認済み+製品情報は要再確認; relation=support/context. BedrockではIAM principal tagをdepartment/cost-center/team/project等のallocation軸へ利用できるが、API call後にactivation対象へ現れる等のgateがある。
  • source_class=公式のテレメトリ仕様/ドキュメント; title=Gen AI semantic conventions; author_org=OpenTelemetry; canonical_url=https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/ ; access=2026-09-16; locator=gen_ai.usage.input_tokens / output_tokens / cache_read.input_tokens / workflow.name; label=検証済み仕様+製品の流動性あり; relation=サポート/制限。GenAI操作におけるモデル、一連の処理、トークン使用量などを観測可能。ただし、当該レジストリの一部属性は新しいGenAI semantic-conventionsリポジトリへ移動、または非推奨表示があるため、スキーマバージョンの固定(pin)が必要。
  • source_class=official engineering article; title=Inside the LLM Call: GenAI Observability with OpenTelemetry; author=James Newton-King / OpenTelemetry; canonical_url=https://opentelemetry.io/blog/2026/genai-observability/ ; publication=2026-05-14; access=2026-09-16; label=SOURCE_REPORT; relation=context/limit. model call、tool invocation、token usageをtraceでき、per-request cost estimationへ利用可能。一方content captureは機密情報を含み得る。

コストと運用負荷

コストの可視化自体のテレメトリ/ストレージ/クエリ費用も管理対象とする。高カーディナリティなラベルの無制限な保存は避ける。

OPERABILITY

daily showbackとmonth-end chargebackを同一freshness要求にしない。late billing/correctionを再計算できるledger方式が望ましい。

確認できていること

  • provider billing/invoiceをfinancial source of truth、runtime telemetryをcausal attribution sourceとして分離し、両者をreconcileする。token×公開単価だけでinvoiceを再構成しない。

  • workflow/Agent単位のdirect model costには trace/workflow ID、provider/model、input/output/cache/reasoning等のmetered usage、billing account/project、timestampが必要。tool/retrieval/compute/network等はchild spans/resource IDsへ接続する。

  • shared/idle costはallocation policyそのものをversion管理する。equal split、usage proportional、reserved capacity proportional、direct-only等は同じ実績から異なるchargebackを生成するため、暗黙にしない。

  • FOCUSはcross-vendor billing normalizationに有用だが、application-level Agent/workflow attributionを自動で与える規格ではない。FOCUS行と内部execution ledgerをjoinする追加設計が必要。

  • OpenCostはKubernetes shared infrastructureのallocationに有用だが、managed model APIやSaaS seat、非Kubernetes tool費用を単独で完全に覆わない。

よくある失敗・反証

  • tags欠落・activation遅延・service非対応・one-time/subscription feeによりunallocated costが残る。100% allocationを前提にしない。

  • retry、fallback、multi-agent fan-out、cache hit、batch、async jobでは「user request 1件=provider request 1件」が崩れる。business transaction IDとtrace lineageが必要。

  • list price、estimated token cost、amortized/effective invoice costは非同値。discount/commitment/credit/tax/marketplace/support等を混ぜない。

  • shared GPU/Kubernetes idle costの配賦は技術的真値ではなくpolicy choiceを含む。

  • telemetry contentをcost attribution目的で丸ごと保存するとPII/secret leakageを増やす。cost用途はmetadata-firstとし、prompt/response本文は原則不要。

  • OTel GenAI conventionsはactive development/migration中。attribute名を永続schemaとみなさず、collector/exporter versionとsemantic-convention versionをpinする。

実務での使い方

  • Core候補: 運用条件 最小フィールド: business_transaction_id, trace_id, workflow_id/version, agent_id/version, org_unit/cost_center/project, provider, account/project/subscription, service/model, region, operation, usage_quantity/unit, token subtypes where available, provider_request/job_id, resource_id, direct_cost, allocated_shared_cost, allocation_policy_id/version, currency, pricing/billing period, invoice/billing-row reference, source_origin, estimation_status, reconciliation_status, timestamp, correction_lineage. 推奨される一連の処理: 実行時のメーター/トレース -> 不変の実行台帳 -> プロバイダーの請求/FOCUS標準化 -> リソース/タグ/プリンシパルのマッピング -> 共通コスト配分ポリシー -> 照合 -> 部門別費用の可視化 -> 承認済み部門別費用の請求エクスポート。

  • 公開ベンチマークではchargeback(部門別費用の請求)の精度を保証しない。後続のTEST_PROFILEでは、(a) 単一モデル呼び出し、(b) リトライ、(c) フォールバックプロバイダー、(d) マルチエージェントのファンアウト、(e) RAG+ベクトルデータベース、(f) ツール/API料金、(g) 共有GPU/K8sのアイドル状態、(h) バッチ/キャッシュ、(i) タグなしリソース、(j) 割引/クレジット/修正を含む人工的に作った文書群(synthetic ledger)を作成し、請求合計の照合エラー、未割り当て率、誤帰属率、重複請求率、遅延到着の修正の収束性、割り当ての再現性を測定する。

  • cost-center等のtagに秘密情報を入れない。OTel prompt/tool contentはcost計測の必須条件にしない。 監査: 配分ポリシー、価格ソース、請求エクスポートのスナップショット、修正、手動オーバーライドを、バージョン管理された履歴(lineage)として保存する。

まだ確認できていないこと

  • / 再確認条件

  • FOCUS 1.4のAI固有usage taxonomyが主要LLM providerの請求粒度をどこまでlosslessに表現できるか。主要providerのrequest-level billing IDとOTel trace/request IDのjoinability。discount/commitment/creditをworkflow単位へ配賦する最適policy。cross-provider currency/tax handling。OTel GenAI新repositoryのexact release/tag。

  • 外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。

根拠資料

この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。

このページから探す

種類

主題

やりたいこと

読み終えたら、次の判断へ

この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。

最初の知見から実務判断まで、3つの読み方を見る