広告
Mistral Small Creative is an experimental small model designed for creative writing, narrative generation, roleplay and character-driven dialogue, general-purpose instruction following, and conversational agents.
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-creative",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)