Baltor Get started

Endpoints

Mistral AI

A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.

Addresses and facts

Authentication
Authorization: Bearer, with the key in MISTRAL_API_KEY provider documentation, read
Structured output
provider documentation, read
Tool calling
provider documentation, read
Rate limits
Read the page provider documentation, read
Prices
Read the page provider documentation, read
Data retention
Mistral documents which endpoints are eligible for zero data retention and how to request it. Read the page provider documentation, read
Documentation
Unknown
Output limits Baltor recorded
Baltor's own provider client declares an output limit for mistral-large-latest (16,384 tokens, 2026-09-01), mistral-medium-latest (8,192 tokens, 2026-09-01), mistral-small-latest (8,192 tokens, 2026-09-01). Baltor records, read

Harness setup

Replace codestral-latest with the model you want.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "mistral": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Mistral AI",
      "options": {
        "baseURL": "https://api.mistral.ai/v1",
        "apiKey": "{env:MISTRAL_API_KEY}"
      },
      "models": {
        "codestral-latest": {
          "name": "codestral-latest"
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "mistral": {
      "baseUrl": "https://api.mistral.ai/v1",
      "api": "openai-completions",
      "apiKey": "$MISTRAL_API_KEY",
      "models": [
        {
          "id": "codestral-latest"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Mistral AI documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and Mistral AI documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Models it lists

Prices in US dollars per million tokens, input and output, as models.dev, read records them.

ModelInputOutputContextAs of
Codestral (latest) codestral-latest0.300 USD0.900 USD256,000 older than 30 days
Devstral 2 devstral-25120.400 USD2.00 USD262,144 older than 30 days
Devstral 2 devstral-latest0.400 USD2.00 USD262,144 older than 30 days
Devstral Medium devstral-medium-25070.400 USD2.00 USD128,000 older than 30 days
Devstral 2 (latest) devstral-medium-latest0.400 USD2.00 USD262,144 older than 30 days
Devstral Small 2505 devstral-small-25050.100 USD0.300 USD128,000 older than 30 days
Devstral Small devstral-small-25070.100 USD0.300 USD128,000 older than 30 days
Devstral Small 2 labs-devstral-small-25120 USD0 USD256,000 older than 30 days
Magistral Medium (latest) magistral-medium-latest2.00 USD5.00 USD128,000 older than 30 days
Magistral Small magistral-small0.500 USD1.50 USD128,000 older than 30 days
Ministral 3B (latest) ministral-3b-latest0.040 USD0.040 USD128,000 older than 30 days
Ministral 8B (latest) ministral-8b-latest0.100 USD0.100 USD128,000 older than 30 days
Mistral Embed mistral-embed0.100 USD0 USD8,000 older than 30 days
Mistral Large 2.1 mistral-large-24112.00 USD6.00 USD131,072 older than 30 days
Mistral Large 3 mistral-large-25120.500 USD1.50 USD262,144 older than 30 days
Mistral Large (latest) mistral-large-latest0.500 USD1.50 USD262,144 older than 30 days
Mistral Medium 3 mistral-medium-25050.400 USD2.00 USD131,072 older than 30 days
Mistral Medium 3.1 mistral-medium-25080.400 USD2.00 USD262,144 older than 30 days
Mistral Medium 3.5 mistral-medium-26041.50 USD7.50 USD262,144 older than 30 days
Mistral Medium (latest) mistral-medium-latest1.50 USD7.50 USD262,144 older than 30 days
Mistral Nemo mistral-nemo0.150 USD0.150 USD128,000 older than 30 days
Mistral Small 3.2 mistral-small-25060.100 USD0.300 USD128,000 older than 30 days
Mistral Small 4 mistral-small-26030.150 USD0.600 USD256,000 older than 30 days
Mistral Small (latest) mistral-small-latest0.150 USD0.600 USD256,000 older than 30 days
Mistral 7B open-mistral-7b0.250 USD0.250 USD8,000 older than 30 days
Open Mistral Nemo open-mistral-nemo0.150 USD0.150 USD128,000 older than 30 days
Mixtral 8x22B open-mixtral-8x22b2.00 USD6.00 USD64,000 older than 30 days
Mixtral 8x7B open-mixtral-8x7b0.700 USD0.700 USD32,000 older than 30 days
Pixtral 12B pixtral-12b0.150 USD0.150 USD128,000 older than 30 days
Pixtral Large (latest) pixtral-large-latest2.00 USD6.00 USD128,000 older than 30 days
Voxtral Mini (latest) voxtral-mini-latestUnknownUnknownUnknown
Voxtral Mini TTS (latest) voxtral-mini-tts-latestUnknownUnknownUnknown
Voxtral Small (latest) voxtral-small-latest0.100 USD0.300 USD32,000 older than 30 days
GLM-5.2 zai-glm-5-21.40 USD4.40 USD1,000,000 older than 30 days
GLM-5.3 zai-glm-5-31.40 USD4.40 USD1,000,000 older than 30 days