static audit · 2026-10-26T03:53:29.482Z

Portkey-AI/gateway

120 source files scanned · 5 LLM call site(s) · ~0% of LLM spend looks recoverable (static heuristics · repo looks like an app)

$80per 10k runs today (gpt-4o, ~2000 prompt tokens)
$80per 10k runs with fixes applied

badge   ![TokenZero audit](https://tokenzero.sh/v1/badge/audit/aud_HdTq0AJFOA2PhRFv528RQA.svg)

repo badge   [![LLM spend audited by TokenZero](https://tokenzero.sh/v1/badge/repo/Portkey-AI/gateway.svg)](https://tokenzero.sh/audit/portkey-ai/gateway)

Models referenced

gpt-3.5-turbo ×4
gpt-4o ×1 (cheaper sibling: gpt-4o-mini)

Findings

SeverityWhereFindingEst.
lowcookbook/integrations/vercel/app/examples/generate-ui-streamui/action.tsx:51"gpt-4o" retires on 2027-01-14
The provider announced on 2026-10-14 that this model retires on 2027-01-14 (80 days). Recommended replacement: gpt-6-luna.
Fix: Move to gpt-6-luna (eval first); TokenZero's cascade can route to it, and the gateway warns in X-TokenZero-Warning until you do.
0%
infocookbook/integrations/vercel/app/examples/generate-text/conditional-routing.ts:50Unrecognised model id "gpt-3.5-turbo"
Not in the current pricing table: it may be retired or renamed. Retired models return errors or are silently remapped by some providers.
Fix: Check the provider model list; TokenZero flags unpriced models in `X-TokenZero-Warning`.
0%

Fix all of it with one line

OPENAI_BASE_URL=https://tokenzero.sh/v1
ANTHROPIC_BASE_URL=https://tokenzero.sh

Keys pass through untouched. Cache formatting and exact caching are on by default; cascade routing stays opt-in. How it works