← 一覧へ

AI Gatewayポリシーで支出とモデル利用を制御可能に

原題: Control spend and model access with AI Gateway policies

changelog / AI / AI Gateway / 2026/12/04 09:00 JST

controlmodelaccessgateway

要約

CloudflareのAI Gatewayで、誰がどのモデルやプロバイダを使えるか、いくら使えるかをポリシーで制御できるようになった。Cloudflare Accessで検証された呼び出し元のID(メールアドレスやIdPグループ、カスタムメタデータ)をもとに、チーム単位の月額予算、個人単位の支出上限、特定グループの高額モデルへのアクセス禁止・許可などを設定できる。支出上限は時間・日・週・月単位でリセットされる。ダッシュボードのテスト機能やAPIのシミュレーションで事前検証も可能。AI利用が組織に広がる中で、コストの暴走を防ぎつつモデル選択を統制できる実用的な機能だ。

AI GatewayAI 出典サイトのOGP画像 出典サイトで原文を開く →

出典サイトの説明: Set budgets and block or allow models on AI Gateway based on the verified identity of the caller, including IdP groups, email domains, and custom metadata.

You can now control who can use which models and providers on your gateway, and how much each user or team can spend, with AI Gateway policies . Policies use the verified identity of the caller from Cloudflare Access , such as the user’s email or identity provider (IdP) groups, or values you pass in custom metadata . With policies, you can: Give a team or an email domain a shared monthly budget. Cap spend for each individual user, including inside a shared team budget. Block an IdP group from expensive models, or allow it to use only specific models. Each policy targets an identity and a set of models or providers, then allows, blocks, or caps matching requests. Spend caps reset hourly, daily, weekly, or monthly on UTC boundaries. Use Test policies in the dashboard, or the simulate endpoint in the API, to check how your policies handle a request before it reaches real traffic. The following policy blocks members of the contractors IdP group from all Claude Opus models: { “name” : “Block contractors from Claude Opus” , “actor” : “company:all” , “resource” : { “model” : “anthropic/claude-opus-*” }, “condition” : ” ” contractors ” in cf.user.groups” , “action” : { “type” : “block” }

出典: 公式ページ

この記事をシェア