広告
Amazon Nova Micro 1.0 is a text-only model that delivers the lowest latency responses in the Amazon Nova family of models at a very low cost. With a context length...
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-micro-v1",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)