Skip to main content
At AWS re:Invent? We're in Las Vegas Nov 30 – Dec 2. Let's meet in person. Let's meet.Pick a time
Jiquan Ngiam

10 Best LLM Gateways for Cost Attribution and Budgets

Enterprise generative AI spending reached $37 billion in 2025, marking a 3.2x year-over-year increase, yet organizations still face challenges attributing AI costs across models, users, and agents. Without centralized cost tracking, finance teams cannot see which models, users, or agents drive spend. The result can include budget overruns and surprise invoices. Gartner predicts that more than 40% of agentic AI projects will be canceled by the end of 2027 due to escalating costs, unclear business value, or inadequate risk controls.

LLM gateways help solve this by sitting between your applications and model providers, tracking token usage, requests, and estimated spending for traffic routed through the gateway. Depending on the platform, gateways can enforce team budgets, restrict spending, and attribute costs across users, models, and workloads so finance and engineering teams share a centralized view of governed AI costs.

Key Takeaways​

  • LLM gateways provide centralized cost attribution by tracking tokens, requests, and spend across users, teams, agents, and models in real time
  • Budget enforcement capabilities vary significantly across gateways, from soft alerts to hard caps that block requests when limits are reached
  • Mintive (formerly MintMCP) combines LLM Gateway cost controls with Agent Monitor for visibility into token spend by user, session, model, and supported tool activity
  • Self-hosted open-source options offer infrastructure control while managed platforms provide faster deployment with pre-configured governance
  • Enterprise cost attribution can use API keys, request metadata, project identifiers, or identity provider integrations such as SCIM to associate spending with teams and organizational units
  • Multi-provider support allows organizations to route traffic across OpenAI, Anthropic, and other providers while maintaining unified cost visibility

1. Mintive (formerly MintMCP) LLM Gateway​

Mintive's LLM Gateway, currently in early access, routes configured AI model requests through centralized access controls with team-level policies, spending budgets, model restrictions, and cost tracking. The gateway supports provider connections to OpenAI, Anthropic, Fireworks, OpenRouter, and customer-hosted models through a single endpoint, helping teams switch supported providers while maintaining visibility into governed inference spending.

What Makes Mintive LLM Gateway Different​

Mintive's cost attribution extends beyond basic per-request tracking. The Agent Monitor component provides estimated token spend broken out by user, agent, session, and model, with supporting tool activity available for investigating expensive sessions. This two-layer visibility combines LLM Gateway inference records with supported local agent activity from coding assistants like Cursor and Claude Code, with off-gateway cost tracking dependent on available usage telemetry.

Core Capabilities​

  • Per-team budgets and model restrictions: Set allowed models and spending limits per team through SCIM-driven access policies
  • Cost tracking by multiple dimensions: Token usage and estimated costs broken out by user, agent, session, and model, with tool activity available for contextual analysis where supported
  • Model call logs with observability: Latency, tokens, and cost logged in the same audit trail as MCP tool calls
  • Shadow AI visibility: Agent Monitor hooks capture supported local activity, including off-gateway MCP calls, while enabled usage telemetry provides estimated token spending for monitored agents
  • SIEM export: Export cost data to Sentinel, Splunk, S3, or stream via OTLP to any collector for integration with existing FinOps tools

Enterprise Integrations​

  • SSO via Okta, Azure AD, Google Workspace with SCIM group sync for identity-driven cost allocation
  • Virtual MCP Bundles for grouping governed tools and connectors by team or use case, alongside separate LLM Gateway policies for model access and budgets
  • Agent Identities for distinct agent credentials, scoped permissions, and per-agent audit trails
  • Gateway Middleware templates for integrating external security controls, including AWS Bedrock Guardrails, Google Cloud Model Armor, and supported DLP services

Deployment​

Managed SaaS-first delivery in US and EU regions. VPC and self-hosted deployments available on request.

Compliance​

SOC 2 Type II audited with continuous Drata monitoring

Pricing​

Contact for enterprise demonstration and custom pricing based on team size and usage

Getting Started​

Visit mintive.com/llm-gateway for the deployment guide

2. LiteLLM​

LiteLLM provides an open-source AI gateway with per-key, per-user, per-team, and per-org budget tracking through virtual keys. The gateway supports 140+ providers and 1,892 models through an OpenAI-compatible API, with daily and monthly budget resets that stop requests when caps are reached.

Primary Focus​

Self-hosted infrastructure control with an MIT-licensed open-source core and flexibility to configure multiple providers. Model routing can reduce inference costs by directing suitable workloads to lower-cost models, although actual savings depend on the workload, provider, and model selection.

Cost Attribution Features​

  • Virtual keys with daily/monthly budget resets and hard caps that block requests
  • Per-key, per-user, per-team, and per-org budget tracking
  • Enterprise chargeback via Prometheus, Datadog, and CloudZero export
  • Vendor-reported 0.66ms p99 gateway overhead for the Rust AI Gateway under published benchmark conditions

Deployment​

Free MIT-licensed self-hosted gateway; Enterprise licensing available through custom quotes based on request capacity, deployment architecture, and support requirements

3. Prisma AIRS AI Gateway (Formerly Portkey)​

Prisma AIRS AI Gateway, built on Portkey's gateway technology, provides cost tracking across workspaces, teams, and individual users with configurable budget enforcement. Portkey's February 2026 figures reported support for more than 1,600 models across 60+ providers, alongside detailed request-level observability and OpenTelemetry integration.

Primary Focus​

Enterprise compliance and governance with SOC 2 Type II audited controls, ISO 27001 certification, and features supporting HIPAA and GDPR requirements. Enterprise arrangements can include BAA signing, private deployment options, and additional data protection controls.

Cost Attribution Features​

  • Cost tracking segmented by workspace, team, and individual user
  • Budget enforcement with spending controls
  • PII redaction and guardrails built into the gateway layer
  • VPC hosting and private cloud deployment options

Deployment​

Free tier (10K logs/month); Production from $49/month; Enterprise custom pricing

4. Bifrost (Maxim AI)​

Bifrost treats cost visibility as a first-class capability rather than a bolt-on feature. The gateway provides detailed attribution by key, user, or team with daily token usage summaries and configurable caps that enforce spending controls automatically.

Primary Focus​

Production deployments where gateway overhead matters. Bifrost publishes low-overhead gateway benchmarks, but actual latency and sustainable throughput depend on workload size, hardware, transport, and benchmark methodology.

Cost Attribution Features​

  • Per-key, per-user, and per-team attribution with daily summaries
  • Configurable spending caps with automatic enforcement
  • 20+ provider integrations
  • MCP gateway capabilities for agent tool traffic alongside LLM routing

Deployment​

Open source (Apache 2.0) for self-hosting; Enterprise options available

5. Braintrust Gateway​

Braintrust Gateway enables custom tag-based cost attribution by user, feature, project, model, or any arbitrary dimension. The platform provides nested span trees with per-span cost, latency, tokens, and errors for granular workflow analysis.

Primary Focus​

Evaluation-integrated cost tracking where routing, tracing, and evaluation run on the same platform. Production traces can become evaluation cases with one click, while Loop AI supports natural-language investigation of cost patterns. Teams can configure alerts and automations to detect spending anomalies.

Cost Attribution Features​

  • Custom tags for flexible attribution dimensions
  • Per-span cost tracking in nested workflow trees
  • GitHub Action integration for evaluation-based release gates, with configurable thresholds for quality degradation or cost regressions
  • 25+ built-in scorers for quality-cost tradeoff analysis

Deployment​

Hosted Gateway free during beta; Starter platform includes 1 GB of processed data and 10K evaluation scores monthly, with additional usage charges. Pro starts at $249/month; Enterprise pricing is custom

6. Kong AI Gateway​

Kong AI Gateway extends the Kong API management platform with token and cost limits per consumer group. The gateway provides L7 observability on AI traffic and showback/chargeback capabilities for LLM usage.

Primary Focus​

Consolidating AI spend tracking with existing API infrastructure governance. Organizations already running Kong can add AI controls without deploying separate infrastructure.

Cost Attribution Features​

  • Token and cost limits per consumer group
  • Advanced LLM and token quota management
  • L7 observability on AI traffic
  • SOC 2 Type II and ISO 27001 compliance

Deployment​

Plus tier from $25/month plus usage; Enterprise pricing available

7. Langfuse​

Langfuse combines trace-level token usage and estimated costs with a new AI Gateway in public beta. The gateway supports per-key, per-user, and organization-wide spending budgets that reject new requests when configured limits are reached. Custom model pricing is supported, while missing usage data may prevent accurate cost calculation.

Primary Focus​

Open-source observability with trace-level cost insights that associate spend with workflow spans. MIT licensed with self-hosting option for strict data policies.

Cost Attribution Features​

  • Per-trace token usage and estimated cost
  • Gateway budgets per API key, user, and organization, with daily, weekly, or monthly resets and enforcement when limits are reached
  • Custom pricing support for bespoke models
  • Trace-level workflow visibility

Deployment​

Free self-hosted (MIT); Cloud from $29/month

8. Vercel AI Gateway​

Vercel AI Gateway provides budgets per team, project, API key, and team member, with request blocking after limits are reached; caps may be exceeded by in-flight requests, and BYOK spending is excluded from accumulated budget totals. The gateway supports 400+ models from 70+ providers with zero token markup.

Primary Focus​

Platform-integrated cost management for the Vercel/Next.js ecosystem. Budget primitives are designed to be finance-shaped for direct integration with accounting systems.

Cost Attribution Features​

  • Budgets per team, project, API key, and team member
  • Spend-reporting API for FinOps integration
  • Zero token markup (only feature fees)
  • Per-request or team-wide zero-data-retention options

Deployment​

No token markup; $0.10 per 1K requests for team-wide zero-data-retention

9. LLM Gateway (llmgateway.io)​

LLM Gateway provides cost tracking by model, provider, API key, and by project on the Enterprise tier. The gateway supports 250+ models across 40+ providers with per-member spending budgets.

Primary Focus​

Self-hostable gateway with AGPLv3 open source license for the core code. Organizations seeking self-hosted LLM routing with an AGPLv3 open-source core and no hosted platform fees, while accounting for their own infrastructure costs and any separately licensed Enterprise features.

Cost Attribution Features​

  • Cost breakdown by model, provider, and API key
  • Per-member spending budgets with lifetime and rolling-period limits, plus Enterprise controls for project-scoped access and team administration
  • SOC 2 Type II compliant
  • 1T+ tokens routed, 80M+ requests processed

Deployment​

5% platform fee on hosted; free with BYOK; free to self-host (AGPLv3)

10. Cloudflare AI Gateway​

Cloudflare AI Gateway provides spend limits by model, provider, or custom metadata dimensions such as user, team, application, and agent ID. Edge caching helps reduce repeated inference costs. Core gateway features are free for teams already using the Cloudflare platform.

Primary Focus​

Edge deployment with zero infrastructure management and free core features. Analytics and logs available on all Cloudflare plans. Cloudflare provides gateway-level cost analytics and configurable spending limits using provider, model, and custom metadata dimensions.

Cost Attribution Features​

  • Spend limits by model, provider, or custom metadata dimensions such as user, team, application, and agent ID
  • Edge caching to reduce repeated inference costs
  • Analytics and logs on all plans
  • Cloudflare Workers AI integration

Deployment​

Core features free; 5% fee on unified billing credits

Why Enterprises Choose Mintive for LLM Cost Governance​

For organizations deploying AI agents at scale across Claude, Cursor, ChatGPT, Gemini, and Copilot, Mintive provides the governance layer that makes those agents deployable, governed, measurable, and swappable. The platform addresses the meta-problem facing enterprise AI: no telemetry on what agents are calling, scattered credentials across developer laptops, missing audit trails, and limited visibility into shadow AI adoption.

Mintive's unified governance approach includes:

  • LLM Gateway routes model requests through centralized access controls with per-team budgets and model restrictions
  • Agent Monitor extends visibility to estimated token spend by user, agent, session, and model, with SIEM export to Sentinel, Splunk, or any OpenTelemetry collector
  • Agent Bundles establish distinct agent identities and scoped access permissions, while Agent Monitor can attribute supported usage and estimated costs to individual agents when the required inference records or token telemetry are available

Coursera rolled out governed AI to approximately 2,000 employees using Mintive's Virtual MCP Bundles to simplify setup and centralize access controls. Modern Treasury reported agents saving Technical Account Managers 30 minutes to 4 hours per case through automated lookups, illustrating workflow efficiency rather than a quantified reduction in LLM spending.

Standard rollout takes 1 day to 3 weeks depending on policy complexity and approved tool count, with a 7-day free trial offering full feature access and no credit card required.

Frequently Asked Questions​

What is an LLM gateway and why is it crucial for cost attribution?​

An LLM gateway sits between your applications and model providers, routing AI requests through a single control plane. For cost attribution, this architecture captures tokens, requests, and spending in one place. The gateway logs model, tokens, requester, and cost for each request, enabling finance teams to track spend by team, user, project, or any dimension they need.

How does an LLM gateway help in setting and enforcing budgets for AI usage?​

LLM gateways provide budget controls at multiple levels: per-key, per-user, per-team, and per-organization. Enforcement can be soft alerts when approaching limits or hard caps that block requests when reached. Daily and monthly reset options allow rolling budgets that align with accounting periods. Some gateways integrate with identity providers through SCIM for directory-based budget allocation.

Can an LLM gateway track costs for different users, agents, and models?​

Yes. Enterprise gateways attribute costs across multiple dimensions simultaneously. User-level tracking shows individual consumption, agent-level tracking separates autonomous AI workloads, and model-level tracking reveals cost differences between GPT-4, Claude 3.5 Sonnet, and other options. Solutions like Mintive's Agent Monitor connect supported tool activity and session context with estimated token costs.

What deployment options are available for LLM gateways and how do they impact cost management?​

Deployment options include managed SaaS, self-hosted open source, and hybrid models. Managed SaaS provides faster deployment and pre-configured cost controls but includes platform fees. Self-hosted options offer infrastructure control and eliminate platform fees but require DevOps resources. Cost management capabilities can differ across deployment models, so teams should verify budget enforcement, identity-based attribution, usage exports, and licensing requirements.

How does shadow AI visibility affect cost control?​

Shadow AI occurs when teams use AI tools outside governed infrastructure, creating hidden costs. Platforms with agent monitoring capabilities, like Mintive's Agent Monitor hooks for Cursor and Claude Code, can capture supported off-gateway activity and report it into centralized activity records. When usage telemetry is enabled, teams can estimate token spending for supported agents, improving budget planning and reducing visibility gaps.