Skip to main content
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#overview

ModelRoutingFilter

ModelRoutingFilter defines metadata-based criteria for filtering model candidates. All filters are ANDed — a model must pass every specified filter.

Unset or zero fields do not filter that dimension. Unknown maximum-output metadata currently passes a minimum-output filter, while an empty modality list fails a required-modality check. A passing metadata check is not proof the provider will honor the eventual request.

maxPromptCost and maxCompletionCost compare per-token catalog prices; unknown/unparseable prices currently pass. They do not cap total tokens, tool costs, retries or aggregate provider spend. Before sending paid traffic, confirm which spending limits are actually enforced for your account. Metadata-based capability filters also do not prove that a provider will honor a parameter on the eventual request.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-mincontextlengthminContextLengthstring (int64)OptionalMinimum context window (tokens). Models below this are excluded. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-minmaxcompletiontokensminMaxCompletionTokensstring (int64)OptionalMinimum max completion tokens. Models below this are excluded. Models reporting 0 (unknown) pass through (permissive). Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-requiredinputmodalitiesrequiredInputModalitiesArray of stringOptionalRequired input modalities (e.g., ["image", "audio"]). Model must support ALL listed. Models with empty input_modalities are filtered out (strict).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-requiredoutputmodalitiesrequiredOutputModalitiesArray of stringOptionalRequired output modalities (e.g., ["image"]). Model must support ALL listed. Models with empty output_modalities are filtered out (strict).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-maxpromptcostmaxPromptCostnumber (double) or string (NaN, Infinity, -Infinity)OptionalMaximum cost per prompt token (e.g., 0.000003). 0 = no limit. Unparseable pricing strings pass through (permissive).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-maxcompletioncostmaxCompletionCostnumber (double) or string (NaN, Infinity, -Infinity)OptionalMaximum cost per completion token. 0 = no limit. Unparseable pricing strings pass through (permissive).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-excludemoderatedexcludeModeratedbooleanOptionalExclude models with content moderation enabled.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#request-field-requiredparametersrequiredParametersArray of stringOptionalRequired supported parameters (e.g., ["tools", "response_format"]). Model must support ALL listed.

In responses​

Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-mincontextlengthSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-mincontextlengthminContextLengthstring (int64)OptionalMinimum context window (tokens). Models below this are excluded. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-minmaxcompletiontokensSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-minmaxcompletiontokensminMaxCompletionTokensstring (int64)OptionalMinimum max completion tokens. Models below this are excluded. Models reporting 0 (unknown) pass through (permissive). Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-requiredinputmodalitiesSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-requiredinputmodalitiesrequiredInputModalitiesArray of stringOptionalRequired input modalities (e.g., ["image", "audio"]). Model must support ALL listed. Models with empty input_modalities are filtered out (strict).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-requiredoutputmodalitiesSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-requiredoutputmodalitiesrequiredOutputModalitiesArray of stringOptionalRequired output modalities (e.g., ["image"]). Model must support ALL listed. Models with empty output_modalities are filtered out (strict).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-maxpromptcostSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-maxpromptcostmaxPromptCostnumber (double) or string (NaN, Infinity, -Infinity)OptionalMaximum cost per prompt token (e.g., 0.000003). 0 = no limit. Unparseable pricing strings pass through (permissive).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-maxcompletioncostSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-maxcompletioncostmaxCompletionCostnumber (double) or string (NaN, Infinity, -Infinity)OptionalMaximum cost per completion token. 0 = no limit. Unparseable pricing strings pass through (permissive).
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-excludemoderatedSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-excludemoderatedexcludeModeratedbooleanOptionalExclude models with content moderation enabled.
Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#field-requiredparametersSection ID: DOC-API-MODEL-schema-1ga4tjqqg1#response-field-requiredparametersrequiredParametersArray of stringOptionalRequired supported parameters (e.g., ["tools", "response_format"]). Model must support ALL listed.

Where used​

Section ID: DOC-API-MODEL-schema-1ga4tjqqg1#where-used

ReferenceRelationship
Create an agent profilePOST /api/v1/agent-profiles/create
Get an agent profilePOST /api/v1/agent-profiles/get
Import a prompt libraryPOST /api/v1/agent-profiles/import
List agent profilesPOST /api/v1/agent-profiles/list
Update an agent profilePOST /api/v1/agent-profiles/update
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
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Update default generation configPOST /api/v1/llm/update-default-generation-config
Get the caller's end-user profilePOST /api/v1/enduser/get
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
Update the caller's default generation configPOST /api/v1/enduser/update-generation-config
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
GenerationConfigNested in model
GenerationConfigNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1ga4tjqqg1