ModelRefs / PortKey — AI Glossary
PortKey — AI Glossary
An AI gateway and observability platform providing unified API access, semantic caching, fallback routing, and LLM tracing. Also called Portkey AI.
Overview
PortKey unifies 200+ LLM providers under one API with automatic fallback (switch to backup provider on failure), semantic caching (cache similar requests by embedding similarity), load balancing across providers, and detailed observability traces. Targets production-grade multi-provider architectures.
Reference details
| Topic | infrastructure |
|---|---|
| Also known as | Portkey AI |
| Last reviewed | 2026-06-24 |
Related terms
How it works
- A gateway normalises many providers behind one request shape, so switching provider is configuration rather than code.
- Routing rules select a target per request by cost, latency or declared capability, before any failure occurs.
- Fallback chains react after a failure, reissuing to the next target on retryable errors.
- Semantic caching can short-circuit a request whose embedding is close enough to a cached one — which saves a call and introduces a correctness risk a prefix cache does not.
- Because every request passes through it, the same component holds the observability data, which is why it occupies two product categories at once.
Example: Two controls with very different failure modes
Fallback routing turns a provider outage into a slower successful request: availability improves, and the worst case is degraded quality on a path nobody evaluated. Semantic caching at a 0.95 threshold turns a near-miss into a wrong answer served quickly: cost improves, and the worst case is a confidently incorrect response that monitoring records as a success. Both live in the same gateway and are configured in the same place, so it is worth being explicit that one risks latency and the other risks correctness.
Commonly confused with
An AI gateway with observability attached, which puts it in two categories at once — compare it with LiteLLM on the gateway axis and with Langfuse or Helicone on the observability axis. The gateway function is the load-bearing one: unified access, fallback routing and caching are things a request path does, whereas observability is something that watches it.
When to use it
Reach for it when:
- Many providers must be reachable through one interface with central keys and budgets.
- Routing by cost or latency, with failover on provider incidents.
- Gateway and observability are wanted from one component rather than two.
Reach for something else when:
- A single provider is used, where its own client is simpler and more complete.
- Semantic caching would be enabled without measuring false-hit rate on real traffic.
- Deep per-stage tracing of non-model steps is the primary need.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to PortKey — AI Glossary.
Frequently asked questions
What is PortKey?
An AI gateway and observability platform providing unified API access, semantic caching, fallback routing, and LLM tracing.
Is PortKey the same as Portkey AI?
Yes — Portkey AI are common aliases for PortKey.
What concepts are related to PortKey?
Closely related concepts include litellm, gateway, model routing.