Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

All use cases
  1. Home
  2. Use cases
  3. AI gateway
  4. Portkey: Cost Controls for a Growing AI Team
AI gatewayFinancial servicesInsurance

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

  1. 01

    List apps, owners and models

    One row per app with a named owner and the models it calls.

  2. 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.

  3. 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.

  4. 04

    Test a provider failure

    Block a provider in a test and watch each app fall back as planned.

  5. 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 with ownersCallers
Budget per keyControl
Fallback orderRouting
Spend reviewEvidence

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.

Portkeybudgetsfallbacks

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 East

FAQ

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.

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.

Get a quote