- 1600+ LLMs — Single interface for all providers, not just OpenAI
- Observability — Real-time tracking for 40+ metrics and logs
- Governance — Budget limits, rate limits, and RBAC
- Guardrails — PII detection, content filtering, compliance controls
For enterprise governance setup, see Enterprise Governance.
Quick Start
1. Setup Portkey
1
Add Provider
Go to Model Catalog → Add Provider.

2
Configure Credentials
Select your provider (OpenAI, Anthropic, etc.), enter your API key, and create a slug like 
openai-prod.
3
Create Config
4
Get Portkey API Key
Go to API Keys → Create new key → Attach your config → Save.

2. Configure Langflow
1
Install Langflow
Install via Docker, pip, or desktop app. See Langflow docs.
2
Open a Flow
Create or open a flow with an OpenAI model component.
3
Configure OpenAI Component
Click the OpenAI component → Controls:

4
Add Portkey Settings
- Base URL:
https://api.portkey.ai/v1 - API Key: Your Portkey API key

Enterprise Governance
For organizations using Langflow, Portkey adds governance controls:Budget & Rate Limits
Budget & Rate Limits
Create providers with spending limits per team:
- Go to Model Catalog
- Create provider for each team with budget/rate limits

Model Access Rules
Model Access Rules
Control which models teams can access at the integration level.

Routing Configuration
Routing Configuration
Team API Keys
Team API Keys
Create team-specific API keys with metadata:
Features
Observability
Track 40+ metrics: cost, tokens, latency, performance. Filter by custom metadata.
Logs
Complete request/response tracking with metadata tags and cost attribution.
Reliability
Fallbacks
Auto-switch on failure
Load Balancing
Distribute across providers
Caching
Reduce costs and latency
Retries
Exponential backoff
Conditional Routing
Route by conditions
Budget Limits
Control spending
Guardrails
Protect workflows with real-time checks:- PII detection and masking
- Content filtering
- Custom security rules
Guardrails
Configure input/output protection
FAQs
Can I use Portkey with other Langflow components?
Can I use Portkey with other Langflow components?
Yes. Any component supporting custom base URLs works with Portkey. Set base URL to
https://api.portkey.ai/v1.Can I use multiple providers with one API key?
Can I use multiple providers with one API key?
Yes. Create multiple providers and attach them to a single config. The config connects to your API key.
How do I track costs per team?
How do I track costs per team?
Create separate providers per team, use metadata tags, or set up team-specific API keys.


