Cost management for Cortex AI Gateway

The gateway is a natural unit for cost reporting: inference requests from external agents and AI clients land in a unified, governed source of truth, with attribution to the Snowflake user who made each request. This topic covers how to see what the gateway is spending and how to limit it.

Monitor gateway usage

Query AI_GATEWAY_USAGE_HISTORY view for per-request detail, including the gateway, user, model, and token counts. This is the view to use for showback, adoption reporting, and identifying which applications drive spend.

Choose a spending control

Snowflake offers two controls for gateway spend. They differ in what they scope and what actions can be performed once a threshold is reached.

ControlScopeEnforcementUse it when
Shared resource budgetA group of users identified by a tag, pooledNotification, plus stored procedures you writeSeveral teams share the gateway and each needs its own limit.
Per-user quotaEach user individually. Limits are never pooled.Built-in blocking, applied within minutesYou need usage to actually stop, not just alert.

Budget evaluation is periodic, so spend can pass a threshold before an action runs: up to 6.5 hours, or one hour with the low-latency option. Quota blocks apply within minutes.

Set up a control

For how gateway cost management fits alongside other Cortex AI features, see AI cost management and governance.