Two AI gateways, one question: where does control live?
Portkey — acquired by Palo Alto Networks in May 2026 and now positioned as the PRISMA AIRS AI Gateway — pairs an open-source gateway you can self-host with a managed control plane: guardrails, a versioned prompt library, traces, and governance. Of the products in this space, it is the closest competitor to Apinizer. The structural difference: Apinizer keeps both the control plane and the data plane on-prem, and its AI gateway is a module of the API Management platform already governing your REST, SOAP, and gRPC estate.
Executive Summary
Close on features, far apart on architecture
Both products cover the AI gateway core: multi-provider routing, guardrails, credentials, semantic caching, prompt management, and tracing. The evaluation turns on two questions — may your configuration, prompts, and telemetry touch a SaaS control plane, and do you want AI governance as a point product or as part of the platform that already runs your APIs?
◆ Apinizer AI Gateway
Fully on-prem — management UI, configuration, audit, and gateway all inside your network. Turkish PII native, local RAG, MCP & A2A first-class, LDAP/OIDC identity with RBAC, and enterprise deploy discipline in one platform.
▲ Portkey Gateway
Open-source gateway core, self-hostable, with 250+ models behind an OpenAI-compatible API. Fast to adopt, strong developer experience.
■ Portkey Enterprise
Adds the managed control plane: guardrail configuration, Prompt Engineering Studio, trace/log panel, SSO, SCIM, and budget policies. Powerful — but the control plane is a SaaS service by default.
Architecture & Approach
Four dimensions, one structural divide
Feature lists overlap more here than in any other comparison. The differences concentrate in architecture, depth of the guardrail runtime, and what surrounds the gateway.
Architecture & Planes
Guardrails & Privacy
Beyond the Proxy
Identity & Governance
At a Glance
Summary comparison
A side-by-side view of the three options at the positioning and focus level.
| Criterion | Apinizer AI Gateway | Portkey Gateway (OSS) | Portkey Enterprise |
|---|---|---|---|
| Positioning | AI gateway module of an enterprise API Management platform | Open-source AI gateway core | Gateway + managed control plane |
| Control plane | On-prem, inside your network | Minimal; config-driven | SaaS by default |
| Guardrails | Native, streaming-safe; Turkish PII included | Basic hooks | 23 basic + 4 Pro native checks, ~20 partner guardrails |
| Prompt management | Decorators + 9 responsible-AI presets | None | Prompt Engineering Studio |
| RAG / Knowledge Base | Built-in, multi-tenant, local VectorDB | None | Limited |
| Primary focus | Regulated, closed-network AI adoption on one platform | Fast, flexible LLM routing | Guardrails + observability for cloud-first teams |
Deep Dive
AI gateway capability matrix
29 capabilities from deployment to protocol governance. The Apinizer column reflects the platform capability matrix; the Portkey column is compiled from public documentation and marks enterprise-plan capabilities where relevant.
★ Differentiator (MOAT)
On-prem to the last byte
The products overlap on guardrails and observability more than any other pair in this series. Apinizer's edge is structural: everything — including the management surface — runs in your network, and the AI gateway shares one platform with your API estate.
| Capability | Apinizer AI Gateway | Portkey |
|---|---|---|
| Positioning & Deployment | ||
| Product type | AI gateway module of an enterprise API Management platform (Java); one runtime for API and AI traffic | AI gateway — open-source core + managed control plane; now Palo Alto Networks' PRISMA AIRS AI Gateway |
| Self-host / on-prem | On-prem is the primary scenarioAir-gap friendly; both planes in-network | Gateway self-hosts; control plane SaaSHybrid deployment — data plane in your VPC, control plane hosted by Portkey — is an Enterprise-plan option; fully airgapped deployment is no longer offered to new customers |
| License / access | Commercial; all modules in a single license | Open-source gateway + commercial plans |
| Models & Endpoints | ||
| Provider / model catalog | 26 providers / 185 modelsCustom providers and models added from the UI | 250+ models |
| OpenAI-compatible single endpoint | Yes | Yes |
| Multi-modal endpoints | Chat, embeddings, STT/TTS, image, /v1/responses | Yes |
| Routing & Resilience | ||
| Load balancing / failover / retry | Yes | Yes |
| Cost- & latency-aware routing | least-cost / least-latency among 7 algorithms | Yes |
| Conditional / content-based routing | Condition policies + Groovy/JS scripting | Conditional routing on all plansQueries metadata, params, and URL — not message content |
| Agentic tool-call loop in the gateway | In-gateway multi-turn tool-calling (maxToolTurns) | Server-side MCP tool execution (beta)Scoped to MCP tools; turn limits and loop mechanics not documented |
| Guardrails & Privacy | ||
| PII detection & masking | Native; 12 checksum-validated typesApplied at request and streaming-chunk level; reversible for authorized roles, deny-by-default | Native PII detect + redact (Pro) and partner guardrailsPhone, email, location, IP, SSN, names, credit card; 23 basic checks on all plans |
| Turkish PII (TCKN / IBAN-TR / phone) | Native validators + TR preset MOAT | Custom rules required |
| Prompt injection / jailbreak protection | PromptGuard — INLINE / ASYNC / SHADOW | Built-in + partner |
| Topic guard | Allow/deny by embedding similarityPlus 14 AILuminate hazard categories, extendable from a catalog | Native Moderate Content (Pro) is input-onlyTopic allow/deny policies come from partner guardrails |
| DLP / context integrity | Context-integrity policy + DLPStructural control for OWASP LLM Top-10 #1; HIPAA Safe Harbor + PCI DSS rule packs | PII redact + regex natively; DLP scanning via partners |
| Guardrails on streaming (SSE) | Chunk-boundary safe | Input blocks before the stream (446)Output guardrails run only after the stream completes and are informational — no fallback or retry is triggered |
| Cache, RAG & Knowledge | ||
| Exact + semantic cache | Exact (Hazelcast) + semantic (VectorDB similarity) | Semantic cacheRequires a vector database you supply; plan gating differs between the pricing page and the docs |
| Local RAG + knowledge base + VectorDB | Knowledge bases, PDF ingestion, multi-tenant isolation | Limited |
| Quota, Budget, Identity & Access | ||
| Budgets + quotas | 6 scope tiers × token/USD × time windowLimit Plans enforce: over-limit calls get HTTP 429 + Retry-After. Platform default, anonymous, consumer / API client, organization chain, API proxy, project; bulk assignment across thousands of subjects | Cost and token limits with alert thresholdsBudget policies are documented for the Enterprise self-hosted plan; 412 on usage limit, 429 on rate limit |
| Cost tracking & reporting | 8 breakdownsOrganization-hierarchy report rolls usage up the org tree; FinOps usage endpoints on the Management API | Yes |
| LDAP / OIDC identity sync | LDAP/AD + OIDC (Keycloak) identity-source syncUsers, groups, and roles imported as consumers — run history, reconcile preview; API Clients are typed machine identities | OIDC / SAML 2.0 + SCIM (Enterprise)No native LDAP — docs route it through Azure AD Connect or the Okta LDAP Agent |
| RBAC / role-based access | 3 asset categories, 4 AI roles | RBAC from the Production plan; advanced on Enterprise |
| Protocol Gateways | ||
| MCP gateway | First-class proxy + governanceDrift detection, quotas, argument constraints | MCP Gateway — registry + OAuthTool-level access control, MCP guardrails before and after execution, per-tool rate limits |
| A2A (Agent2Agent) gateway | First-class proxyTask lifecycle, streaming relay | Agent Gateway — A2A agentsAgent registry and proxy with skill-level access control; task lifecycle and quota governance not documented |
| Prompt Management & Observability | ||
| Prompt templates / decorators | Decorators + 9 responsible-AI presets + gateway-expand | Prompt Engineering Studio — versioning, labels, partials |
| Tracing / logging | AI Trace — DAG, replay, timeline | Trace / log panel |
| Prometheus / OpenTelemetry | Prometheus + OTel GenAI semantic conventions | Prometheus + OTel exportDocumented for the Enterprise / self-hosted gateway; full-log OTel export is experimental |
| Enterprise deployment model | Save≠deploy, rollback, export/import, APIOps | Official Terraform provider + Helm chartsNo documented promotion of configuration between environments |
| Network Security Fit | ||
| Closed-network / "broker" architecture fit | Single in-network policy point MOATDLP and PII enforced before traffic leaves the segment | Gateway self-hosts; control plane SaaSGateway needs outbound HTTPS to the control plane; anonymized operational metrics leave the network |
Strengths
What does each product do best?
◆ Apinizer advantages
- Fully on-prem: Control plane and data plane in your network — configuration, prompts, traces, and audit included.
- Turkish PII native: TCKN, IBAN-TR, and phone validators with a TR preset — no custom rules.
- Streaming-safe guardrails: Chunk-boundary-safe masking with INLINE/ASYNC/SHADOW execution modes.
- Local RAG + knowledge bases: PDF ingestion, VectorDB, multi-tenant isolation — inside your network.
- A2A first-class: Agent-to-agent proxying with task lifecycle and streaming relay, alongside MCP governance.
- Enterprise identity: LDAP/AD and OIDC (Keycloak) identity-source sync, API Clients as typed machine identities, RBAC across asset categories and AI roles.
- Release discipline: Save≠deploy, explicit deploy/rollback, export/import, APIOps.
- One platform for API + AI: REST, SOAP, gRPC, and LLM traffic under one gateway and one audit trail.
▲ Portkey advantages
- Open-source gateway core: Self-hostable data plane with a permissive license.
- Guardrail + observability focus: A mature, purpose-built LLM operations surface.
- Prompt Engineering Studio: Prompt versioning, labels, partials, and eval templates built in.
- Broad model coverage: 250+ models behind one OpenAI-compatible API.
- Semantic cache: Response reuse across similar prompts, with a vector DB you bring.
- MCP Gateway: Server registry, upstream OAuth, and tool-level access control for MCP.
- Developer experience: Polished docs, SDKs, and a fast adoption path for cloud-first teams.
Decision Guide
Which one, and when?
The closest call in this series. Decide on architecture first, platform scope second.
Choose Apinizer if…
Everything must run — and stay — inside your network
- Security policy rules out a SaaS control plane for AI configuration and telemetry
- You operate in a regulated sector or a closed / segmented network
- Turkish PII (TCKN, IBAN-TR, phone) must be masked natively, including in streams
- RAG and knowledge bases need to stay local with tenant isolation
- A2A and MCP traffic needs the same first-class governance as LLM calls
- You already run — or plan to run — API management and want one platform for both
- Directory-synced identity — LDAP/AD or OIDC — RBAC, and deploy/rollback discipline are requirements
Choose Portkey if…
Cloud-first teams focused on LLM operations
- A hybrid model — self-hosted gateway, SaaS control plane — fits your security posture
- You want a purpose-built LLM ops product rather than a full API platform
- Versioned prompt management with deployment workflow is a priority
- An open-source gateway core matters for your adoption path
- Your compliance scope doesn't require in-country, in-network management surfaces
This document is for comparison purposes. Portkey is a trademark of its respective owner; the assessments here are based on public documentation and vendor statements as of September 2026 and may vary by version/configuration. © Pruvasoft / Apinizer.