Migration Guides

Migrate from Replicate to Railwail

Move from Replicate to Railwail. Railwail mirrors the most popular Replicate image, video and audio models behind one API key.

Railwail2 min read

Created with AI assistance.

Migrate from Replicate to Railwail
01 ยท Key takeaways

TL;DR โ€” Switch in Under 15 Minutes

  • Railwail mirrors the most popular Replicate models โ€” Flux, SDXL, Stable Diffusion 3, Whisper, Bark, MusicGen, WAN-2.2, Veo-3, AnimateDiff
  • Standard OpenAI-shaped API for images (/api/v1/images/generations), audio (/api/v1/audio/*), and video (/api/v1/videos/generations)
  • 200+ models behind one API key
FLUX 1.1 Pro: a cozy reading nook by a rainy window, warm cinematic light, shallow depth of field

Try it on Railwail

Run FLUX 1.1 Pro

Black Forest Labs$0.048/image

Black Forest Labs' flagship text-to-image model. Faster generation than FLUX.1 Pro at higher prompt adherence, with strong photorealism and reliable spatial composition. Runs as a hosted Replicate model.

Real output ยท Prompt: โ€œa cozy reading nook by a rainy window, warm cinematic light, shallow depth of fieldโ€

02

Why Move Off Replicate?

Replicate's strength is the long tail of open-source models. Its weakness is the developer experience: async predictions that you must poll, per-second-of-GPU pricing that is hard to budget, no LLMs (text generation has migrated to other vendors), and cold-start latency on rarely-used models.

Common reasons to migrate: the ability to mix open-source image generation with frontier LLMs (Claude, GPT-4o) under one API key.

Same prompt, real outputs

Two models, one prompt

Prompt: โ€œa cozy reading nook by a rainy window, warm cinematic light, shallow depth of fieldโ€

FLUX 1.1 Pro: a cozy reading nook by a rainy window, warm cinematic light, shallow depth of fieldAI-generated
FLUX 1.1 Pro$0.048/image
FLUX.1 [dev]: a cozy reading nook by a rainy window, warm cinematic light, shallow depth of fieldAI-generated
FLUX.1 [dev]$0.030/image
03

Step 1 โ€” Get a Railwail API Key

Sign up at railwail.com, generate a key. Sign up with Google to get 10 free credits ($0.10), usable 24 hours after sign-up.

04

Step 2 โ€” Replace the Replicate Async Pattern

Replicate's API requires creating a prediction, polling for completion, then fetching the output URL.

Before (Replicate):

import Replicate from "replicate";
const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN });

const output = await replicate.run(
  "black-forest-labs/flux-1.1-pro",
  { input: { prompt: "a cyberpunk city at sunset", aspect_ratio: "16:9" } }
);
// output is an array of URL strings

After (Railwail):

import OpenAI from "openai";
const client = new OpenAI({
  apiKey: process.env.RAILWAIL_API_KEY,
  baseURL: "https://railwail.com/api/v1",
});

const res = await client.images.generate({
  model: "flux-1-1-pro",
  prompt: "a cyberpunk city at sunset",
  size: "1792x1024",
  n: 1,
});
console.log(res.data[0].url);

Audio Transcription

JavaScript
const res = await client.audio.transcriptions.create({
  model: "whisper-replicate",
  file: fs.createReadStream("./meeting.mp3"),
});
console.log(res.text);
05

Step 3 โ€” Video Generation

Railwail exposes Replicate-mirrored video models (Veo-3, WAN-2.2, AnimateDiff) under POST /api/v1/videos/generations. These remain async (video generation takes 30s-2min).

06

API Endpoint Mapping

Replicate endpoint โ†’ Railwail equivalent
ReplicateRailwail equivalentNotes
POST /v1/predictionsPOST /api/v1/images/generationsFor image models
POST /v1/predictions (audio)POST /api/v1/audio/transcriptions or /api/v1/audio/speechWhisper, Bark
POST /v1/predictions (video)POST /api/v1/videos/generationsโ€”
GET /v1/predictions/{id}GET /api/v1/jobs/{id}โ€”
GET /v1/modelsGET /api/v1/modelsFilter by provider=replicate
07
Replicate model โ†’ Railwail model ID
Replicate identifierLive on RailwailRailwail modelCategory
black-forest-labs/flux-1.1-pro$0.048/imageflux-1-1-proflux-1-1-proImage
black-forest-labs/flux-schnellโ€”flux-schnellImage
stability-ai/stable-diffusion-3.5-large$0.078/imagestable-diffusion-3-5-largestable-diffusion-3-5-largeImage
stability-ai/sdxlโ‰ˆ $0.0015/runstable-diffusion-xlstable-diffusion-xlImage
openai/whisperโ‰ˆ $0.0034/runwhisper-replicatewhisper-replicateAudio STT
suno-ai/barkโ‰ˆ $0.0972/runsuno-barksuno-barkAudio TTS
meta/musicgenโ‰ˆ $0.0529/runmusicgenmusicgenMusic
lucataco/animate-diffโ‰ˆ $0.1201/runanimatediffanimatediffVideo
08

Why Railwail Over Replicate

  • Same key unlocks Claude, GPT-4o, Gemini for the rest of your AI stack
  • Built-in playground at railwail.com/models โ€” preview Flux/SDXL prompts in-browser
09

FAQ

What if Railwail does not have the specific Replicate model I use?

Railwail mirrors a selection of popular Replicate models.

Do I lose access to community-built Replicate models?

Long-tail community models that are not mirrored stay on Replicate. You can use both APIs side-by-side โ€” Railwail for production high-volume models, Replicate for experiments.

10

Next Steps

  • Create your Railwail account at railwail.com
  • Generate an API key in Dashboard โ†’ API Keys
  • Replace the replicate package with the openai SDK
  • Read the full API reference at railwail.com/docs
  • Browse all Replicate-mirrored models at railwail.com/models
  • Compare per-call pricing at railwail.com/pricing
Live

Models in this article

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

โ‰ˆ billed by actual tokens or GPU time

Next step

Try FLUX 1.1 Pro 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.

TopicsReplicateMigrationAPIFluxSDXLOpen Source