Back to projects

Railwail

Startup

Railwail is an AI model aggregator that exposes 100+ models from OpenAI, Anthropic, Google, Replicate and others behind a single OpenAI-compatible API. Developers call one endpoint and one key for chat, embeddings, image, audio and video generation, with transparent per-token billing and prepaid credits instead of per-provider contracts.

railwail.com
Started 2024-11Philipp Schmid

Problem

Integrating many AI providers means juggling separate SDKs, API keys, billing accounts and rate limits, which slows down developers and makes it hard to switch or compare models.

Solution

A unified OpenAI-compatible gateway (/v1/chat/completions, /v1/embeddings, /v1/images, /v1/audio, /v1/videos) routes requests to 100+ models from a single key. Users top up prepaid credits via Stripe, track usage in a dashboard, and pay transparent per-token pricing without monthly minimums.

Tech Stack

Next.js 15React 19TypeScriptPrismaPostgreSQLSupabase AuthStripeUpstash RedisTailwind CSSnext-intl

Infrastructure

Self-hosted on multihost2 via manual Docker run (standalone Next.js build). Self-hosted Supabase at supabase.railwail.com for auth, shared multihost-postgres database via Prisma, Upstash Redis for sliding-window rate limiting, Cloudflare Turnstile for captcha, and Stripe live checkout for prepaid credit billing.

Outlook

Expand the supported model catalog and provider routing, add usage analytics and cost-optimization features, and grow the developer audience through SEO content (model pages, leaderboards, migration guides) localized across 37 languages.

AI APILLM GatewayDeveloper ToolSaaS