Railway

Deploy New API

OpenAI-compatible API gateway for multiple LLM providers

Deploy New API

/var/lib/postgresql/data

Just deployed

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:latest
  • ghcr.io/railwayapp-templates/postgres-ssl:18
  • redis: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

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
116
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
5
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
64