Summarize this article with:
- An LLM gateway gives campus applications one API for many AI models. Some gateways also consolidate billing into one credit balance; others use the university's existing provider accounts.
- For universities, the deciding features are not model counts. They are budgets per course or lab, rules on which models students can call, identity integration (SSO), what happens to student data, and whether finance can buy it.
- Hosted gateways (Eden AI, Portkey, OpenRouter, Cloudflare AI Gateway) are the fastest to start. Self-hosted gateways (LiteLLM, MindRouter) let central IT operate everything, and several universities run their own: Carnegie Mellon and the University of Rhode Island document gateways built on LiteLLM.
- A direct provider API is still the better choice when a course needs a single model and the university already has a contract with that provider.
- Start with a pilot: one course and one lab, a capped key each, and a short list of tests (budget reached, forbidden model, usage export, SSO).
A buyer’s guide based on documentation reviewed in November 2026. Disclosure: Eden AI publishes this guide. Product facts come from each vendor's official pages, listed with their access dates in the Sources section, and we say where another option fits better. When a feature is not on a vendor's public pages, we write "not documented", which does not mean the feature does not exist.
Which LLM gateway fits your university?
These are use-case recommendations, not an overall ranking.
- Eden AI: one credit balance for about 1,000 models from 80+ providers, with a spending cap per key and cost by tag for each course and lab.
- Portkey (Prisma AIRS AI Gateway): US institutions that want to buy through Internet2, with guardrails and detailed logging.
- OpenRouter: a wide model catalog with well-documented organization rules (per-key caps, model allowlists).
- LiteLLM: an open-source proxy that central IT runs on its own infrastructure, with its existing provider contracts.
- TrueFoundry: a gateway deployed in your VPC or on-premises, aimed at AI features inside campus systems.
- Cloudflare AI Gateway: campuses already on Cloudflare, with sign-in through Cloudflare Access and their own provider keys.
LLM gateway or LLM router?
An LLM gateway is a single entry point between your applications and the model providers: it authenticates each request, applies your rules (budget, allowed models, region), forwards it and records its cost. An LLM router is the logic that picks which model answers, for example the cheapest one that meets a quality bar, or a fallback when a provider is down. Most gateways include some routing, but routing alone gives you no budgets, roles or usage reports. More on routing in What is LLM routing?.
Eight criteria to compare LLM gateways for universities
Teaching needs capped keys and a short model list, research needs many providers and cost per grant, and central IT, the privacy office and finance need identity, data rules and a way to buy. These eight questions cover all three. Ask them to every vendor, including us.
- Budgets. Can you cap spend per course, lab or student? Does the cap reset (daily, weekly, monthly), and what happens when it is reached? For a university, a course budget is not just a reporting label: ask what enforces the limit, whether concurrent requests can exceed it, and what students see when it is reached.
- Model access rules. Can you allow or deny models and providers per key, member or role?
- Cost attribution. Can you see cost by course, lab, grant or member, and export it over an API?
- Identity. Is SSO with your identity provider available, with directory sync (SCIM) and an audit log? On which plan? Does it protect only the dashboard, or API access too?
- Student data. Are prompts and responses logged, for how long, and who can read them? Is there zero data retention? Is your data used for training? Check the gateway and the model provider separately.
- Region. Can you keep requests in a region, and what happens to a model that is not available there?
- Models and compatibility. Does the catalog cover what courses and labs actually need, including non-LLM models such as OCR or speech-to-text? An OpenAI-compatible API reduces migration work, but test the SDK methods your notebooks use with the gateway's base URL, keys and model IDs.
- Purchasing. Is there a subscription, a fee, a minimum? Can you pay by bank transfer and reference a purchase order? Is there academic pricing?
How the six gateways compare
Facts come from each vendor's official pages (see Sources at the end).
Eden AI
Eden AI is a hosted gateway with an OpenAI-compatible API to about 1,000 models from 80+ providers, including LLMs and expert models such as OCR, speech-to-text and translation. We built a dedicated page for this use case: AI Gateway for Universities.
- Budgets: each API key can carry a spending cap that resets daily, weekly or monthly. When the key reaches $0, it stops until the next period. One key per course or lab is the usual setup.
- Guardrails: Eden AI includes guardrails, among other controls such as model access rules per role, member or key.
- Cost attribution: up to 10 tags per request with the
X-EdenAI-Tagsheader, or default tags on a key. Usage can be filtered by tag, key, member, model or provider, untagged spend stays visible in its own row, and the usage API returns the same figures by period and key. Each response includes the cost of the request. - Identity and roles: Manager, Billing and Member roles, plus custom roles. SSO with Okta, Azure AD or WorkOS, SCIM and an audit log are available on request (Advanced plan).
- Data: zero data retention and no training on your data by default. On the EU endpoint, requests for models unavailable in the EU return HTTP 451 and consume no credits. Eden AI holds SOC 2 and ISO 27001.
- Purchasing: provider prices plus a 5.5% platform fee on credits, no subscription. There is no academic discount. Credits can be bought through a quote in euros or US dollars that carries your purchase order reference, paid by card or bank transfer.
- Best for: universities that want many providers under one contract, one credit balance, and a budget for every course and lab.
- Watch out: a self-hosted version is not documented, and SSO needs a setup step with the team.
Portkey (now Prisma AIRS AI Gateway)
Portkey is the gateway vendor with the most explicit higher-education page. Palo Alto Networks completed its acquisition of Portkey on 29 May 2026, and Portkey's site now says "Portkey is now PRISMA AIRS AI Gateway".
- Education offer: Portkey's page "Manage GenAI access in your university" lists routing to "1,600+ models", role-based access control, department-level budgets, rate limits, institution-wide guardrails and detailed logs of prompts, responses, latency, cost and errors.
- Procurement: Portkey states that it is "an official AI gateway provider for Internet2", with pre-negotiated terms, peer-reviewed service evaluations and shared governance frameworks. For US institutions in Internet2, this can shorten procurement.
- Tools: integrations with Claude Code, LibreChat and Open WebUI are listed, which matters if your campus chat interface runs on one of them.
- Deployment: hosted, or deployed in your private cloud.
- Best for: US universities that want a vetted procurement path through Internet2 and strong guardrails.
- Watch out: Portkey documents prompt and response logging. Before enabling student traffic, confirm whether content logging is on by default, how long logs are retained and who can access them (ask the same of every vendor, Eden AI included). Public academic pricing outside Internet2 is not documented.
OpenRouter
OpenRouter is a hosted, OpenAI-compatible gateway with a large model catalog and well-documented organization features.
- Budgets and rules: organizations share one credit pool. Each API key can have its own credit cap, and "guardrails" add a budget limit that resets daily, weekly or monthly, plus model and provider allowlists and zero data retention enforcement, assigned to members or keys.
- Region: in-region routing through
eu.openrouter.aiis included on Business and Enterprise plans. - Identity: SSO (SAML) and SCIM are available on Enterprise plans.
- Pricing: provider list prices, with a fee on credit purchases of 5.5% on Standard and 8% on Business; Enterprise pricing is set by contract.
- Payment: cards, AliPay and crypto on Standard and Business; invoicing and purchase orders through sales on Enterprise.
- Best for: labs and student projects that want a wide catalog quickly.
- Watch out: OpenRouter documents a "known limitation": in an organization, usage metadata (model, cost, timing) of all members is visible to all members. Think about that before putting a whole class in one organization. An education offer is not documented.
LiteLLM (self-hosted)
LiteLLM is an open-source proxy that you run yourself. It is also a common base for university-built gateways: Carnegie Mellon's AI Gateway and the URI ITS LLM Gateway are built on it.
- Budgets: virtual keys with budgets per key, user, team and team member, each with a reset period (
budget_duration). Budgets need a database: on a deployment without one, they are not enforced. - Enterprise license: SSO for the admin UI, audit logs, organization and team admin roles, tag-based budgets and spend reports require a LiteLLM Enterprise license key.
- Contracts: you connect your own provider accounts (for example AWS Bedrock or Azure), so the university keeps its existing agreements.
- Best for: central IT teams with the staff to run a production service, and with existing cloud or provider contracts.
- Watch out: self-hosting makes the university responsible for release verification, patching and incident response. Name an owner before the pilot, and pin the versions you deploy.
TrueFoundry
TrueFoundry offers an AI gateway as part of a broader platform that can run in your VPC, on-premises or air-gapped.
- Education offer: its "AI Gateway for Education" page illustrates student-facing applications inside SIS and LMS environments (enrollment, attendance, help desk), with access to "250+ LLMs", routing with fallbacks, and an MCP gateway for agents.
- Budgets: Budget Limiting V2 (release v0.158.0) supports tenant and team budgets, daily, weekly, monthly, quarterly and lifetime limits, and per-user overrides; team managers can manage their own team's budgets.
- Identity: SSO through identity providers, SCIM and audit logs are documented.
- Best for: IT teams that build AI features into campus systems and want the gateway inside their own infrastructure.
- Watch out: the education page shows SIS and LMS workflows; for teaching, ask for a demonstration of course-level budgets and student access. Pricing is not published on the page ("Book Demo").
Cloudflare AI Gateway
Cloudflare AI Gateway is "available on all plans" and adds analytics, logging, caching, rate limiting, retries and fallbacks in front of the providers you already use.
- Budgets: spend limits block requests with a 429 once a budget is reached, scoped by model, provider or custom metadata such as a user or team, with up to 20 rules per gateway. Cloudflare notes that limits are eventually consistent, so a burst can briefly exceed them.
- Identity: with Cloudflare Access, users sign in through your identity provider before reaching the gateway, and spend can be filtered per authenticated user.
- Billing: bring your own provider keys, or use Unified Billing: credits loaded by card, with a 5% fee on credit purchases and provider rates passed through.
- Best for: universities already on Cloudflare, and teams that want to keep their own provider contracts.
- Watch out: AI Gateway is not compatible with Cloudflare's Regional Services, so EU-only processing is not documented. Purchase orders for credits are not documented.
What university-built gateways teach us
Several universities have built their own gateway. Their public pages show what works on campus.
- Stanford, AI API Gateway: keys are requested through a form, linked to a university expense account (PTA), and limited to the models selected. A maximum monthly budget temporarily disables the key once reached; it resets every 30 days. Stanford's security and privacy offices approved it for High Risk and PHI data, backed by Stanford's own vendor agreements.
- Carnegie Mellon, AI Gateway: built on LiteLLM, with team-based access, team and individual budgets, one consolidated pay-as-you-go invoice, and an internal account code (Oracle string) for cost recovery. Carnegie Mellon's Dietrich College also runs DARE, an open-source "LLM server starter pack" for teaching with Claude, OpenAI and open-source models.
- University of Rhode Island, LLM Gateway: self-hosted, OpenAI-compatible, built on LiteLLM and AWS Bedrock, with per-user keys tied to the URI identity, budget pools for teams and per-model cost reporting.
- University of Idaho, MindRouter: an open-source (Apache 2.0) gateway for self-hosted models on institutional GPUs, presented at PEARC '26, with role-based access control, audit logging and fair-share scheduling across 40 GPUs and more than 64 open-weight models.
The pattern is clear: one key per project, a budget attached to an internal account, and a curated model list. Whatever you choose, make sure it can do these three things.
Direct API, hosted gateway or self-hosted gateway?
Choose a direct provider API when:
- a course or lab needs one model family only;
- the university already has an institutional agreement with that provider;
- nobody needs cross-provider budgets or reports.
Choose a self-hosted gateway (LiteLLM, MindRouter) when:
- IT must operate the gateway itself and has the people to run and patch it;
- you already hold cloud contracts (AWS, Azure, Google) or GPUs, and want everything inside them;
- prompts cannot leave university infrastructure: then the models must also run on approved university infrastructure, as with MindRouter.
Choose a hosted gateway when:
- courses and labs need several providers now, without new contracts;
- finance wants one balance and one invoice, and IT wants budgets per course without running servers;
- you want to start with a pilot this term.
How to run a pilot
A pilot of four to six weeks, or half a term, is usually enough to decide.
- Pick one course and one lab. A course tests scale and budgets; a lab tests model variety and reporting.
- Write the success criteria first. For example: setup time, cost per student per week, number of blocked requests, and whether finance can read the usage report without help.
- Create one key per course and per lab. Give each a spending cap, an allowed model list and default tags such as
course=ml-101. Keep a course key on the server of the course application. If students need direct API access from notebooks, test individual keys and check how their spend counts toward the course budget. - Run the same tests on every shortlisted gateway:: push a key past its budget and check that it stops, including with concurrent requests; call a model outside the allowed list and check that it is refused; if you need a region, call a model that is not available there and check what happens; export usage by key and date range, as you would for a grant report; sign in through your identity provider, then disable a test account and check the dashboard and an existing API key separately.
- Review data handling with your privacy office. What is logged, for how long, who can read it, and whether tags stay free of personal data (use course codes, not student names).
- Check the buying path with finance. Quote, purchase order, invoice, currency, and what happens when the balance runs low.
For research runs, record the model ID, its version when available, the request parameters and the run date: an alias such as latest does not pin a model version.
Here is the tagging part of step 3 with Eden AI and the OpenAI Python SDK. The code sends tags with every request and reads the cost from the response; the key itself, with its cap and allowed models, is created in the dashboard. Tested on 26 November 2026.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.edenai.run/v3",
api_key=os.environ["EDENAI_API_KEY"], # the course's own key, with its spending cap
default_headers={"X-EdenAI-Tags": "course=ml-101,term=spring-2027"},
)
response = client.chat.completions.create(
model="mistral/mistral-small-latest",
messages=[{"role": "user", "content": "Explain overfitting in two sentences."}],
)
print(response.choices[0].message.content)
print(response.cost) # cost of this request, in USDWhen is Eden AI a good fit?
Eden AI fits when a university wants to give courses and labs access to models from many providers through one API, one credit balance and one invoice, with a budget per key, model access rules and cost by tag. For European institutions, there is also an EU endpoint: requests for models unavailable in the EU return HTTP 451 and consume no credits.
It is not the best fit if you need the gateway inside your own infrastructure (look at LiteLLM, MindRouter or TrueFoundry), if you are a US institution that wants to buy through Internet2 (Portkey states it is an Internet2 provider), or if a single provider contract already covers your needs (use that provider's API directly).
To see how courses, labs and budgets are organized in practice, visit our AI Gateway for Universities page.
Frequently asked questions
Do LLM gateways offer academic pricing?
Academic pricing varies by vendor. Eden AI does not offer an academic discount: universities pay provider prices plus a 5.5% platform fee on credits, with no subscription, in euros or US dollars. Portkey documents pre-negotiated terms through Internet2, which is not a published academic discount. Academic pricing is not documented on the public pages of OpenRouter, Cloudflare AI Gateway or TrueFoundry. When comparing offers, include platform fees, the plan needed for SSO, and infrastructure costs for self-hosted options.
Can an LLM gateway use our university SSO?
Usually yes, but check which plan and what SSO protects. Eden AI offers SSO with Okta, Azure AD or WorkOS, SCIM and an audit log on request (Advanced plan). OpenRouter documents SAML SSO and SCIM on Enterprise. LiteLLM documents Enterprise SSO for its admin UI. Cloudflare AI Gateway can sit behind Cloudflare Access, which uses your identity provider. Test whether disabling a campus account also revokes the API keys that person created.
What privacy standards should we check before sending student data through a model API?
Review the gateway and the model provider separately. Check whether prompts and responses are retained and for how long, whether data is used for training, who can read logs, where requests are processed, and which security reports the vendor holds (for example SOC 2 and ISO 27001). Then ask your privacy office which contract and approvals the data requires, including FERPA or GDPR review where applicable: a security report alone does not establish that a given use of student records is permitted. Keep personal data out of request tags and metadata.
Are there free API keys for students?
Eden AI does not offer a free student plan or free student credits. Some gateways offer free models with daily limits, but these change often and may not fit coursework. A department can fund course access instead, with a small weekly cap per course, so students never need a personal billing account. Before assigning coursework, test the cap and decide what happens when it is reached.
Can each course have its own budget?
Yes, with most gateways in this guide. On Eden AI, create one API key per course with a spending cap that resets daily, weekly or monthly; the key stops at $0 until the next period. OpenRouter, LiteLLM, TrueFoundry and Cloudflare AI Gateway also document budgets per key, team or metadata value.
Do request tags limit spending?
On Eden AI, no: tags attribute usage to a course, lab or grant, and the API key's spending cap is what limits spend. Some gateways, such as Cloudflare AI Gateway, can use request metadata in budget rules, so check whether a tag is only a reporting label or also an input to an enforced limit.
Does an EU endpoint cover every model?
No. On Eden AI's EU endpoint, requests for models unavailable in the EU return HTTP 451 and consume no credits. Other gateways handle regions differently: OpenRouter offers in-region routing on Business and Enterprise, and Cloudflare AI Gateway does not document EU-only processing.
Can a university use a purchase order to buy gateway credits?
On Eden AI, yes: request a quote for the amount of credits you need, with your purchase order reference on it, then pay by card or bank transfer. Quotes are issued in euros or US dollars. OpenRouter accepts invoicing and purchase orders on Enterprise through sales. If your university requires invoicing after delivery or specific payment terms, confirm them before ordering: this point often decides the timeline more than any feature.
Sources
All pages accessed on 26 November 2026, unless another date is given.
- Eden AI, Organization management: https://www.edenai.co/organization-management
- Eden AI, Pricing: https://www.edenai.co/pricing
- Eden AI, EU endpoint test (HTTP 451
region_not_allowedfor a model unavailable in the EU) and code example, both run on 26 November 2026 - Portkey, Portkey for Education: https://portkey.ai/for/education
- Palo Alto Networks, completion of the Portkey acquisition (accessed 20 November 2026): https://www.paloaltonetworks.com/company/press/2026/palo-alto-networks-completes-acquisition-of-portkey-to-secure-ai-agents
- OpenRouter, Guardrails: https://openrouter.ai/docs/guides/features/guardrails
- OpenRouter, Organization management: https://openrouter.ai/docs/guides/administration/organization-management
- OpenRouter, API key provisioning: https://openrouter.ai/docs/guides/overview/auth/provisioning-api-keys
- OpenRouter, Pricing and FAQ: https://openrouter.ai/pricing
- LiteLLM, Budgets and rate limits: https://docs.litellm.ai/docs/proxy/users
- LiteLLM, Enterprise: https://docs.litellm.ai/docs/enterprise
- TrueFoundry, AI Gateway for Education: https://www.truefoundry.com/solutions/education
- TrueFoundry, Budget Limiting V2: https://www.truefoundry.com/docs/change-announcements/budget-limiting-v2-v0.158.0
- TrueFoundry, documentation index (identity providers, SCIM, audit logs): https://www.truefoundry.com/docs/llms.txt
- Cloudflare, AI Gateway overview: https://developers.cloudflare.com/ai-gateway/
- Cloudflare, Spend limits: https://developers.cloudflare.com/ai-gateway/features/spend-limits/
- Cloudflare, Unified Billing: https://developers.cloudflare.com/ai-gateway/features/unified-billing/
- Cloudflare, Cloudflare Access for AI Gateway: https://developers.cloudflare.com/ai-gateway/configuration/cloudflare-access/
- Cloudflare, Data Localization Suite compatibility (accessed 20 November 2026): https://developers.cloudflare.com/data-localization/compatibility/
- Stanford University IT, AI API Gateway FAQs: https://uit.stanford.edu/service/ai-api-gateway/faqs
- Carnegie Mellon University, AI Gateway: https://www.cmu.edu/computing/services/ai/tools/ai-gateway/index.html
- Carnegie Mellon University, DARE: https://www.cmu.edu/dietrich/ai/education/dare.html
- University of Rhode Island, ITS LLM Gateway: https://llmgw.its.uri.edu/
- Sheneman, L., "MindRouter: Open-Source LLM Inference Gateway for Institutional AI Sovereignty", PEARC '26, ACM, DOI 10.1145/3785462.3815861: https://verso.uidaho.edu/esploro/outputs/conferencePaper/MindRouter-Open-Source-LLM-Inference-Gateway-for/996984937001851



