Models / Mistral AI
Model vendor
Mistral AI
Mistral AI is the European lab behind the Large, Magistral, Codestral and Voxtral model lines.
25Models routed
−0%Average vs list price
0Channels serving Mistral AI
Mistral AI models on MirAPI
ModelTypeContextInputOutputCache r / wOff listChannels
Migration
A drop-in replacement for the OpenAI API
We speak the OpenAI wire format: official SDKs, LangChain, agent frameworks and your own wrapper all work as-is. Change the base URL and write model IDs the catalogue way: codestral-2508 becomes mistralai/codestral-2508.
Endpoints
/v1/chat/completionsChat & tool calls/v1/embeddingsText embeddings/v1/audio/transcriptionsSpeech to textimport os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="mistralai/codestral-2508", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "mistralai/codestral-2508", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mistralai/codestral-2508", "messages": [{"role": "user", "content": "Hello"}] }'
One key covers Mistral AI and 10 more vendors.
1M free tokens to start. No card required.