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

Main trade-off

A gateway centralizes credentials, routing, fallback, budgets, caching, rate limits, and telemetry while adding another critical request path, compatibility layer, logging boundary, pricing model, outage mode, and migration dependency.1234

Choose the product and operating model first

Start from workload, integration, quality, policy, data, lifecycle, and ownership requirements before comparing product breadth.

  1. Activation need

    Require a real shared need for provider access, routing, fallback, retries, budgets, credentials, rate limits, caching, policy, or team governance.12

  2. Compatibility

    Test the exact models, endpoints, streaming events, tools, structured output, errors, usage, headers, state, images, audio, embeddings, and provider options required.3

  3. Reliability and policy

    Define timeout, retry, fallback, idempotency, data residency, provider selection, credential isolation, logging, redaction, retention, and outage behavior.13

  4. Economics and exit

    Verify provider pass-through, markup, credit fees, BYOK terms, cache, failed attempts, logs, seats, enterprise controls, deployment cost, export, and direct-provider escape.12

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.

Sources

Official documentation supports current product boundaries and verification points; route selection remains a bounded editorial judgment.

  1. 1
    Portkey official documentation

    Portkey · Accessed Official

  2. 2
    LiteLLM official documentation

    LiteLLM · Accessed Official

  3. 3
    OpenRouter official documentation

    OpenRouter · Accessed Official

  4. 4
    Vercel AI Gateway official documentation

    Vercel AI Gateway · Accessed Official

  5. 5
    OpenRouter pricing

    OpenRouter · Accessed Official

  6. 6
    Vercel AI Gateway pricing

    Vercel · Accessed Official

  7. 7
    Portkey model pricing and cost management

    Portkey · Accessed Official