LLM Model Routing
Routing API
Create routing endpoints, destinations and reusable target groups through the QDivZero API.
Configuration resources
A routing endpoint contains the mode and routes. Routes reference deployments, ready-to-use models or target groups, with priority and enabled state.
Create payload
Use short intent descriptions, mark one route as the default in intent mode and validate every destination before enabling production traffic.
API example
Create a priority chat router. Check that the public destination is available; sent traffic can consume balance. This request creates a routing resource.
Set QDIV0_USER_API_KEY to a personal uk_ key. The default account is used; for another account you belong to, add its identifier in the X-Account-ID header.
1curl --fail-with-body \
2 --request POST \
3 "https://api.qdiv0.com/v1/smart-balancers" \
4 -H "Authorization: Bearer $QDIV0_USER_API_KEY" \
5 -H "Content-Type: application/json" \
6 --data '{"name":"router-demo","workload_kind":"chat","enabled":true,"routing_mode":"priority","routes":[{"name":"primary","destination":{"type":"public_model","ref":"deepseek-v4.1-flash"},"priority":1,"enabled":true}]}'