Chat
Routing preferences
Most models are served by more than one upstream provider, each trading off differently on speed, price and reliability. You can steer routing with a model ID suffix or a provider object.
Model suffixes
Append a suffix to a full model ID or an alias, such as z-ai/glm-5.3:nitro or glm-5.3:floor. No separate endpoint or configuration is needed.
| Suffix | Effect |
|---|---|
:nitro | Routes to the provider with the highest throughput (fastest). |
:floor | Routes to the lowest-priced provider (cheapest). |
:exacto | Prefers providers with the most reliable tool calling. |
:online | Enables web search. Shorthand for the web plugin in Online mode. Adds the web search fee on paid requests; free-tier models skip web search, so it has no effect there. |
:thinking | Selects the model's reasoning variant, where one exists. |
:extended | Selects an extended-context variant, where one exists. |
Rules
- Billing is unaffected. You are always charged the actual generation cost, so a cheaper (
:floor) or faster (:nitro) provider shows up in the price automatically. - Pinned models ignore routing suffixes. PPQ deliberately routes a few models to a single provider.
:thinkingand:extendedneed a matching variant. On models without one, such as Claude, the request returns ano endpoints founderror. For reasoning on those models, use thereasoningrequest parameter instead.- Unrecognized suffixes are passed through unchanged.
Example
curl https://api.ppq.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "glm-5.3:floor",
"messages": [{"role": "user", "content": "Summarize this batch job output."}]
}'Provider routing
For finer control, send a provider object in the request body, for example "provider": { "zdr": true, "sort": "price" }.
| Parameter | Description |
|---|---|
zdr | true restricts routing to Zero Data Retention endpoints. See Zero data retention. |
data_collection | "allow" or "deny": controls whether providers that may store data can serve the request. |
order, only, ignore | Provider priority, allow and deny lists. |
sort | Prioritize providers by price, throughput or latency. |
max_price, preferred_max_latency, preferred_min_throughput | Price, latency and throughput preferences. |
quantizations, require_parameters, allow_fallbacks | Quality and fallback controls. |
Models with enforced routing
A few models, including some Anthropic and Gemini variants, have required routing rules that PPQ enforces. On those models, order, only and ignore values you send may be overridden, while your zdr preference is kept, with one exception: Claude Opus 4.8 combined with web search drops ZDR, because that search flow is incompatible with the ZDR endpoints.