Models / Mistral AI
Model vendor
Mistral AI
Mistral AI is the European lab behind the Large, Magistral, Codestral and Voxtral model lines.
26Models 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
MirAPI accepts the OpenAI wire format, so the official SDKs, LangChain, agent frameworks and your own wrapper all work as they are. Change the base URL and use model IDs as they appear in our catalog:
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="model-name", 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: "model-name", 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": "model-name", "messages": [{"role": "user", "content": "Hello"}] }'
One key covers Mistral AI and 10 more vendors.
1M free tokens to start. No card required.