Prisma AIRS AI Gateway (formerly Portkey)
by Portkey AI
One gateway for many AI models, with backups.
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/pricing2. Commercial use
“Permission is hereby granted, free of charge, to any person obtaining a copy”
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).
github.com/Portkey-AI/gateway/blob/main/LICENSE3. Key & sign-up
“To ensure secure access to Portkey's APIs, authentication is required for all requests.”
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. Keep it on the server; it can reach every provider key stored in the account.
docs.portkey.ai/docs/api-reference/inference-api/authentication.mdChecked 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
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
Developer: 10k recorded logs/month, 3-day log retention
$49 a month
Production $49/month for 100k recorded logs; +$9 per additional 100k requests (up to 3M)
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
| Action | Price |
|---|---|
| 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
10k logged requests a month, logs kept 3 days, metrics 30 days, 3 prompt templates
100k logged requests a month (+$9 per extra 100k up to 3M), logs kept 30 days
No request limit
Up to 5 automatic retries with exponential backoff
From the official docs. portkey.ai/pricing
Key and access
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.
PORTKEY_API_KEYNot 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.
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
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
Self-host the MIT gateway per client, or use a hosted workspace; check the hosted terms in a browser.
“MIT License” source
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
Request timed out (Portkey or provider)
Retry with backoff, or set a longer request timeout.
Budget exhausted (Portkey or provider)
Raise the budget limit or top up the provider account.
Request rate limited (Portkey or provider)
Retry with backoff, or add a fallback target on status 429.
Guardrail checks failed and the request was denied
Change the input or the guardrail; do not blindly retry.
Guardrail checks failed but the request succeeded
Read the guardrail result before showing the answer.
Use it from an agent
4 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes
Checked Nov 13, 2026.
None found
npm install portkey-aipip install portkey-aiInstructions in its docs to check first
“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
Pick LiteLLM for a fully open-source proxy and library you run yourself, with keys, budgets and logging.
Pick OpenRouter when you want one account and one bill for hundreds of models, without bringing your own provider keys.
Pick Vercel AI Gateway if your app runs on Vercel and you want models billed at provider list prices through Vercel.
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.”
Sign up or log in, and copy your Portkey API key from Settings.
From docs.portkey.ai/docs/introduction/make-your-first-request.md
Add your AI provider in the Model Catalog, then install the SDK.
pip install portkey-aiCall 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!"
}
]
}'{"id": "chatcmpl-9758Iw", "object": "chat.completion", "created": 1711475054, "model": "gpt-3.5-turbo", "choices": [{"index": 0, "message": {"role": "assistant", "content": "2 + 2 equals 4."}, "finish_reason": "stop"}], "usage": {"prompt_tokens": 24, "completion_tokens": 15, "total_tokens": 39}, "system_fingerprint": null}Mistakes to avoid
The cache docs say semantic caching needs a vector database and select Enterprise plans.
Provider errors are passed through unchanged.
The docs mark Virtual Keys as deprecated.
The key unlocks the provider keys stored in your Portkey account.
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.