Amazon Bedrock Gateway vs LiteLLM vs Portkey: AI Gateway Budgets, Identity and Routing

Amazon Bedrock Gateway vs LiteLLM vs Portkey: AI Gateway Budgets, Identity and Routing

Amazon Bedrock Gateway vs LiteLLM vs Portkey: AI Gateway Budgets, Identity and Routing

For three years, putting a dollar cap on one engineer’s model usage meant running somebody else’s proxy. That changed on December 1, 2026, when AWS announced Amazon Bedrock Gateway at re:Invent, a managed control point inside Bedrock that ties model access and dollar budgets to IAM, Okta or Microsoft Entra ID identities. AWS paired it with smart routing, which picks a cheaper or stronger model per request inside one model family.

Both are in gated preview, with no published price or region list yet. The timing matters because AWS says Bedrock customer spend has grown more than tenfold since the start of 2026, and agentic workloads burn tokens in ways that monthly invoices surface far too late. This comparison sets the new managed gateway against the two self-hostable incumbents, LiteLLM and Portkey, on the three axes that decide real deployments.

What this covers: a verified feature comparison, how budget enforcement and cost attribution actually work in each, an illustrative cost model for routing savings, a shadow-mode rollout plan, the failure modes nobody puts in the launch post, and a decision path for platform teams.

The Short Answer: Comparison at a Glance

The table summarises what is documented today. “Not published” means the vendor has not stated it, not that the feature is absent.

Dimension Amazon Bedrock Gateway LiteLLM Proxy Portkey Gateway
Status (Dec 2, 2026) Gated preview, announced Dec 1, 2026 Open source, enterprise licence available Open source gateway; company acquired by Palo Alto Networks (closed May 29, 2026)
Hosting AWS-managed inside Bedrock Self-hosted (your VPC, Kubernetes, VMs) Self-hosted OSS, or Prisma AIRS AI Gateway
Identity AWS IAM, Okta, Microsoft Entra ID Virtual keys; Admin UI SSO free up to 5 users, Enterprise beyond API keys; OIDC and SAML SSO for enterprise customers
Budget unit Dollars per user, group or IAM role Dollars per key, user, team, team member, customer; tokens and rate limits too USD (minimum $1) or tokens (minimum 100) per provider or key
Budget reset Not published Any budget_duration such as 1d, 7d, 1mo None, weekly or monthly (UTC)
Routing Smart routing within one model family; Anthropic and OpenAI in preview Shuffle, latency, usage, cost strategies; fallbacks; Auto Router add-on Conditional rules on metadata and params; load balance; fallback
Pre-rollout testing Shadow mode on production traffic Auto Router has a Test Routing view; mirroring is DIY Build your own mirroring and evals
Cost of record AWS billing plus gateway spend view Own Postgres ledger from a price map Own ledger for models with pricing support
Pricing Not published OSS free; Enterprise quoted by deployment size Redirects to Palo Alto Networks; not listed

The rest of this post explains why those rows matter and where each one breaks.

Context and Background

An AI gateway is a reverse proxy that sits between callers and model APIs. It terminates the caller’s credential, decides which model the request may reach, applies limits, forwards the call, and records tokens and cost. The pattern became standard once enterprises discovered that handing raw provider API keys to every team made spend and data flows impossible to audit. Our earlier LLM gateway comparison of LiteLLM, Portkey, Kong AI Gateway and Cloudflare AI Gateway covers the broader vendor field and routing basics; this post does not repeat it.

Until now, AWS shops assembled the gateway layer themselves. AWS published reference architectures for building a self-service LLM gateway with Bedrock and LiteLLM, and for an AI gateway on Amazon API Gateway. In August 2026 it also documented a self-hosted Claude Apps Gateway reference deployment that enforces per-user, per-group and organisation spend caps for Claude Code and Claude Desktop, returning HTTP 429 at the cap.

AWS also added attribution pieces one by one. Application inference profiles with cost allocation tags arrived in November 2024. Bedrock projects, a per-workload boundary for the OpenAI-compatible APIs, landed in April 2026. The same month, AWS began attributing Bedrock inference cost to the calling IAM principal in CUR 2.0, including federated Okta and Entra identities.

Those were attribution tools, not enforcement tools. They told you after the fact who spent the money. The Amazon Bedrock Gateway preview is the first AWS-native component that refuses a request before it reaches a model because a person or group is out of budget.

Meanwhile, the incumbents changed shape. Portkey open-sourced its full gateway in March 2026 and was then acquired by Palo Alto Networks, which now sells the gateway as Prisma AIRS AI Gateway. LiteLLM grew into the default self-hosted proxy but suffered two PyPI supply-chain compromises in 2026. The market a platform team evaluates in December 2026 looks quite different from the one it saw in January.

How Amazon Bedrock Gateway Changes the AI Gateway Comparison

Amazon Bedrock Gateway is a managed AI gateway built into Amazon Bedrock, in gated preview since December 1, 2026. It connects AWS IAM, Okta or Microsoft Entra ID, lets admins choose which users and groups may call which models, and enforces dollar budgets per user, group or IAM role before a request reaches any model.

Amazon Bedrock Gateway compared with LiteLLM and Portkey as the control point between callers and model providers

Figure 1: Where each gateway sits. Bedrock Gateway is a managed control point that writes into AWS billing and CloudTrail; LiteLLM and Portkey run in your environment and keep their own spend ledgers.

The diagram shows the structural difference that drives most trade-offs. All three can front both Bedrock models and external providers. However, the system of record for Amazon Bedrock Gateway is AWS itself, while the self-hosted proxies maintain a parallel ledger that you must reconcile against the invoice. Identity also enters at different layers: through the IdP for Amazon Bedrock Gateway, and mostly through gateway-issued keys for the proxies.

Identity moves from keys to people

The verified behaviour of Amazon Bedrock Gateway, per the AWS product page, starts with identity. It connects to IAM, Okta or Microsoft Entra ID, and it identifies the application that sent each request. If the application forwards the user’s sign-in, the gateway also identifies the person. Policies can match any of a user’s groups, and callers see only the models they are allowed to use.

This matters because the dominant pattern in self-hosted gateways is the virtual key. LiteLLM issues keys through /key/generate and attaches budgets to keys, users and teams. Portkey attaches budgets to provider integrations and Portkey API keys.

Keys work, but they are bearer secrets that get copied into CI variables, notebooks and agent configs. Once that happens, “per-user” spend is really “per-whoever-holds-this-key” spend.

Tying the budget to an IdP group changes the lifecycle. When someone leaves and is deprovisioned in Entra ID, their gateway access goes with them, with no key revocation step. That only works, however, if the calling tool forwards the user’s identity.

A shared agent service account that calls the gateway on behalf of fifty users still shows up as one application. The AWS cost-attribution post makes the same point about gateways that use one shared role: per-user attribution requires per-user session management.

LiteLLM can integrate with an IdP too, but with licensing limits. Its docs state that, from v1.76.0, SSO for the Admin UI is free for up to five users, and an Enterprise licence is required beyond that. JWT authentication is also listed among Enterprise features. Portkey documents OIDC and SAML 2.0 SSO for its control plane, with step-by-step guides for Okta and Azure AD, framed as an enterprise-customer feature.

Budgets enforced before the call, in dollars

Amazon Bedrock Gateway enforces dollar limits per user, group or IAM role. AWS says requests stop before they reach a model once a limit is hit, retries stay within budget, each response reports the remaining budget, and every limit change is logged in AWS CloudTrail. The Amazon announcement adds that Bedrock can alert the administrator or stop all Bedrock spend in the associated account.

What is not published matters as much. AWS has not stated the budget reset cadence, whether token or request budgets exist, whether budgets can be scoped per model, or how cost is estimated before the bill is final. Those gaps are normal for a gated preview, but they decide whether the feature can replace an existing proxy.

LiteLLM is the most granular of the three. It supports budgets at the global proxy, team, team member, internal user, virtual key, customer and agent levels. budget_duration accepts values like 30s, 1d, 7d and 1mo, and a key can carry multiple windows through budget_limits.

Per-model budgets on keys and users (model_max_budget) are Enterprise features. Budgets need a database; without one, key, team and user budgets do not apply.

Portkey budget limits accept either USD (minimum $1) or tokens (minimum 100), with no reset, weekly reset (Sunday 00:00 UTC) or monthly reset (the 1st, 00:00 UTC). Its budget limits documentation says the feature is available on the Enterprise plan and to select Pro customers. Two details stand out.

Limits cannot be edited once set, so changing one means duplicating the provider. Costs are tracked only for models with Portkey pricing support, and zero-cent requests do not count toward the limit.

Routing inside a family versus routing across providers

Bedrock smart routing chooses a model per request based on complexity, model strengths and the customer’s cost and quality goals. AWS states it routes only within a model family, and in the gated preview it works with Anthropic and OpenAI models. Adoption means replacing a model ID with a router ID. AWS claims “comparable quality at 40% to 50% lower inference costs” than always using the most capable model in the family, calling these early results.

The predecessor feature, Bedrock Intelligent Prompt Routing, previewed in December 2024 and went GA in April 2025. Its documentation describes a router that predicts each model’s response quality and moves away from a fallback model only when the predicted quality gap exceeds a responseQualityDifference threshold. That doc notes the router is optimised for English prompts and cannot adapt to application-specific performance data. AWS has not published whether smart routing shares that mechanism, so treat the lineage as context, not a specification.

The self-hosted gateways approach routing differently. LiteLLM’s core router balances across deployments of the same model group with strategies such as simple-shuffle, latency-based-routing, usage-based-routing-v2 and cost-based-routing, with fallbacks and cooldowns. A separate Auto Router add-on handles complexity and semantic routing across tiers you define.

Portkey’s conditional routing, available on all plans, matches rules on request metadata or parameters, such as sending metadata.user_tier = premium to a stronger model. Those are rules you write, not a learned quality predictor.

The distinction is important. Bedrock smart routing is a cost optimiser inside one vendor’s family. LiteLLM and Portkey are traffic managers that can cross vendors. For a deeper treatment of the routing patterns behind both, see our LLM model routing architecture guide.

Deeper Analysis: Enforcement Paths, Attribution and Routing Economics

The feature table hides the real question: what happens on the request path, and whose numbers do you trust when finance asks for a chargeback report. This section walks through a budget-enforced request, the attribution model of each option, and the economics of routing.

Sequence of an Amazon Bedrock Gateway request with SSO identity, model access check, budget debit and remaining budget returned

Figure 2: A budget-enforced request as AWS describes it. The policy check happens before the model call; the debit happens after token usage is known.

The sequence shows a subtle property of any pre-call budget. The gateway cannot know the cost of a request until the model returns token counts, so it admits the call based on remaining budget and debits afterward. A single long agent turn can therefore overshoot a cap.

AWS says retries stay within budget, but it has not published how much a single in-flight request may overshoot. LiteLLM exposes the same tension explicitly with fail_closed_budget_enforcement, which returns 503 when spend cannot be verified.

Decision matrix for common platform scenarios

The matrix scores fit for four typical situations. “Strong”, “Partial” and “Weak” are editorial judgements based on the documented features above, not benchmarks.

Scenario Amazon Bedrock Gateway LiteLLM Portkey
AWS-centric org, Claude and OpenAI models on Bedrock, Entra ID or Okta Strong, once out of preview Partial: works, but needs per-user session tags for CUR attribution Partial
Multi-cloud, many providers including Azure OpenAI and Vertex AI Partial: fronts external providers, but routing stays within family Strong Strong
Regulated, air-gapped or data-residency-strict Weak for non-Bedrock models, prompts leave AWS Strong if you can operate and patch it Partial, depends on Prisma AIRS deployment terms
Small team, under 10 developers, minimal ops Strong if preview access granted Partial: free SSO caps at five users Partial: budgets need Enterprise or select Pro
Need GA status and a contract today Weak: gated preview, no pricing Strong with Enterprise licence Strong via Palo Alto Networks

The pattern is clear. Amazon Bedrock Gateway wins where traffic is mostly on Bedrock and identity already lives in an IdP that AWS federates. The self-hosted options win on provider breadth and on availability today. For teams that also need to audit providers for data retention, our guide on vetting LLM API providers and gateway policy covers the checks.

Bedrock cost attribution: who owns the ledger

Bedrock cost attribution now has four layers, and the gateway sits on top of them. CUR 2.0 can carry line_item_iam_principal, so each Bedrock line item maps to the IAM user, role or federated identity that made the call. Principal and session tags, once activated as cost allocation tags, appear with an iamPrincipal/ prefix within 24 to 48 hours.

Bedrock projects add per-workload tags for the OpenAI-compatible APIs, capped at 1,000 projects per account. The gateway then adds a live view of spend by model, provider, token type and identity.

The advantage is that the bill and the attribution share one source. Discounts, cache-read pricing and committed-use pricing land in CUR, so the chargeback report reconciles to the invoice by construction. If your FinOps team already normalises billing data, the FOCUS specification pipeline slots in directly.

A self-hosted proxy creates a second ledger. LiteLLM writes spend to Postgres using its model price map, and Portkey tracks costs for models it has pricing for. Both are estimates.

They drift from the invoice when you have private pricing, batch discounts, prompt-cache pricing the map does not model, or a new model the map does not know. The Claude Apps Gateway reference post states the point plainly: its spend is estimated from list-price token counts and acts as a real-time circuit breaker, not a billing record.

There is also an attribution trap when the two worlds mix. If LiteLLM calls Bedrock with one shared IAM role, CUR attributes every dollar to that role. Per-user detail exists only in LiteLLM’s ledger.

Restoring it in AWS billing requires assuming a role per user or session with session tags, which most proxy deployments do not do. Patterns such as scoped STS credentials for agents narrow permissions, but per-identity cost still depends on how the session is created.

Worked example: per-user budgets for a coding-agent rollout

Consider an illustrative organisation rolling out coding agents to 400 engineers. All prices below are hypothetical round numbers chosen for arithmetic, not quotes for any real model.

Assume a frontier model at $3 per million input tokens and $15 per million output tokens. A heavy agent session averages 2 million input tokens and 150,000 output tokens per working day, because agents resend context on every tool loop. That is $6.00 input plus $2.25 output, or $8.25 per engineer-day. Over 21 working days, one heavy user costs about $173 per month.

Now suppose usage is skewed, as it usually is. Forty power users run three times the heavy profile, 200 users run the heavy profile, and 160 users run a light profile at one fifth of it. Monthly spend is roughly 40 × $520 + 200 × $173 + 160 × $35, which is about $20,800 + $34,600 + $5,600, or $61,000. The top 10% of users drive about a third of spend.

A flat $200 per-user cap would throttle all 40 power users in the first week while leaving the light users with untouched headroom. Group budgets fix this. A “platform-agents” group gets $600 per user and the default group gets $200.

That arrangement is expressible in Amazon Bedrock Gateway (users and groups), in LiteLLM (teams with team_member_budget and per-member overrides) and in Portkey (per-key limits). The difference is who maintains the group membership: the IdP, or the gateway admin.

The reset window is the open question for the managed option. LiteLLM lets you set budget_duration: 1mo or a daily window, and Portkey offers weekly or monthly. AWS has not published the reset behaviour of Amazon Bedrock Gateway, so confirm it in the preview before designing a monthly chargeback around it.

Agent-level cost: from identities to sessions

Per-user budgets fit humans with IDEs. Autonomous agents need a different unit, because one agent run can fan out into dozens of model calls and tool invocations on behalf of no single person. AWS addressed this alongside Amazon Bedrock Gateway: for agents built on Amazon Bedrock AgentCore, teams can see estimated costs by agent and by session, according to the December 1 AWS News Blog post.

Session-level cost is the number an agent owner actually needs. It answers questions such as “what does one resolved support ticket cost” or “which agent version doubled spend per task,” which per-identity views cannot. AWS has not stated whether session costs can carry hard limits, so treat it as visibility for now, and note that the figures are described as estimates.

LiteLLM documents agent-level controls in its budget hierarchy, including max_budget_per_session, max_iterations, and session-scoped token and request rate limits. That is enforcement rather than visibility, and it can stop a looping agent mid-run. Portkey users typically achieve the same by tagging requests with session metadata and setting limits on the key the agent uses. Whichever tool you pick, give every agent its own identity or key, because a shared key makes per-agent cost impossible to recover later.

Routing economics: why the baseline decides the savings

AWS’s 40 to 50% figure compares smart routing to always using the most capable model in the family. That baseline matters more than the router. Take an illustrative support workload at 10,000 requests per day, each with 3,000 input tokens and 500 output tokens.

At the hypothetical frontier prices above, each request costs $0.009 for input plus $0.0075 for output, or $0.0165. Assume a smaller sibling at $0.80 input and $4 output per million tokens, so $0.0024 plus $0.002, or $0.0044 per request. If a router sends 60% of traffic to the small model, the blended cost is 0.4 × $0.0165 + 0.6 × $0.0044, or about $0.0092. That is a 44% saving against all-frontier, which sits inside AWS’s claimed range.

Now change the baseline. If the team already sends half its traffic to the small model with a hand-written rule, its current cost is about $0.0105 per request. The same router now saves only about 12%. The router’s value is the marginal intelligence beyond your existing rules, not the headline percentage.

Prompt caching shrinks the gap further. Suppose 2,500 of the 3,000 input tokens are a stable cached prefix, billed at an illustrative 10% of the input price on the frontier model. The frontier request then costs $0.0015 + $0.00075 + $0.0075, about $0.0098, instead of $0.0165.

If the small model sees too little traffic to keep its own cache warm, each routed request saves only about $0.0054 instead of $0.0121. Caches are per model, so a router that flips between models forfeits cache hits. Coverage of the smart routing page reports that it considers cache state, which is the right instinct; verify that behaviour during your preview.

These mechanics are the same trade-offs studied in cascade research, which our post on RouteLLM, FrugalGPT and model cascades covers in depth. The economic summary is in our LLM token economics guide: routing is one lever, and caching and output-length control are often larger.

Rolling out routing with shadow mode

LLM model routing shadow mode rollout from eval set through shadow traffic, canary and full rollout

Figure 3: A shadow-first rollout for any model router. Bedrock smart routing provides the shadow step natively; LiteLLM and Portkey users build it with mirrored traffic and offline evals.

The AWS News Blog says teams can run the router in shadow mode against production traffic to see how it would route real requests before switching. The Amazon announcement describes the same capability as a test run that reports the model it would have chosen and the estimated savings, without changing application behaviour.

Shadow mode answers “what would it cost,” but not “would the answers be good enough.” A shadow run reports routing decisions and estimated savings; quality comparison still needs an evaluation set built from your own traffic, graded by humans or an LLM judge against task-specific criteria. Run the eval on the requests the router would have sent to the cheaper model, because that is where regressions hide.

With LiteLLM or Portkey, you assemble the equivalent yourself. Mirror a sample of production requests to the candidate model, log both outputs, and score them offline. It is more work, but you control the scoring logic and can route across providers, which the Bedrock router does not do.

Trade-offs, Gotchas, and What Goes Wrong

The biggest limitation of Amazon Bedrock Gateway today is status. It is a gated preview with no published price, region list or GA date. Pricing could make the per-request economics unattractive for high-volume, low-margin traffic, and you cannot model that yet. Do not decommission a working proxy for a preview.

Data paths differ by model origin. The product page says prompts stay within AWS for Bedrock models. Requests to external providers through the gateway use your credentials and, necessarily, leave AWS. A gateway that unifies policy does not unify data residency, so classify traffic before routing it.

Within-family routing creates silent quality drift. When a provider ships a new small model into the family, a router may start using it. Similarly, aliases such as “latest” let teams move to new models through a policy update, which is convenient and risky for the same reason. Pin explicit model versions for regulated or evaluated workloads, and keep aliases for exploratory use.

Decision path for choosing Amazon Bedrock Gateway, LiteLLM, Portkey or a hybrid AI gateway

Figure 4: A decision path based on traffic mix, readiness to operate a proxy, and existing security vendor alignment.

Self-hosting carries supply-chain risk that the managed option shifts to AWS. LiteLLM versions 1.82.7 and 1.82.8 on PyPI were compromised on March 24, 2026, and on October 21, 2026, a hijacked release pipeline pushed version 1.107.0 with a credential stealer to PyPI and Docker images, per BleepingComputer. A gateway holds every provider key you own, which makes it a prime target. If you self-host, pin image digests and verify package hashes.

Vendor ownership can shift under you. Portkey’s gateway code remains MIT-licensed on GitHub, but the company now belongs to Palo Alto Networks, and as of today portkey.ai’s pricing URL redirects to the Prisma AIRS AI Gateway page. That is not a reason to avoid it. It is a reason to confirm roadmap, support terms and pricing in writing.

Ledger drift is the quiet failure. Two systems reporting spend will disagree, and finance will trust the invoice. Treat proxy-side numbers as operational guard rails and CUR as the record.

Finally, budgets without alerts create incidents. A developer whose agent stops mid-refactor because a cap hit at 3 p.m. will route around the gateway. Set soft alerts well before hard stops, and give an escalation path. Our cloud cost anomaly detection architecture applies directly to token spend.

Practical Recommendations

Start from your traffic mix, not from the vendor. If 80% or more of your model calls already go to Bedrock and your workforce identity lives in Okta or Entra ID, request Amazon Bedrock Gateway preview access now and run it beside your current controls. Meanwhile, turn on IAM principal data in CUR 2.0 and use Bedrock projects, because those are available today and make the gateway’s numbers easier to validate later.

If you run many providers, LiteLLM remains the most flexible self-hosted option, with the deepest budget hierarchy. Budget for an Enterprise licence if you need SSO beyond five users or per-model budgets, and treat it as tier-one infrastructure with patching and supply-chain controls. If your security organisation already standardises on Palo Alto Networks, evaluate Portkey through Prisma AIRS, which adds runtime inspection to gateway functions.

A hybrid is legitimate. Many teams will keep LiteLLM or Portkey for cross-provider routing and put Bedrock-bound traffic through Amazon Bedrock Gateway for IdP-native budgets. If you do, ensure each layer has one job, so two systems do not both enforce the same cap. For the broader design of the layer, see our LLM gateway architecture reference.

For routing, treat any vendor savings figure as a hypothesis. Measure your own baseline first, because savings are relative to what you do today.

Checklist before choosing:

  • Measure current spend per identity and per model from CUR or your proxy ledger.
  • Confirm whether your agents forward user identity or share one service account.
  • Ask AWS for Amazon Bedrock Gateway reset cadence, overshoot behaviour, pricing and regions during preview.
  • Build a 200-to-500-item eval set from real traffic before enabling any router.
  • Run shadow mode or mirrored traffic for at least one full business cycle.
  • Pin model versions for evaluated workloads; restrict “latest” aliases.
  • For self-hosted gateways, pin image digests and enable fail-closed budget enforcement.
  • Set soft alerts at 70 to 80% of each budget, with a documented escalation path.

Frequently Asked Questions

What is Amazon Bedrock Gateway?

Amazon Bedrock Gateway is a managed AI gateway built into Amazon Bedrock, announced at re:Invent on December 1, 2026, and currently in gated preview. It connects AWS IAM, Okta or Microsoft Entra ID, lets administrators decide which users and groups can use which models, and sets dollar spend limits per user, group or IAM role. Requests stop before reaching a model once a limit is hit. It can also front supported external providers using your own credentials, and it logs invocations to your own Amazon S3 bucket.

Is Amazon Bedrock Gateway generally available, and what does it cost?

No. As of December 2, 2026, AWS describes it as a gated or limited preview, with access requested through the product page. AWS has not published pricing, a region list or a GA date for either Bedrock Gateway or smart routing.

The product page links only to general Bedrock pricing. Plan pilots accordingly, and avoid committing production chargeback processes until pricing and reset behaviour are public. Model inference charges still apply in the normal way, so gateway fees, if any, would be additive.

How does Bedrock smart routing differ from LiteLLM or Portkey routing?

Bedrock smart routing picks a model per request inside one model family, based on task complexity and cost and quality goals. In preview it supports Anthropic and OpenAI families, and you adopt it by swapping a model ID for a router ID. LiteLLM routes across deployments and providers with strategies like latency-based and cost-based routing, plus fallbacks and an Auto Router add-on for complexity tiers.

Portkey uses conditional rules on request metadata and parameters. The Bedrock router is a learned optimiser within a family; the others are cross-provider traffic managers.

What is shadow mode in LLM model routing?

Shadow mode runs a router against real production traffic without acting on its decisions. The application keeps using its current model, while the router records which model it would have chosen and the estimated savings. AWS offers this natively for Bedrock smart routing.

Shadow mode shows cost impact and routing distribution, but it does not by itself prove quality. You still need an evaluation set graded against your task criteria, focused on the requests the router would downgrade to a cheaper model.

Can I set an LLM budget per user without a gateway?

Partly. On AWS you can attribute cost per user after the fact using IAM principal data in CUR 2.0, principal and session tags, and Bedrock projects, and you can alert on that data. What you cannot do without a gateway is stop a request before it reaches a model because one person is over budget.

AWS Budgets work on billing data that lags usage. Pre-call enforcement needs a component on the request path, which is what Amazon Bedrock Gateway, LiteLLM and Portkey provide.

Should I replace LiteLLM with Amazon Bedrock Gateway?

Not yet for most teams. Amazon Bedrock Gateway is in preview with unpublished pricing and limits, while LiteLLM offers a mature budget hierarchy and cross-provider routing today. A sensible path is to pilot the managed gateway for Bedrock-bound traffic, compare its spend view against CUR, and keep LiteLLM for multi-provider routing. Migrate fully only when the managed option is GA, priced, available in your regions, and covers the budget windows and per-model controls you rely on.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *