Models
Call a ready-to-use model
Select a catalog model through the standard QDivZero inference endpoint.
Use the catalog identifier
Copy the exact identifier shown in the model catalog and pass it in the model field.
model.py
1from openai import OpenAI
2
3client = OpenAI(
4 base_url="https://api.qdiv0.com/v1",
5 api_key="qdiv0_sk_...",
6)
7
8response = client.chat.completions.create(
9 model="public/model-name",
10 messages=[{"role": "user", "content": "Hello"}],
11)
12
13print(response.choices[0].message.content)Supported capabilities
Streaming, function calling, JSON mode and stop sequences depend on the native capabilities of the selected model. QDivZero returns recorded token usage with the response.