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

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โ
Models in this article
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โ
AI-generated
AI-generatedStep 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.
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 stringsAfter (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);from openai import OpenAI
client = OpenAI(
api_key=os.environ["RAILWAIL_API_KEY"],
base_url="https://railwail.com/api/v1",
)
resp = client.images.generate(
model="flux-1-1-pro",
prompt="a cyberpunk city at sunset",
size="1792x1024",
)
print(resp.data[0].url)curl https://railwail.com/api/v1/images/generations \
-H "Authorization: Bearer $RAILWAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-1-1-pro",
"prompt": "a cyberpunk city at sunset",
"size": "1792x1024"
}'Audio Transcription
const res = await client.audio.transcriptions.create({
model: "whisper-replicate",
file: fs.createReadStream("./meeting.mp3"),
});
console.log(res.text);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).
API Endpoint Mapping
Popular Replicate Model Mapping
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
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.
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
Models in this article
Live prices from Railwail's current rules, October 7, 2026.
- FLUX 1.1 ProBlack Forest Labs$0.048 per imageTry
- WhisperOpenAIโ $0.0034 per runTry
- MusicGenMetaโ $0.0529 per runTry
- Stable Diffusion 3.5 LargeStability AI$0.078 per imageTry
- AnimateDiffCommunityโ $0.1201 per runTry
- Stable Diffusion XLStability AIโ $0.0015 per runTry
โ 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.