Mistral
Mistral Medium
mistralai/mistral-medium
This is Mistral AI's closed-source, medium-sided model. It's powered by a closed-source prototype and excels at reasoning, code, JSON, chat, and more. In benchmarks, it compares with many of the flagship models of other companies.
Community
Open Source
Context Window
32,000
Using Mistral Medium with Python API
Using Mistral Medium with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="mistralai/mistral-medium",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)