New API on Railway

LLM gateway with users, tokens and quotas in front of OpenAI, Claude and Gemini, on Railway.

Official site · License: AGPL-3.0 · 10 Railway templates

Deploy New API on RailwayCompare templates

New API is an open-source LLM gateway and AI asset management system. It puts providers such as OpenAI, Claude and Gemini behind compatible APIs, and adds users, API tokens, quotas, channels and usage logs. It covers similar ground to LiteLLM and One API, which it builds on.

Teams use it to give several people or apps one endpoint and key set, track usage per token, and switch providers without changing client code.

New API is licensed AGPL-3.0, with extra attribution terms if you modify it.

What New API can do

  • OpenAI-, Claude- and Gemini-compatible API endpoints
  • Channels that connect your provider keys
  • Users, API tokens and quotas
  • Usage logs
  • Web console for administration
  • Postgres and Redis backed

What people use it for

  • One internal endpoint for several LLM providers
  • Issuing separate tokens and quotas to teammates or apps
  • Tracking model usage per user
  • Switching providers without changing client code

Running New API on Railway

On Railway, the New API template deploys the official image (pinned by digest), Postgres 18 for users, tokens, channels, quotas and logs, and Redis 8.2 for caches and rate limits, each on a volume. The root account is created on loopback with a generated password before the port opens, and self-registration starts closed. The template reports a measured idle footprint of about 0.2 GB RAM for the whole stack. Model usage is billed by your providers.

New API templates on Railway

New API v1 LLM Gateway (Postgres + Redis)Maintained by Tracklayer
Deploys New API v1.0.0-rc.51, an open-source LLM gateway that puts OpenAI, Claude, Gemini and other providers behind compatible APIs with users, tokens, quotas and usage logs. Runs
3 deployments
Deploy
New API by an independent creator
OpenAI-compatible API gateway for multiple LLM providers
90 deployments
Deploy
Universal API Gateway - New API by an independent creator
Deploy this new API gateway for OpenAI, Gemini, and Claude.
10 deployments
Deploy
new-api-template by an independent creator
new-api LLM gateway on Railway: MySQL+Redis, auto secrets, persistence
9 deployments
Deploy
New API | AI Gateway for OpenAI, Claude and Gemini (One API Fork) by an independent creator
New API LLM gateway: one key for OpenAI, Claude, Gemini; usage and quotas
3 deployments
Deploy
New API | (Just Updated) LLM Gateway Nobody Else Can Claim by an independent creator
Multi-provider LLM gateway; admin seeded at boot, sessions survive redeploy
2 deployments
Deploy
New API LLM Gateway by an independent creator
Self-hosted LLM gateway with a preset root login, Postgres and Redis
2 deployments
Deploy
New API by an independent creator
LLM gateway that unifies many AI providers behind one OpenAI API
1 deployments
Deploy
New API: AI gateway, OpenRouter alternative by an independent creator
Self-hosted LLM gateway: one OpenAI-compatible API for Claude, Gemini, more
1 deployments
Deploy
New API by an independent creator
LLM gateway: one OpenAI-compatible API and keys for many AI providers
0 deployments
Deploy

Tracklayer templates are listed first. Other New API templates follow, ordered by total deployments on Railway. How this works.

Deployment numbers as of 2026-11-20.

Questions about New API

How do I log in?

When the deployment is active, open your domain and sign in as root (NEW_API_ROOT_USERNAME) with NEW_API_ROOT_PASSWORD from the service Variables tab. Then add a channel with your provider key and create an API token.

What drives the cost?

Three services run. Memory is small at rest, but busy gateways with many concurrent streaming responses need more, and the Postgres volume grows with usage logs. Model usage is billed by your provider.

Is data kept across redeploys, and how do I upgrade?

Yes, data is in Postgres on a volume. Change the tag and digest in the Dockerfile and redeploy after reading the release notes; tables migrate on start. Back up Postgres first.

Are there licence or usage restrictions?

New API is AGPL-3.0 with extra attribution terms for modified versions. Connect only provider accounts you are entitled to use and follow each provider's terms. Redis 8 is RSALv2, SSPLv1 or AGPLv3.

What if I use a custom domain?

Add the https URL of your domain to SESSION_COOKIE_TRUSTED_URL, otherwise logins from that domain are signed out when the session refreshes.

Guides

Similar apps

Tracklayer maintains the templates marked as such; New API is a trademark of its owners and this site is not affiliated with them.