AI Gateway
The AI Gateway gives one consistent API for many AI models and providers. A developer points the application at Portkey with a short code change, or uses Portkey's SDK. The gateway checks who is calling, picks the provider key to use and applies rate limits.
Routing spreads calls across keys or providers by set weights, or sends them by conditions. A cached earlier answer can be returned instead of a new call. If a call fails, the gateway retries it or falls back to another provider or model.
Where the gateway runs
The core gateway is open source under the MIT licence, and is written in TypeScript for Node.js. It runs as a Node.js server, in Docker or on Cloudflare Workers. Portkey also runs it in its own cloud.
Private deployments run on AWS, Azure or Google Cloud, or on Kubernetes. The models themselves come from providers such as OpenAI, Anthropic and Mistral, or from the customer's own models.
Observability and guardrails
Observability shows every call in dashboards, metrics and logs, with its cost and timing. It follows OpenTelemetry, an open standard for traces and metrics. Guardrails check model inputs and outputs as they pass, for example by removing personal data.
The Prompt Engineering Studio is a shared library where a team writes prompt templates and keeps their versions. The Model Catalog lists the models on offer, with an open dataset of model prices.
Agents and governance
The MCP Gateway gives central login, access control and logging for MCP servers, the tool servers that AI agents call. Agents' tool calls pass through the same control plane as model calls. Portkey also connects to agent frameworks such as LangChain, CrewAI and AutoGen.
Governance controls add role-based access, budgets and audit logs. PII redaction and single sign-on are part of them too. Enterprise plans can keep data in a chosen region.