Routing

Portkey Gateway for tokenmaxxing

Model routing plus guardrails is the grown-up version of tokenmaxxing: pick the right route, then keep the call inside policy.

13.4K starsPortkey-AI/gateway
1.4K forksGitHub metadata checked 2026-11-20
MITDirect tokenmaxxing fit

What it does

An AI gateway for routing across LLMs with guardrails, provider abstraction, and an OpenAI-compatible API surface.

Why it belongs here

Model routing plus guardrails is the grown-up version of tokenmaxxing: pick the right route, then keep the call inside policy.

Best use case

Teams that want an OpenAI-compatible gateway with routing, provider abstraction, guardrails, and operational policy controls.

How to use it

Centralize model calls, define guardrails and fallbacks, and compare provider cost and latency across the same workflows.

Limits

Guardrails and routes need real policies. A gateway cannot decide quality targets or risk tolerance for the team.

Tags

gatewayguardrailsrouting
Related feed

Source notes connected to this use case

Anthropic source artwork
newsA
news

Introducing Claude Fable 5.2 and Claude Mythos 5.2

Anthropic released Claude Fable 5.2 and Mythos 5.2 on Nov. 9, priced at $8 per million tokens in and $40 per million out, which it calls a lower price. An optional fast mode generates up to 2.5 times quicker at exactly double both rates.

tokenmaxxingpricingmodel-routing
Read note
Generated Tokenmaxxing editorial thumbnail for The AI boom has a new complication: falling prices
newsA
news

The AI boom has a new complication: falling prices

As of Oct. 22, two token-price gauges were sliding: Silicon Data's volume-weighted index fell under $1 per million tokens, 54% off its late-May high of $2.07, and Ramp's index of real business spend sat 48% below its February top of $1.22.

tokenmaxxingpricingai-spend
Read note
Generated Tokenmaxxing editorial thumbnail for The Hidden Cost of LLM Routing: Why Switching Models Costs More
long-formTD
long-form

The Hidden Cost of LLM Routing: Why Switching Models Costs More

Nhu Hoang replayed one 20-turn agent session under three routing policies on a vLLM server with prefix caching, then priced the token flows at Claude API rates. Switching models every turn saved 13%; the price sheet promised 40%.

tokenmaxxingmodel-routingmodel-router
Read note
Generated Tokenmaxxing editorial thumbnail for Enterprise AI budgets break at the handoff to production
long-formEC
long-form

Enterprise AI budgets break at the handoff to production

Express Computer interviews New Relic India's Ganesh Narasimhadevara on why AI bills keep climbing while the blended cost per million tokens has fallen over a year, from $18.40 in Q1 2025 down to $6.07 in Q1 2026.

tokenmaxxingai-spendcost-governance
Read note
Alternatives

More routing projects

#1Direct
Routing

LiteLLM

BerriAI/litellm

An OpenAI-compatible gateway and SDK for calling many model providers with budgets, logging, load balancing, guardrails, and cost tracking.

63.6K13.4KSource-available
gatewaycost-trackingrouting
#2Direct
Observability

Langfuse

langfuse/langfuse

Open-source LLM engineering platform for observability, traces, metrics, evals, prompt management, datasets, and playground workflows.

37.7K4.3KSource-available
tracesevalscosts
#13In spirit
Structured output

Outlines

dottxt-ai/outlines

A structured-output toolkit for constraining generation with formats like JSON, regex, and grammars.

16K918Apache-2.0
jsonconstrained-generationretries