Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

Prisma AIRS AI Gateway (formerly Portkey)

by Portkey AI

One gateway for many AI models, with backups.

LLM gateways and routers

WebsitePricingGitHub

1. Price

Free tier: Developer: 10k recorded logs/month, 3-day log retention. As reported on the official pricing page, checked Nov 1, 2026.

portkey.ai/pricing

Checked against the maker's official pages, pricing on Nov 1, 2026. Tap a verdict to see its source.How we checkedReport an error

What Prisma AIRS AI Gateway (formerly Portkey) does

Portkey sits between your app and AI model providers such as OpenAI or Anthropic. Your app calls one address, and Portkey passes the request on, retries or switches to a backup model when one fails, and records every request and its cost. Its gateway core is open source, and the hosted service has a free plan.

  • Prisma AIRS AI Gateway (formerly Portkey) is one of 8 APIs in the LLM gateways and routers category on AgentGid.
  • Its cheapest paid plan ($49 a month) is the 1st cheapest of the 3 here with a monthly plan.
  • It is one of 7 that can be started for free.
  • 4 of them ship an official MCP server; Prisma AIRS AI Gateway (formerly Portkey) does not.
  • Its official SDK is the 4th most downloaded in the category (1.5M a week).

What people build with it

One way to call many models

Switch between OpenAI, Anthropic, Google and others by changing one name in your code, instead of learning each company's own setup.

Backup model when the main one is down

If your main AI provider fails or is busy, the same request goes to a second model, so your chatbot keeps answering.

See every AI request and its cost

Look up any past request with its prompt, answer, tokens and cost, and tag requests by user or session to find problems.

Block unwanted answers and retry

Check model answers for banned words or topics and retry failed calls automatically, before your users see a bad reply.

One entry point for your team's tools

Put the tool servers your AI agents use behind one sign-in, with access rules and a log of every call.

Cap AI spending per team Idea

Give each team or project its own provider access with a spending limit, so one runaway script cannot use the whole budget.

Prisma AIRS AI Gateway (formerly Portkey) popularity

1.4M
SDK downloads a week
+22.7% on the 4-week average
17
public agent repos use its SDK
13.4K
GitHub stars, Portkey-AI/gateway
SDK downloads per weeknpm portkey-ai, pypi portkey-ai 1,427,053

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

Developer: 10k recorded logs/month, 3-day log retention

Cheapest plan

$49 a month

Usage price

Production $49/month for 100k recorded logs; +$9 per additional 100k requests (up to 3M)

Plans

Gateway is open source and self-hostable with no request limit. Exceeding the free log limit does not block requests, only logging. Portkey offers an MCP gateway for your servers rather than its own MCP server. Portkey is now PRISMA AIRS AI Gateway, as the portkey.ai homepage says (2026-11-10); the docs keep the Portkey name.

What one action costs

ActionPrice
Production plan per month (100k logged requests)$49
Each extra 100k logged requests on Production (up to 3M)$9
Price history
  • A year of the pricing page in the Internet Archive (7 months): the lowest monthly figure went from $9 (2025-10) to $9 (2026-11).
  • 1 change in our catalog since Oct 9, 2026, last on Oct 9, 2026.

As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy. portkey.ai/pricing

Limits

Developer (free)

10k logged requests a month, logs kept 3 days, metrics 30 days, 3 prompt templates

Production

100k logged requests a month (+$9 per extra 100k up to 3M), logs kept 30 days

Open source (self-hosted)

No request limit

All

Up to 5 automatic retries with exponential backoff

From the official docs. portkey.ai/pricing

Key and access

How it signs in

Portkey API key in the x-portkey-api-key header (JWT also supported); the provider is picked with x-portkey-provider or an @provider/model name.

Environment variable
PORTKEY_API_KEY
Safe in browser code
No, keep it on your server
Card at sign-up

Not stated on the pages we read

Steps only a person can do

  • Sign up for Portkey and copy the API key from Settings. Read PORTKEY_API_KEY from .env on the server (the person pastes it there, not into the chat).
  • Add each AI provider (for example OpenAI) and its key in the Model Catalog. Use the provider slug, such as @openai-prod/gpt-4o, in model names.
  • Upgrade to Production ($49/month) before going live, if logs beyond 10k a month or 3 days are needed. No code change.

Commercial use and your data

The gateway core is open source under the MIT license, so you can run it yourself, also in paid products. The hosted service is a paid product with a free Developer plan; its terms page needs a browser to read.

In a paid app
Yes

The self-hosted gateway is MIT; the hosted service is used on a paid plan for production (terms page needs a browser, see manual_check).

“Permission is hereby granted, free of charge, to any person obtaining a copy” source

redistribute-files
With conditions

You may ship the MIT gateway code if you keep its copyright and license notice.

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” source

client-work
Yes

Self-host the MIT gateway per client, or use a hosted workspace; check the hosted terms in a browser.

“MIT License” source

Keeps your data

Logs are kept 3 days on Developer and 30 days on Production; Enterprise sets its own periods.

“Retention 3 days for Logs, 30 days for metrics” source

Errors to handle

408

Request timed out (Portkey or provider)

Retry with backoff, or set a longer request timeout.

412

Budget exhausted (Portkey or provider)

Raise the budget limit or top up the provider account.

429

Request rate limited (Portkey or provider)

Retry with backoff, or add a fallback target on status 429.

446

Guardrail checks failed and the request was denied

Change the input or the guardrail; do not blindly retry.

246

Guardrail checks failed but the request succeeded

Read the guardrail result before showing the answer.

Use it from an agent

Our agent check

4 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

None found

npm
npm install portkey-ai
PyPI
pip install portkey-ai

Instructions in its docs to check first

The docs say

“npx add-skill portkey-ai/skills”

Installs vendor skills into the person's coding assistant from an unpinned package; ask the person first, and never with --global without consent.

Alternatives

Prisma AIRS AI Gateway (formerly Portkey) This page

Free (open source)Free tier

LiteLLM

Pick LiteLLM for a fully open-source proxy and library you run yourself, with keys, budgets and logging.

Free (open source)Free tier

OpenRouter

Pick OpenRouter when you want one account and one bill for hundreds of models, without bringing your own provider keys.

Free planFree tierOfficial MCP

Vercel AI Gateway

Pick Vercel AI Gateway if your app runs on Vercel and you want models billed at provider list prices through Vercel.

Free planFree tier

All llm gateways and routers APIs

Get started

Tell your AI assistant

“Route my app's AI calls through Portkey: read PORTKEY_API_KEY from .env on the server, pin portkey-ai 2.3.4, use @provider/model names from the Model Catalog, add a fallback config to a second provider, and tag each request with user_id metadata.”

  1. Sign up or log in, and copy your Portkey API key from Settings.

    From docs.portkey.ai/docs/introduction/make-your-first-request.md

  2. Add your AI provider in the Model Catalog, then install the SDK.

    pip install portkey-ai

    From docs.portkey.ai/docs/product/ai-gateway/fallbacks.md

  3. Call a model through Portkey (or point your existing OpenAI client at Portkey).

    from portkey_ai import Portkey
    
    portkey = Portkey(
        api_key="YOUR_PORTKEY_API_KEY",
        provider="@YOUR_PROVIDER"
    )

    From docs.portkey.ai/docs/introduction/make-your-first-request.md

First request

Request from the "What is Portkey" page (system message left out to fit); the response is the chat completion body shown in Portkey's OpenAPI spec (from a batch example). Not run by us.

curl https://api.portkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: YOUR_PORTKEY_API_KEY" \
  -H "x-portkey-provider: YOUR_PROVIDER" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'

Mistakes to avoid

Turning on semantic caching on the free or Production plan because an example shows "mode" "semantic"
Use simple caching, or ask Portkey about an Enterprise plan for semantic caching

The cache docs say semantic caching needs a vector database and select Enterprise plans.

Treating every error from Portkey as a Portkey problem
Check whether the message starts with "Portkey Error"; otherwise it came from the AI provider

Provider errors are passed through unchanged.

Using old Virtual Keys (x-portkey-virtual-key) in new code
Use @provider-slug/model names from the Model Catalog

The docs mark Virtual Keys as deprecated.

Putting the Portkey API key in browser code
Keep it on the server and call Portkey from there

The key unlocks the provider keys stored in your Portkey account.

Sending personal data in prompts with full logging on and no review
Decide what may be logged; use a PII guardrail or Metrics Only mode (Enterprise), or self-host

Full logging stores complete request and response content.

Questions

Is there a free plan?

Yes. The Developer plan is free with 10,000 logged requests a month and 3-day log retention, for prototypes and tests.

What does the paid plan cost?

Production is $49 a month for 100,000 logged requests, plus $9 for each extra 100,000, up to 3 million.

Can I run it myself?

Yes. The open-source gateway runs locally or on your servers; the hosted dashboard and long log storage are the paid part.

Do I need to rewrite my OpenAI code?

No. You can keep the OpenAI SDK and point it at Portkey, or use Portkey's own SDK with the same call shape.