広告
Mistral Small 3 is a 24B-parameter language model optimized for low-latency performance across common AI tasks. Released under the Apache 2.0 license, it features both pre-trained and instruction-tuned versions designed...
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-24b-instruct-2501",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)