
Deploy New API
OpenAI-compatible API gateway for multiple LLM providers
Just deployed
/var/lib/postgresql/data
New API Frontend
Just deployed
Redis
Just deployed
/data
Deploy and Host New API on Railway
New API is an open-source AI gateway that fronts multiple model providers with one OpenAI-compatible API. It handles routing, tokens, quotas, and provider aggregation.
About Hosting New API
This template runs calciumion/new-api:latest on port 8080, plus Postgres 18 and Redis 8.2.1 on Railway's private network. The app takes SQL_DSN from Postgres and REDIS_CONN_STRING from Redis. Postgres and Redis keep data on volumes. Timezone defaults to Asia/Shanghai.
Common Use Cases
- One endpoint for multiple AI providers
- Team tokens, quotas, and model access
- A self-hosted API proxy or access layer
Dependencies for New API Hosting
calciumion/new-api:latestghcr.io/railwayapp-templates/postgres-ssl:18redis:8.2.1- Persistent volumes for Postgres and Redis
Deployment Dependencies
Why Deploy New API on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying New API on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
New API Frontend
calciumion/new-api:latestRedis
redis:8.2.1