Migration Guides

Migrate from DeepInfra to Railwail

Switch from DeepInfra to Railwail. Same OpenAI-compatible API, 200+ models on one key.

Railwail1 min read

Created with AI assistance.

Migrate from DeepInfra to Railwail
01 ยท Key takeaways

TL;DR โ€” Switch in Under 5 Minutes

  • DeepInfra is already OpenAI-compatible
  • Image, audio, embeddings โ€” all supported
  • Plus closed-source Claude, GPT-4o, Gemini behind the same key

Try it on Railwail

Run Whisper

OpenAIโ‰ˆ $0.0034/runBilled by actual usage

OpenAI's Whisper running on Replicate. General-purpose speech recognition trained on 680k hours of multilingual audio. Transcribes and translates 99 languages, robust to accents and background noise, and outputs plain text, segments, or word-level timestamps.

02

Why Move Off DeepInfra?

DeepInfra is competitive on price for hosted open-source models. The trade-offs: no closed-source frontier models, and a smaller image / audio catalog than Railwail.

03

Step 1 โ€” Get a Railwail API Key

Sign up at railwail.com and generate a key.

04

API Endpoint Mapping

DeepInfra endpoint โ†’ Railwail equivalent
DeepInfraRailwailNotes
POST /v1/openai/chat/completionsPOST /api/v1/chat/completionsIdentical
POST /v1/openai/embeddingsPOST /api/v1/embeddingsIdentical
POST /v1/inference/{model}Use OpenAI-shaped endpointsLegacy DeepInfra path
POST /v1/openai/audio/transcriptionsPOST /api/v1/audio/transcriptionsWhisper
POST /v1/openai/images/generationsPOST /api/v1/images/generationsFlux, SDXL
GET /v1/openai/modelsGET /api/v1/models200+ models
05

Model Mapping

DeepInfra model โ†’ Railwail
DeepInfraLive on RailwailRailwailNotes
deepseek-ai/DeepSeek-V3$0.36/1M indeepseek-v4-flashdeepseek-v4-flashSuccessor
deepseek-ai/DeepSeek-R1$1.584/1M indeepseek-v4-prodeepseek-v4-proSuccessor
black-forest-labs/FLUX-1-schnell$0.0036/imageflux-1-schnellflux-schnellImage
stabilityai/sd3.5-large$0.078/imagestable-diffusion-3-5-largestable-diffusion-3-5-largeImage
06

Why Railwail Over DeepInfra

  • Same OpenAI-compatible API
  • Adds closed-source models (Claude, GPT-4o, Gemini)
  • Built-in playground at railwail.com/models
  • Per-key rate limits and spend caps
07

FAQ

What about DeepInfra's deploy-your-own-model feature?

Custom model deployments are not supported on Railwail. Keep them on DeepInfra and use Railwail for the standard catalog.

Does the embedding API work the same?

Yes. POST /api/v1/embeddings accepts identical request shapes for OpenAI embedding models.

Are streaming responses supported?

Yes. Standard OpenAI SSE stream chunks.

08

Next Steps

  • Sign up at railwail.com
  • Generate an API key
  • Update baseURL to https://railwail.com/api/v1
  • Switch model IDs to Railwail short slugs
  • Read the reference at railwail.com/docs
  • Compare pricing at railwail.com/pricing
Live

Models in this article

Live prices from Railwail's current rules, October 7, 2026.

Free trial: sign in with Google for 10 credits, usable 24 hours after sign-up, for runs up to 2 credits each. โ‰ˆ billed by actual tokens or GPU time

Next step

Try Whisper on Railwail

Sign in with Google for 10 free credits (usable 24 hours after sign-up, runs up to 2 credits), or top up from $5.00. Unused balance does not expire.

TopicsDeepInfraMigrationLlamaOpen SourceAPI