広告
Amazon Nova Premier is the most capable of Amazon’s multimodal models for complex reasoning tasks and for use as the best teacher for distilling custom models.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="amazon/nova-premier-v1",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)