# NeoAI vs Portkey: API gateway management versus in-VPC step-level delegation Published: 2026-10-25 | NeoAI (https://recipes.neoai.solutions/vs/portkey/) > Portkey is an edge AI gateway managing API keys, rate limits, virtual keys, and request-level load balancing. NeoAI sits behind Portkey inside your VPC: it decomposes multi-step tasks, routes each sub-step to the cheapest model tier that passes your quality bar, and distils reviewer corrections into reusable workflow recipes. ## NeoAI and Portkey: How They Fit Together Engineering teams frequently ask whether NeoAI is an alternative to Portkey. The answer is that they address two entirely different layers of the enterprise AI stack and are designed to work together. Portkey operates at the network and API edge. It solves the critical operational problems of API key management, enterprise rate limiting, budget guardrails, fallback routing between model providers, and centralized request logging. However, when a complex prompt passes through Portkey, Portkey must route that entire request to a single target model (such as Claude 3.5 Sonnet or GPT-4o). Even if 80% of the work involved in that task is routine parsing and data extraction, the customer pays frontier pricing for every token. ## Where NeoAI Sits in the Pipeline NeoAI deploys inside the customer's private cloud VPC, directly behind Portkey or an equivalent gateway. In your Portkey configuration, you configure NeoAI as the upstream endpoint. When an incoming task arrives, NeoAI's lightweight planning agent decomposes the workload into a directed acyclic graph (DAG) of discrete steps. Simple structured extraction runs on small model tiers. Evaluative scoring runs on mid tiers. Only ambiguous judgment or costly edge cases run on frontier models. If an output fails a step-level rubric or schema check, NeoAI escalates that single step to a higher model tier automatically. The user and the calling application receive a verified result, never an unhandled error. ## Commercial Model: Gainshare vs SaaS Portkey charges traditional SaaS fees based on request volume and platform seats. NeoAI operates on a pure gainshare model: a free two-week audit measures your baseline spend and rework hours, followed by a pilot on your own evaluation set. If NeoAI does not measure verified savings on your workload, you pay no fee. ## Frequently Asked Questions ### Do I replace Portkey with NeoAI? No. NeoAI is designed to sit behind Portkey. You keep Portkey for API key governance, provider load balancing, and edge caching. In your app or Portkey config, you simply route upstream requests through NeoAI in your VPC. ### Why can't Portkey optimize step-level model costs? Portkey sees requests as atomic units passing through its gateway proxy. It cannot decompose an prompt into discrete sub-steps, run assertions against rubric gates, or escalate individual failed sub-steps without failing the whole request. ### How do the pricing models differ? Portkey charges per request or enterprise subscription for gateway infrastructure. NeoAI operates purely on gainshare: you pay a share of measured savings against a verified baseline on your own evaluation tasks. No savings, no fee. ## Canonical URL https://recipes.neoai.solutions/vs/portkey/