20 step-by-step guides · OpenAI-compatible

Switch to Railwail

Migration guides for 20 AI provider APIs. Code samples in TypeScript, Python and cURL. Platform hosted in Germany, prepaid balance in USD, one API key for the whole catalog.

Pick your current provider

Each guide covers API endpoint mapping, model mapping, pricing, code samples, and an FAQ.

See all providers
Multi
2 min
Migrate from OpenAI
Change two lines, keep your SDK, reach models from many providers.

From OpenAI

Text
5 min
Migrate from Anthropic
Native Messages API plus OpenAI-compatible path for Claude.

From Anthropic Console

Multi
10 min
Migrate from Google AI
Drop GCP setup. Call Gemini via the OpenAI SDK.

From Google AI / Vertex

Text
10 min
Migrate from Azure OpenAI
No deployments, no api-version, just model IDs.

From Azure OpenAI

Multi
5 min
Migrate from OpenRouter
Aggregator operated from Germany, with a prepaid USD balance.

From OpenRouter

Image
15 min
Migrate from Replicate
Official Replicate models such as FLUX behind one OpenAI-style key.

From Replicate

Text
5 min
Migrate from Together AI
Open-weights Llama and DeepSeek models next to closed-source ones.

From Together AI

Text
5 min
Migrate from Fireworks
Llama and DeepSeek models behind an OpenAI-compatible API.

From Fireworks AI

Text
5 min
Migrate from Groq
Keep the OpenAI-style API and add closed-source models.

From Groq Cloud

Text
5 min
Migrate from Mistral
Claude, GPT-4o and Gemini behind the same OpenAI-style API.

From Mistral La Plateforme

Embedding
10 min
Migrate from Cohere
How Command and Embed calls map to the OpenAI format.

From Cohere

Text
5 min
Migrate from DeepInfra
Same OpenAI-style API, platform hosted in Germany.

From DeepInfra

Multi
10 min
Migrate from Hugging Face
Unify task-specific endpoints under OpenAI Chat Completions.

From Hugging Face Inference

Text
5 min
Migrate from Anyscale
Anyscale Endpoints was discontinued — a path for its users.

From Anyscale Endpoints

Text
5 min
Migrate from Perplexity
How Sonar-style chat calls map to the OpenAI format.

From Perplexity API

Text
5 min
Migrate from xAI
How Grok API calls map to the OpenAI-compatible format.

From xAI Grok Console

Text
5 min
Migrate from DeepSeek
DeepSeek V3 / R1 with the same key; processed by DeepSeek.

From DeepSeek Direct

Audio
15 min
Migrate from ElevenLabs
How ElevenLabs voices map to the OpenAI audio.speech format.

From ElevenLabs

Image
10 min
Migrate from Stability AI
Stable Diffusion 3.5 with JSON API instead of multipart.

From Stability AI

Video
15 min
Migrate from Runway ML
Runway Gen-4 plus Veo 3 and Wan 2.2 — as pollable video jobs.

From Runway ML

Not sure which guide applies?

If your current API speaks OpenAI Chat Completions, the OpenAI guide covers you in two lines. For everything else, the provider-specific guides handle the edge cases (Anthropic Messages format, Cohere rerank, ElevenLabs voice IDs, Azure deployment names, and so on).

Migrate to Railwail | Step-by-Step Guides for 20 AI Providers | Railwail