- Home
- Use cases
- AI gateway
- Portkey: Cost Controls for a Growing AI Team
Portkey: Cost Controls for a Growing AI Team
A rules table sets budgets and fallbacks per app on Portkey.
The challenge
What teams are up against
Typical situation, not a client: an AI team grows from two apps to a dozen. Provider bills climb, nobody owns the spend, and one provider outage stopped three apps at once.
Our approach
How we deliver it, step by step
- 01
List apps, owners and models
One row per app with a named owner and the models it calls.
- 02
Set budgets
Portkey documents cost or token caps with alert thresholds. They are listed as an Enterprise feature, available to select Pro customers, so check the plan first.
- 03
Set the fallback order
Portkey lets you list backup providers in priority order, triggered on any non-2xx response by default. Decide where that default is too broad.
- 04
Test a provider failure
Block a provider in a test and watch each app fall back as planned.
- 05
Review spend on a rhythm
Hold a short monthly review of spend against budget with each owner.
Architecture
The components involved
From the top of the stack down
Apps call Portkey instead of providers. Each app has a key with a budget and a fallback list. Logs record every request, including each attempt in a fallback chain.
Outcomes
What changes when it is in place
Each app has an owner, a budget and a fallback list in one table.
An outage at one provider no longer stops every app.
Spend reviews have the data they need.
Why Duczer East
Senior practitioners, from scope to delivery
We score the starting point on paper first, then change the cheapest weak spot, so the plan rests on evidence from your own estate.
About Duczer EastFAQ
Questions we are asked about this
Does Portkey cap spend?
Cost or token caps with alert thresholds are documented as an Enterprise feature, available to select Pro customers (Portkey docs, checked November 30, 2026). Check your plan.
How do Portkey fallbacks work?
You list targets in priority order, and by default a non-2xx response triggers the next target (Portkey docs, checked November 30, 2026). Test that against your own error cases.
Related use cases
More problems we solve this way
Use cases on the same platform or for the same industries. Browse all use cases.
LiteLLM: Hardening a Proxy Before Production
A checklist covers auth, secrets, logging and quotas before users arrive.
Read use caseLiteLLM: A Self-Hosted Model Proxy for a Bank
Keys, budgets and routing are designed before a self-hosted LiteLLM proxy goes live.
Read use casePortkey: An Audit Trail for Regulated AI Use
Log fields are mapped to the questions an auditor asks about AI use.
Read use caseAI Readiness Assessment: A Fixed-Scope Data Review in 2 to 4 Weeks
Find out whether your data is ready for AI before you build. Fixed scope, 2 to 4 weeks, and a plan sized against facts.
Read use caseApigee AI Gateway: Token Quotas and Model Armor Screening
Control what applications send to models: token limits, prompt and response screening, caching and routing on the Apigee you already have.
Read use caseApigee Hybrid for APIs That Stay Close to On-Premises Systems
Keep API traffic close to on-premises systems while Google hosts the management plane, and know the entitlement catches before you plan.
Read use caseRelated insights
Further reading from our practitioners
Analysis and guides on the questions this use case raises. All insights.
On-Premises AI Gateway: Requirements, Options and a Checklist
Requirements, options, placement and a checklist for in-network AI traffic
GuideWhat Is an AI Gateway, and When Do You Need One
A guide to policy enforcement for enterprise model traffic
WSO2 API Manager Upgrade Runbook: Steps, Testing, Rollback and Cutover
Upgrade WSO2 API Manager in a fixed order: prepare and back up, build a parallel environment, upgrade the schema and configuration, test, cut over in stages, and keep a rollback you have already rehearsed.
Let's Talk
Talk through this use case
Tell us about your systems and where you are today. A senior practitioner replies, and only your email is required.


