Migrate from Mistral La Plateforme to Railwail
Migration Guides

Migrate from Mistral La Plateforme to Railwail

Switch from Mistral La Plateforme to Railwail. Same Mistral Large, Codestral and Pixtral models, OpenAI-compatible API, EU hosting, EUR billing, 275+ models.

Railwail Teamยท Developer Relations7 min readMay 16, 2026

TL;DR โ€” Switch in Under 5 Minutes

  • Both APIs are OpenAI-compatible โ€” change base URL and key only
  • All Mistral models supported: Large 2, Small, Codestral, Pixtral 12B, Ministral 8B
  • Both Mistral La Plateforme and Railwail host in the EU โ€” full EU residency preserved
  • Plus access to Claude, GPT-4o, Gemini, Llama through the same key
  • EUR billing on both, but unified VAT invoice on Railwail

Why Move Off Mistral La Plateforme?

Mistral is excellent for EU-resident inference and competitive open-weight models. The trade-off is catalog scope โ€” La Plateforme only hosts Mistral's own models. If you want to A/B against Claude or GPT-4o, you need a second account, second SDK, and second billing relationship. Railwail keeps the EU residency and adds the rest of the market.

Step 1 โ€” Get a Railwail API Key

Sign up at railwail.com and generate a key.

Sponsored

Access 100+ AI Models with One API Key

GPT-4o, Claude, Gemini, Llama, Flux, DALL-E and more โ€” all through a single, OpenAI-compatible endpoint. No more juggling multiple providers.

Step 2 โ€” Change Base URL

TypeScript / JavaScript

Before (Mistral SDK):

import { Mistral } from "@mistralai/mistralai";

const mistral = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });

const res = await mistral.chat.complete({
  model: "mistral-large-2411",
  messages: [{ role: "user", content: "Hello" }],
});
After (Railwail via OpenAI SDK):
import OpenAI from "openai";

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

const res = await client.chat.completions.create({
  model: "mistral-large-2411",
  messages: [{ role: "user", content: "Hello" }],
});

Python

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RAILWAIL_API_KEY"],
    base_url="https://api.railwail.com/v1",
)

resp = client.chat.completions.create(
    model="mistral-large-2411",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

cURL

curl https://api.railwail.com/v1/chat/completions \
  -H "Authorization: Bearer $RAILWAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-large-2411",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

API Endpoint Mapping

Mistral endpoint โ†’ Railwail equivalent

Mistral La PlateformeRailwailNotes
POST /v1/chat/completionsPOST /v1/chat/completionsIdentical
POST /v1/fim/completionsPOST /v1/completions (Codestral)Fill-in-the-middle code
POST /v1/embeddingsPOST /v1/embeddingsmistral-embed
POST /v1/moderationsPOST /v1/moderationsmistral-moderation
POST /v1/agents/completionsPOST /v1/chat/completionsUse system prompt with tools
GET /v1/modelsGET /v1/models275+ models

Model Mapping

Mistral model โ†’ Railwail

Mistral La PlateformeRailwailNotes
mistral-large-2411mistral-large-2411Flagship
mistral-large-latestmistral-largeAlways points to latest
mistral-small-latestmistral-smallCost-efficient
mistral-medium-3mistral-medium-3Mid-tier
pixtral-large-latestpixtral-largeVision flagship
pixtral-12b-2409pixtral-12bSmaller vision
codestral-2501codestral-2501Code generation
ministral-8b-2410ministral-8bEdge / on-device size
mistral-embedmistral-embedEmbeddings
mistral-moderation-latestmistral-moderationContent moderation

Sponsored

Test Any AI Model Instantly

Our built-in playground lets you compare models side by side. Find the perfect model for your use case in minutes, not days.

Pricing Comparison (per 1M tokens, May 2026)

Same Mistral model, Railwail in EUR

ModelMistral direct (EUR)Railwail (EUR)Notes
mistral-large-2411 inputEUR 2.00EUR 2.00Same
mistral-large-2411 outputEUR 6.00EUR 6.00Same
mistral-small inputEUR 0.20EUR 0.20Same
mistral-small outputEUR 0.60EUR 0.60Same
pixtral-large inputEUR 2.00EUR 2.00Same
codestral-2501 inputEUR 0.30EUR 0.30Same
codestral-2501 outputEUR 0.90EUR 0.90Same
mistral-embedEUR 0.10EUR 0.10Same

Why Railwail Over Mistral La Plateforme

  • Unified VAT invoice covering Mistral + all other model providers
  • Single API key โ€” one fewer credential to rotate
  • OpenAI-compatible API โ€” drop the @mistralai/mistralai SDK
  • Access to closed-source frontier models (Claude, GPT-4o, Gemini) for A/B
  • Built-in playground for cross-model comparison
  • Same EU residency Mistral La Plateforme provides

FAQ

Is data residency preserved?

Yes. Calls to Mistral models route to Mistral's EU infrastructure via Railwail's EU gateway. End-to-end EU residency is maintained.

Is fill-in-the-middle for Codestral supported?

Yes. POST /v1/completions with the codestral-2501 model and the prefix/suffix params triggers FIM mode.

Does the Pixtral vision API work?

Yes. Pass content as an array with text and image_url blocks (OpenAI vision schema). Railwail converts internally.

What about the Mistral Agents API?

Stateful agents (with built-in retrieval) are Mistral-proprietary. For equivalent behaviour on Railwail, use chat.completions with your own retrieval step and the tools array.

Are batch endpoints available?

Yes. POST /v1/batches accepts the OpenAI batch format for any Mistral model, 50% discount on async.

Sponsored

Pay Only for What You Use

Transparent per-token pricing with no monthly minimums. Start with free credits and scale as you grow.

Next Steps

  • Sign up at railwail.com
  • Generate an API key
  • Drop @mistralai/mistralai and use the OpenAI SDK
  • Update baseURL and apiKey
  • Read the reference at railwail.com/docs
  • Browse Mistral models at railwail.com/models?provider=mistral
  • Compare pricing at railwail.com/pricing

Railwail Team

Developer Relations

The Railwail team writes integration guides for developers migrating from single-provider AI APIs to a unified multi-model platform.

Tags:
Mistral
Migration
La Plateforme
Codestral
Pixtral
EU AI