広告
Granite-4.0-H-Micro is a 3B parameter from the Granite 4 family of models. These models are the latest in a series of models released by IBM. They are fine-tuned for long...
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="ibm-granite/granite-4.0-h-micro",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)