---
title: "Deploy Portkey AI Gateway"
description: "Fast open-source gateway routing requests to 250+ LLMs with one API"
category: "AI/ML"
url: https://railway.com/deploy/portkey-ai-gateway
---

# Deploy Portkey AI Gateway

Fast open-source gateway routing requests to 250+ LLMs with one API

**[Deploy Portkey AI Gateway on Railway](https://railway.com/template/portkey-ai-gateway)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/portkey-ai-gateway/manifest.json

- **Creator:** zer0person's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### Portkey AI Gateway

- **Image:** portkeyai/gateway:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host Portkey AI Gateway on Railway

[Portkey AI Gateway](https://github.com/Portkey-AI/gateway) is a small, fast AI gateway that gives one OpenAI-compatible API in front of many LLM providers, with fallbacks, retries and load balancing.

## About Hosting Portkey AI Gateway

This template runs the official `portkeyai/gateway:latest` image. The gateway stores no secrets: provider API keys are sent by your clients with each request (or via Portkey headers), so nothing needs to be configured at deploy time. Open the public URL for the gateway page and point your OpenAI-compatible client at `https:///v1`.

## Common Use Cases

- One endpoint for OpenAI, Anthropic, Gemini and many other providers
- Automatic fallbacks and retries between models
- Request routing and load balancing for LLM apps

## Dependencies for Portkey AI Gateway Hosting

- One stateless service; nothing else

### Deployment Dependencies

- [Portkey AI Gateway on GitHub](https://github.com/Portkey-AI/gateway)
- [Docker image](https://hub.docker.com/r/portkeyai/gateway)

## Why Deploy Portkey AI Gateway on Railway?

Railway gives you a public HTTPS URL, persistent storage where needed and automatic restarts with no server to maintain. Point your app at the Railway URL instead of the provider URL.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/portkey-ai-gateway
