Using a model
Any OpenAI-compatible client works. The model id is the alias — the
lowercase string under each name above.
from openai import OpenAI
client = OpenAI(
base_url="https://api.claudcli.com/v1",
api_key="sk-your-key-here",
)
response = client.chat.completions.create(
model="Haiku 4.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Parameter reference, streaming and error handling are in the
documentation. What limits apply, if any, are listed
there too — by default there are none, and a request stops only when the
token balance does.