---
title: "Deploy FreeLLMAPI"
description: "One OpenAI-compatible API that routes across free LLM provider tiers"
category: "AI/ML"
url: https://railway.com/deploy/freellmapi-1
---

# Deploy FreeLLMAPI

One OpenAI-compatible API that routes across free LLM provider tiers

**[Deploy FreeLLMAPI on Railway](https://railway.com/template/freellmapi-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/freellmapi-1/manifest.json

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

## Template content

### FreeLLMAPI

- **Image:** ghcr.io/tashfeenahmed/freellmapi:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host FreeLLMAPI on Railway

[FreeLLMAPI](https://github.com/tashfeenahmed/freellmapi) is a self-hosted router that puts many LLM providers' free tiers behind a single OpenAI-compatible `/v1` endpoint. You add your own provider keys, and it picks a model for each request and falls over to the next provider when one is rate-limited.

## About Hosting FreeLLMAPI

This template runs the official `ghcr.io/tashfeenahmed/freellmapi:latest` image with a persistent volume at `/app/server/data` (SQLite database). A random `ENCRYPTION_KEY` is generated for you; it encrypts the provider keys stored in the database, so do not change or delete it after first start. On first visit, create the dashboard account (the first visitor becomes the owner, so do it right after the deploy), add your provider keys on the **Keys** page and copy the unified API key from the page header. Point your OpenAI client at `https:///v1` with that key.

## Common Use Cases

- Give coding agents and OpenAI SDK clients one endpoint backed by several free tiers
- Fail over automatically when a provider hits its rate limit
- Track per-key usage against free-tier caps

## Dependencies for FreeLLMAPI Hosting

- One service with a volume; nothing else. You bring your own provider API keys.

### Deployment Dependencies

- [FreeLLMAPI on GitHub](https://github.com/tashfeenahmed/freellmapi)
- [Install docs](https://github.com/tashfeenahmed/freellmapi/blob/main/docs/en/install/01-install.md)

## Why Deploy FreeLLMAPI on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain. Keep the dashboard account password safe: anyone with the unified API key can spend your free-tier quotas.


## 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/freellmapi-1
