# Looking for a Portkey alternative? What to compare on a BYOK gateway

URL: https://infro.io/blog/looking-for-a-portkey-alternative-what-to-compare-on-a-byok-gateway
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-23
Last modified: 2026-11-23
Last reviewed: 2026-11-23 (next review due 2026-12-23)
Topic: Architecture and migration
Format: Comparison

> Compare a Portkey alternative on six criteria: who holds your provider keys, what the fee is charged on, what failover does when your own key fails, whether budgets refuse before the call, how deep policy goes, and how much of your data you can export. Then prove it with a four-step migration test on one service. [^infro-portkey-alt]

Key takeaways:
- Check what drives your evaluation first: if it is runtime AI security or a Palo Alto Networks standard, staying is a coherent answer.
- Compare gateways on what the fee is charged on, not on its size, because the base decides how the cost grows.
- Ask what happens when your own key fails: some gateways retry on their own shared capacity and bill you for it.
- A budget only controls spend if it refuses before the provider call and counts your own-key traffic.
- Measure exit cost before you sign: request log, usage series and a FOCUS export should leave without a support ticket.
- Run the migration test on one service for a week, with a forced failover and a forced budget refusal.

## What changed at Portkey, and does it force a move?

Palo Alto Networks announced it had closed its acquisition of Portkey on 29 May 2026, and Portkey's homepage now reads "Portkey is now PRISMA AIRS AI Gateway". On 19 November 2026 Portkey's pricing page and its sign-up page redirected to a Palo Alto Networks contact form that shows no price; the gateway is metered in tokens and sales works out what a deployment needs.[1] The Developer and Production plans that used to be listed can no longer be bought.[2]

That does not mean the product is going away. INFRO's migration page records no statement about the hosted service closing, and the documentation was still published on 19 November.[3] So the question is not "is Portkey safe?" but "is the direction mine, and can I compare what I would pay?" If runtime AI security is what you are buying, or you already standardize on Palo Alto Networks, staying is a coherent answer.[4] If you picked Portkey as a developer gateway for routing, logs and budgets, the rest of this post is the checklist for a replacement.

The criteria below apply to any BYOK gateway: you keep your own provider accounts, and your provider bills you directly for inference.

## Criterion 1: who holds your provider keys

BYOK only means something if the gateway never falls back to someone else's account. Ask three things. Where is each credential stored and in what form? Can it be read back after saving? And when your key fails, does the gateway stop, or does it quietly retry on its own capacity?

Concrete examples from vendors' documentation, as summarized by INFRO. OpenRouter, by default, falls back to its shared capacity when your keys fail or are rate limited, and a per-provider setting turns that off. Vercel's gateway retries a failed BYOK request on its own system credentials and bills your balance.[5][2] Neither is wrong, but both change the meaning of "my contract rate".

On INFRO, a credential is sent once, sealed at the gateway, and never returned by any endpoint; a test call runs before anything is saved, so a mistyped key leaves nothing behind.[6] With no connection that can serve a model, the request fails with a 503 naming the provider to connect, rather than running elsewhere.[6] Whichever gateway you shortlist, ask for the equivalent statement in writing.

## Criterion 2: what the fee is charged on

Two gateways with similar features can charge on entirely different things: purchases of a usage balance, a markup on model cost, a fee on your own-key usage above an allowance, request or log volume, tokens routed, a flat subscription, or nothing because you run it.[2] The base decides how the fee grows. A percentage grows with every model price rise; a per-request price grows with traffic; a subscription changes when you change plan.

Two details matter for a Portkey migration. OpenRouter's BYOK fee is 5% above $25,000 a month of list-price inference, and it is computed on list price, not on the rate your contract gives you.[2] And a token-metered enterprise gateway, as Prisma AIRS AI Gateway is described, cannot be compared from outside until you have a quote at your own request and token volumes.[1]

Ask each vendor for the price at three monthly volumes: today's, double, and a burst month. Keep the provider invoice as a separate line; it is the same under every option that runs on your own keys.

## Criterion 3: what failover does on your own keys

"Has failover" is not an answer. Ask which failures trigger it, whether it can fire after the first token, what it retries on, and whether the client sees it.

INFRO's documentation is an example of the level of detail to demand. Connection failover is same-model, across your own connections or a route's targets, and both layers operate strictly before the first token. A provider 5xx, timeout, 429, rejected credential, 404 or even a 400/422 moves the request to the next connection, and a provider 429 does not count against a connection's health. Cross-model fallbacks are opt-in, up to five catalog model IDs per request. The gateway's own refusals (bad body, invalid key, budget, allowlist, unknown model) return immediately without failover.[7]

Also ask what failover does to cost and cache behaviour, and what happens to an interrupted stream; both are covered in [what failover does to your bill](https://infro.io/blog/what-does-failover-do-to-your-bill-price-gaps-and-cold-caches) and in the [failover drills](https://infro.io/blog/llm-failover-drills) post.

## Criterion 4: budgets that refuse before the call

A dashboard that reports spend afterwards is not a control. For each gateway, check four things: the scopes (organization, project, member, key, end customer), whether the limit blocks or only alerts, whether it counts your own-key traffic, and how it behaves under concurrency.

The documented gaps differ. Vercel states that spend through your own credentials "isn't counted in budgets"; OpenRouter counts BYOK spend only if you turn that on; Cloudflare's limits apply to BYOK for models with known pricing but are eventually consistent, so a burst can briefly pass them.[5] Portkey's budgets, per INFRO's mapping, sit on an Integration per workspace, and Palo Alto's documentation describes limits in dollars or tokens that stop routing at the cap with HTTP 412.[3][4]

INFRO's blocking budgets admit a request only if its worst-case estimated cost fits the room left, counting recorded spend plus reservations held across its infrastructure, and a request can be refused briefly for room that is reserved but not yet spent near a limit.[8] Its docs are explicit that the bound is on INFRO's estimate, not on the provider's invoice. That candour is what you want from any vendor. Test it (below) rather than trusting it.

## Criterion 5: policy and guardrails

Decide what "policy" means for you before you compare. For some teams it is runtime inspection of what models receive and return, and a security-first product is the right choice. For others it is access and spend: which member or key may call which model, and who changed what.

Prisma AIRS AI Gateway is described as strongest on guardrails and PII redaction.[4] INFRO's guardrails are pattern checks on chat completions plus prompt classifiers for injection and jailbreaks, narrower than a security platform, with no image or audio inspection; its model allowlists, audit log, roles and budgets are on every plan, and SSO and SCIM come with Business.[4] Prompts are another place where scope differs: INFRO keeps versions and labels in the gateway, but Portkey's templates do not import, so each one you keep is saved again as a version.[3]

Write down every Portkey feature you actually use. Anything on the "different" or "nothing" side of the mapping needs a named owner before cutover.

## Criterion 6: export and exit cost

Exit cost is the part roundups skip. A gateway should remove vendor lock-in, not replace it with a proprietary application interface, and exportable data reduces buyer risk.[9] Test it on the first day, not at renewal.

Checklist for any candidate:

- [ ] The request log leaves as CSV or by paged API, with a stable cursor.
- [ ] A usage series by project, key and model leaves in a documented format.
- [ ] Cost data lands in your FinOps platform, ideally as a FOCUS dataset.
- [ ] Traces go to your own collector over OpenTelemetry.
- [ ] Your client code uses a standard SDK shape, so leaving is a base-URL change.
- [ ] You know what does not export: logs held only by the previous gateway, saved prompts, config objects.

For reference, INFRO documents `GET /v1/requests/export` as CSV up to 50,000 rows per file, `GET /v1/usage` as JSON or CSV, `GET /v1/usage/focus` as a FOCUS v1.4 dataset, and OpenTelemetry trace delivery on every plan; scheduled or emailed exports are not currently available.[10] Do the same for Portkey before you leave: INFRO's guide notes there is no importer for Portkey logs and traces, so export what you need first.[3]

## The comparison at a glance

| Criterion | Ask | Failure it catches |
| --- | --- | --- |
| Key custody | Can a saved key be read back? What serves a request when mine fails? | Silent fallback onto the vendor's account |
| Pricing base | What is the fee charged on, at 1x, 2x and a burst month? | A percentage or token meter that grows with spend |
| Failover | Which failures trigger it, before or after the first token? | Retries that bill a different account or cut streams |
| Budgets | Scopes, block or alert, BYOK counted, behaviour under concurrency | Limits that report but do not refuse |
| Policy | Inspection of content, or access and spend? | Buying a security product for a finance problem |
| Export and exit | Log, usage, FOCUS, OTel; what stays behind | Data held hostage at renewal |

Table: What to ask each gateway, and the failure each question catches.

## A migration test you can run in a week

Pick one low-risk service and put it behind a flag. Connect the same provider accounts Portkey called, preferably with a new key per provider so the old path can be revoked later. Then run four checks.

1. **Parity.** Replay 50 to 100 recorded prompts through both gateways. Compare status, finish reason, and the model that answered.
2. **Forced failover.** In staging, revoke or break one connection and send traffic. Count successes, and read from each response which provider and model answered.
3. **Forced budget refusal.** Put a small cap on a staging key and send concurrent requests. Count refusals and measure how far spend passed the cap.
4. **Export round trip.** Pull the request log and usage series, and reconcile row counts against your client-side count.

```python
import os
from concurrent.futures import ThreadPoolExecutor
from openai import OpenAI, APIStatusError

client = OpenAI(base_url=os.environ["GATEWAY_URL"],
                api_key=os.environ["STAGING_KEY_WITH_SMALL_CAP"])

def call(_):
    try:
        r = client.chat.completions.create(
            model=os.environ["ROUTE_OR_MODEL"],
            messages=[{"role": "user", "content": "Reply with one word."}],
            max_tokens=8,
        )
        return ("ok", r.model)
    except APIStatusError as e:
        return ("refused", e.status_code)

with ThreadPoolExecutor(max_workers=50) as pool:
    results = list(pool.map(call, range(200)))

print(sum(1 for s, _ in results if s == "ok"), "served")
print(sum(1 for s, _ in results if s == "refused"), "refused")
```

> **Example: Reading the result (illustrative)**
> Suppose the cap is $2.00 and each request's worst-case estimate is $0.01. Illustrative only: if the gateway served requests worth $2.40 of recorded estimate before refusing, the overshoot is 20%. Decide in advance what overshoot you accept, and whether the vendor documents one.

Pass criteria to agree before you start: no client-visible errors in the forced-failover test, refusals returned as a distinct status your code can handle, and exported counts within a tolerance you set.

## Where INFRO fits, and where it does not

INFRO is a hosted BYOK control plane: you connect provider accounts you already hold, call one OpenAI-compatible base URL, and pay a software subscription with 0% markup on model spend, while your providers bill you directly.[6] Per INFRO's mapping, Portkey configs become routes, Integrations become connections, and metadata moves into the request body.[3] It does not do semantic caching, batches, token-count limits, or self-hosting without an enterprise agreement, and routing rules read a fixed set of request fields, not arbitrary metadata.[3] If those are your requirements, or runtime AI security is, one of the other options in [the gateway roundup](https://infro.io/blog/best-ai-gateways-2026) fits better.

Decide on the criteria above, with a quote in hand and a passed test, and keep the old gateway's key active until the new path has earned the traffic.

## Questions

### Is Portkey shutting down?

Nothing INFRO's migration page records says so. Palo Alto Networks completed the acquisition on 29 May 2026, the pricing and sign-up pages redirected to a contact form on 19 November 2026, and the documentation was still published on that date. [3] Ask for your renewal terms in writing rather than inferring a roadmap.

### Is Portkey's open-source gateway still an option?

It is MIT licensed and not archived. Its last release was v1.15.2 on 12 January 2026 and its last push 25 May 2026, and logging, observability and prompt management sit in the hosted app, not in the open-source gateway. [3] [4] You would operate it yourself.

### Do I need new provider keys when I change gateways?

Not strictly, but it is good practice to create a new provider key for the new gateway and revoke the old gateway's key after cutover. That gives you a clean record of which gateway used which key and a way to prove the old path is closed.

### Can I run two gateways in parallel during the move?

Yes. Move one service behind a flag, keep the rest on the old gateway, and compare error rate, latency and estimated cost per request over a week. Keep the old gateway's provider key active until the new path has passed the failover and budget tests.

## Sources

1. Portkey alternatives in 2026, after Palo Alto Networks — INFRO. https://infro.io/alternatives/portkey (accessed 2026-11-23)
2. AI gateway pricing models: markup, fees, requests, subscription — INFRO. https://infro.io/blog/ai-gateway-pricing-models-compared (accessed 2026-11-23)
3. Migrating from Portkey to INFRO — INFRO. https://infro.io/migrate/portkey (accessed 2026-11-23)
4. INFRO vs Prisma AIRS AI Gateway (Portkey): key differences — INFRO. https://infro.io/compare/infro-vs-portkey (accessed 2026-11-23)
5. Best AI gateways in 2026: which one fits which team — INFRO. https://infro.io/blog/best-ai-gateways-2026 (accessed 2026-11-23)
6. Connect a provider — INFRO Docs. https://infro.io/docs/providers (accessed 2026-11-23)
7. Failover & fallbacks — INFRO Docs. https://infro.io/docs/features/fallbacks (accessed 2026-11-23)
8. Spend controls — INFRO Docs. https://infro.io/docs/org/spend-controls (accessed 2026-11-23)
9. Build vs buy an LLM gateway: the real engineering tradeoff — INFRO. https://infro.io/blog/build-vs-buy-llm-gateway (accessed 2026-11-23)
10. Exports & OpenTelemetry — INFRO Docs. https://infro.io/docs/observability/exports (accessed 2026-11-23)
