広告
Mistral Small 4 is the next major release in the Mistral Small family, unifying the capabilities of several flagship Mistral models into a single system. It combines strong reasoning from...
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="mistralai/mistral-small-2603",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)