Mistral AI
Mistral ist das französische Labor hinter der aktuellen Small- und Medium-Linie. Mixtral 8x7B wurde am 30. März 2025 aus der API retiriert. Die Konsole stellt weiterhin auf E-Mail einen Key aus; Free mode und Labs sind der Teil ohne Karte.
Mistral ist das französische Labor hinter der aktuellen Small- und Medium-Linie. Mixtral 8x7B wurde am 30. März 2025 aus der API retiriert. Die Konsole stellt weiterhin auf E-Mail einen Key aus; Free mode und Labs sind der Teil ohne Karte.
Der Kontext reicht bis 256K. Labs-ids (labs-Präfix) sind gratis; mistral-medium-3-5 ist kostenpflichtig. Limits liegen je Organisation in der Konsole, nicht als ein veröffentlichtes „eine Anfrage pro Sekunde“. Zum Ausprobieren Small oder ein Labs-Modell nehmen — nicht zum Ausliefern.
- Kostenlose Modelle
- 12
- Max. Kontext
- 256K
- Gratis-Tarif
- Free mode und Labs
- Anforderung
- E-Mail-Konto, keine Karte
Endpunkt
https://api.mistral.ai/v1MISTRAL_API_KEYPer-org caps in the console; Labs models are free of charge- OpenAI-kompatibel
- Eigenes SDK: Mistral SDK
- Text
- Bild
- Code
Codebeispiele
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.mistral.ai/v1',
apiKey: process.env.MISTRAL_API_KEY
})
const response = await client.chat.completions.create({
model: 'mistral-small-latest',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://api.mistral.ai/v1",
api_key=os.environ["MISTRAL_API_KEY"],
)
response = client.chat.completions.create(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://api.mistral.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-d '{
"model": "mistral-small-latest",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'npm install @mistralai/mistralaiimport { Mistral } from '@mistralai/mistralai'
const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY })
const response = await client.chat.complete({
model: 'mistral-small-latest',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install mistralaiimport os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.chat.complete(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)Wissenswert
- open-mixtral-8x7b wurde am 30. März 2025 eingestellt. mistral-small-latest oder eine labs--id nutzen.
- mistral-medium-3-5 ist ein kostenpflichtiges Modell (256K). Free mode und Labs sind der Teil ohne Karte.
Modelle, die Sie gratis bekommen12
- Mistral Small
mistral-small-latest - Mistral Small 2506
mistral-small-2506 - Mistral Nemo
open-mistral-nemo - Codestral
codestral-latest - Pixtral 12B
pixtral-12b-2409 - Labs Mistral Small
labs-mistral-small - Mistral Embed
mistral-embed - Mistral Moderation
mistral-moderation-latest - Mistral OCR
ocr-latest - Mistral Small 3.1
mistral-small-3.1-24b-instruct - Devstral Small
devstral-small-latest - Magistral Small
magistral-small-latest