AI
AI Gateways & Model Routing
Choose a managed or self-operated AI gateway by provider access, compatibility, routing, fallback, credentials, budgets, logging, data policy, resilience, and ownership.
Recommendation
Add a gateway only for a shared control need.
Stay direct with one provider unless centralized routing, fallback, credentials, budgets, rate limits, caching, policy, or multi-team operations justify another request-path dependency.12
For: Application and platform teams whose provider diversity, reliability, budget, credential, policy, or centralized traffic requirements justify an AI gateway
Choose the product and operating model first
Start from workload, integration, quality, policy, data, lifecycle, and ownership requirements before comparing product breadth.
Compatibility
Test the exact models, endpoints, streaming events, tools, structured output, errors, usage, headers, state, images, audio, embeddings, and provider options required.3
Decision routes
Each route addresses a distinct workload or ownership boundary and retains an explicit verification condition.
Managed AI control plane
Choose Managed AI control plane
Choose Portkey when a managed gateway plus centralized routing, credentials, budgets, policy, observability, and enterprise deployment options fit.
Verify: Verify cloud, hybrid, and air-gapped boundaries, supported providers and features, pricing-data coverage, logs, retention, guardrails, budget behavior, plans, and exit.1
Self-operated OpenAI-compatible proxy
Choose Self-operated OpenAI-compatible proxy
Choose LiteLLM when a team wants to operate an open proxy and explicitly own provider adapters, routing, keys, budgets, logs, deployment, and upgrades.
Verify: OpenAI-compatible does not mean feature-equivalent; test every required provider behavior and own high availability, storage, security, updates, policy, and enterprise edition boundaries.2
Hosted multi-model routing
Choose Hosted multi-model routing
Choose OpenRouter when hosted access to many models and providers, consolidated billing, routing, fallback, and provider policy controls are the intended boundary.
Verify: Verify model and provider identity, routing defaults, data policy, region, fallbacks, tool support, version pinning, fees, credits, BYOK, limits, failed attempts, logs, and outage behavior.3
Vercel-managed gateway
Choose Vercel-managed gateway
Choose Vercel AI Gateway when Vercel-managed model access, routing, fallback, budgets, usage, and AI SDK integration fit the application.
Verify: Keep it distinct from Vercel hosting and AI SDK; verify provider catalog, API compatibility, provider options, credits, BYOK, pricing and markup, logs, regions, limits, and exit.4
Boundary: AI Gateways own proxy and request-path routing, fallback, retry, caching, rate, budget, credentials, policy, and traffic telemetry. LLM APIs choose models, AI SDKs own in-code abstraction, and AI Observability spans gateway and non-gateway behavior and evaluation.
Differences that change the choice
Compare the workload, product boundary, policy, lifecycle, data path, cost shape, and operating ownership rather than feature volume.
- Ownership
- Managed, hosted aggregation, self-operated proxy, and platform gateway routes transfer availability, updates, policy, and support differently.1
- Compatibility
- Unified or OpenAI-compatible interfaces do not guarantee provider feature, event, tool, policy, or error equivalence.3
- Routing and resilience
- Fallbacks can improve availability while changing provider identity, data path, latency, output behavior, and cost.23
- Commercial boundary
- Pass-through inference, platform fees, credit purchase fees, BYOK, logs, seats, and enterprise controls must be evaluated separately.3
Official resources
Verify current model, API, SDK, product, pricing, policy, data, region, lifecycle, and operating boundaries in first-party material.
Related tools
Related tasks
Sources
Official documentation supports current product boundaries and verification points; route selection remains a bounded editorial judgment.
- 1Portkey official documentation
Portkey · Accessed Official
- 2LiteLLM official documentation
LiteLLM · Accessed Official
- 3OpenRouter official documentation
OpenRouter · Accessed Official
- 4Vercel AI Gateway official documentation
Vercel AI Gateway · Accessed Official
- 5OpenRouter pricing
OpenRouter · Accessed Official
- 6Vercel AI Gateway pricing
Vercel · Accessed Official
- 7Portkey model pricing and cost management
Portkey · Accessed Official