Getting started
Quickstart
Deploy a compatible model and send the first request from the OpenAI SDK.
1. Create an API key
Create a key in the platform and store it in your secret manager. The complete value is shown only once.
terminal
1export QDIV0_API_KEY="qdiv0_sk_..."2. Launch a model
Choose a compatible model from Hugging Face or another supported source. QDivZero validates its requirements, finds suitable capacity and prepares the runtime and endpoint.
3. Send a request
Use the serving name configured for the deployment as the model identifier.
quickstart.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="your-serving-name",
10 messages=[{"role": "user", "content": "Hello"}],
11)
12
13print(response.choices[0].message.content)