Skip to main content

ProviderPreferences

Routing preferences restricting and ordering the model providers eligible for a request.

Usage profiles​

UsageFields and validation
In requestsView fields
In responsesView fields
In webhook payloadsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
orderArray of stringOptionalPreferred ordering of model providers for routing.
allowFallbacksbooleanOptionalWhether provider routing may fall back beyond the preferred order.
requireParametersbooleanOptionalWhether routing requires providers to support the requested parameters.
dataCollectionstring (DATA_COLLECTION_MODE_ALLOW, DATA_COLLECTION_MODE_DENY) or integer (int32)OptionalProvider data-collection preference used when routing the request.
zdrbooleanOptionalWhether routing requests providers offering zero data retention.
onlyArray of stringOptionalProvider identifiers allowed by the routing preference.
ignoreArray of stringOptionalProvider identifiers excluded by the routing preference.
quantizationsArray of stringOptionalModel quantization formats allowed by the routing preference.
sortstring (PROVIDER_SORT_PRICE, PROVIDER_SORT_THROUGHPUT, PROVIDER_SORT_LATENCY) or integer (int32)OptionalMetric used to order eligible model providers.
maxPriceProviderMaxPriceOptionalUpper price bounds used when selecting a model provider.
enforceDistillableTextbooleanOptionalEmbeddings: enforce distillable text.
preferredMinThroughputPercentileThresholdOptionalDeprioritize providers below this throughput (tokens/sec). Does not exclude — just pushes to end of preference list.
preferredMaxLatencyPercentileThresholdOptionalDeprioritize providers above this latency (ms).

Values of dataCollection​

Provider-routing preference for whether providers may collect submitted data.

ValueNo.FormMeaning
DATA_COLLECTION_MODE_ALLOW1CanonicalAllow routing to providers that may collect submitted data under their policies.
DATA_COLLECTION_MODE_DENY2CanonicalRequest routing only to providers that do not collect submitted data under the routing policy.

Values of sort​

Metric used to order eligible model providers.

ValueNo.FormMeaning
PROVIDER_SORT_PRICE1CanonicalPrefer providers with lower price.
PROVIDER_SORT_THROUGHPUT2CanonicalPrefer providers with higher throughput.
PROVIDER_SORT_LATENCY3CanonicalPrefer providers with lower latency.

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
orderArray of stringOptionalPreferred ordering of model providers for routing.
allowFallbacksbooleanOptionalWhether provider routing may fall back beyond the preferred order.
requireParametersbooleanOptionalWhether routing requires providers to support the requested parameters.
dataCollectionstring (DATA_COLLECTION_MODE_ALLOW, DATA_COLLECTION_MODE_DENY) or integer (int32)OptionalProvider data-collection preference used when routing the request.
zdrbooleanOptionalWhether routing requests providers offering zero data retention.
onlyArray of stringOptionalProvider identifiers allowed by the routing preference.
ignoreArray of stringOptionalProvider identifiers excluded by the routing preference.
quantizationsArray of stringOptionalModel quantization formats allowed by the routing preference.
sortstring (PROVIDER_SORT_PRICE, PROVIDER_SORT_THROUGHPUT, PROVIDER_SORT_LATENCY) or integer (int32)OptionalMetric used to order eligible model providers.
maxPriceProviderMaxPriceOptionalUpper price bounds used when selecting a model provider.
enforceDistillableTextbooleanOptionalEmbeddings: enforce distillable text.
preferredMinThroughputPercentileThresholdOptionalDeprioritize providers below this throughput (tokens/sec). Does not exclude — just pushes to end of preference list.
preferredMaxLatencyPercentileThresholdOptionalDeprioritize providers above this latency (ms).

Values of dataCollection​

Provider-routing preference for whether providers may collect submitted data.

ValueNo.FormMeaning
DATA_COLLECTION_MODE_ALLOW1CanonicalAllow routing to providers that may collect submitted data under their policies.
DATA_COLLECTION_MODE_DENY2CanonicalRequest routing only to providers that do not collect submitted data under the routing policy.

Values of sort​

Metric used to order eligible model providers.

ValueNo.FormMeaning
PROVIDER_SORT_PRICE1CanonicalPrefer providers with lower price.
PROVIDER_SORT_THROUGHPUT2CanonicalPrefer providers with higher throughput.
PROVIDER_SORT_LATENCY3CanonicalPrefer providers with lower latency.

In webhook payloads​

Webhook JSON uses protobuf field names (snake_case).

FieldTypePresenceMeaning
orderArray of stringOptionalPreferred ordering of model providers for routing.
allow_fallbacksbooleanOptionalWhether provider routing may fall back beyond the preferred order.
require_parametersbooleanOptionalWhether routing requires providers to support the requested parameters.
data_collectionstring (DATA_COLLECTION_MODE_ALLOW, DATA_COLLECTION_MODE_DENY) or integer (int32)OptionalProvider data-collection preference used when routing the request.
zdrbooleanOptionalWhether routing requests providers offering zero data retention.
onlyArray of stringOptionalProvider identifiers allowed by the routing preference.
ignoreArray of stringOptionalProvider identifiers excluded by the routing preference.
quantizationsArray of stringOptionalModel quantization formats allowed by the routing preference.
sortstring (PROVIDER_SORT_PRICE, PROVIDER_SORT_THROUGHPUT, PROVIDER_SORT_LATENCY) or integer (int32)OptionalMetric used to order eligible model providers.
max_priceProviderMaxPriceOptionalUpper price bounds used when selecting a model provider.
enforce_distillable_textbooleanOptionalEmbeddings: enforce distillable text.
preferred_min_throughputPercentileThresholdOptionalDeprioritize providers below this throughput (tokens/sec). Does not exclude — just pushes to end of preference list.
preferred_max_latencyPercentileThresholdOptionalDeprioritize providers above this latency (ms).

Values of data_collection​

Provider-routing preference for whether providers may collect submitted data.

ValueNo.FormMeaning
DATA_COLLECTION_MODE_ALLOW1CanonicalAllow routing to providers that may collect submitted data under their policies.
DATA_COLLECTION_MODE_DENY2CanonicalRequest routing only to providers that do not collect submitted data under the routing policy.

Values of sort​

Metric used to order eligible model providers.

ValueNo.FormMeaning
PROVIDER_SORT_PRICE1CanonicalPrefer providers with lower price.
PROVIDER_SORT_THROUGHPUT2CanonicalPrefer providers with higher throughput.
PROVIDER_SORT_LATENCY3CanonicalPrefer providers with lower latency.

Where used​

ReferenceRelationship
Create an agent profilePOST /api/v1/agent-profiles/create
Import a prompt libraryPOST /api/v1/agent-profiles/import
Update an agent profilePOST /api/v1/agent-profiles/update
Append a message without generatingPOST /api/v1/llm/append-message
Create a new conversation threadPOST /api/v1/llm/create-thread
Send a message to a conversationPOST /api/v1/llm/send-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Update default generation configPOST /api/v1/llm/update-default-generation-config
Update the caller's default generation configPOST /api/v1/enduser/update-generation-config
Get an agent profilePOST /api/v1/agent-profiles/get
List agent profilesPOST /api/v1/agent-profiles/list
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Get the caller's end-user profilePOST /api/v1/enduser/get
Generation configurationAPI JSON uses JSON field names (camelCase).
llm.generation_startedWebhook JSON uses protobuf field names (snake_case).
llm.message_publishedWebhook JSON uses protobuf field names (snake_case).
GenerationConfigNested in model
GenerationConfigNested in model
GenerationConfigNested in model

Download the public reference contract.

Document: DOC-API-MODEL-provider-preferences.