GET

/v1/schemas/fal/chat/openrouter/router/enterprise

kind inputactivity chathash 524c783f…extracted Nov 21, 2026version currentsource upstream spec ↗

Request body

9 properties · 2 required · 2 $defs
propertytypedescriptionconstraints
model*stringName of the model to use. Charged based on actual token usage.
prompt*stringPrompt to be used for the chat completion
reasoningbooleanShould reasoning be the part of the final answer.default: false
web_search_optionsWebSearchOptionsOptions for the OpenRouter ``openrouter:web_search`` server tool.nullable
max_tokensintegerThis sets the upper limit for the number of tokens the model can generate in response. It won't produce more than this limit. The maximum value is the context length minus the prompt length.n ≥ 1 · nullable
enable_safety_checkerbooleanAuthorized callers may set false to request relaxed screening.default: true
enable_web_searchbooleanGive the model access to real-time web information via OpenRouter's web search server tool. When enabled, the model decides when to search and may search multiple times per request. Search costs are charged in addition to token usage.default: false
system_promptstringSystem prompt to provide context or instructions to the modelnullable
temperaturenumberThis setting influences the variety in the model's responses. Lower values lead to more predictable and typical responses, while higher values encourage more diverse and less common responses. At 0, the model always gives the same response for a given input.0 ≤ n ≤ 2 · default: 1

Types

2 $defs

WebSearchOptionsobject

Options for the OpenRouter ``openrouter:web_search`` server tool.

max_charactersintegerExact maximum characters of content per result (1-100,000). Applies to the Exa engine; ignored with native provider search. Takes precedence over search_context_size when both are set.1 ≤ n ≤ 100000 · nullable
allowed_domainsstring[]Limit results to these domains. Supported by Exa and most native providers (not Google native search).nullable
max_total_resultsintegerMaximum total results across all search calls in a single request. Useful for controlling cost and context size in agentic loops.n ≥ 1 · nullable
user_locationWebSearchUserLocationApproximate user location to bias web search results geographically.nullable
engineenumSearch engine to use. 'auto' uses native provider search when available and falls back to Exa. 'native' prefers the provider's built-in web search (OpenAI, Anthropic, Google, xAI, Perplexity), falling back to Exa for models without native support. 'exa' always…auto | native | exa · default: "auto"
excluded_domainsstring[]Exclude results from these domains. Supported by Exa and some native providers (not OpenAI or Google native search).nullable
max_resultsintegerMaximum results per search call (1-25). Applies to the Exa engine; ignored with native provider search. Defaults to 5.1 ≤ n ≤ 25 · nullable
max_usesintegerMaximum number of searches the model may perform in a single request. Once reached, further search calls return an error result instead of executing. With native provider search, forwarded only to Anthropic; other native providers ignore it.n ≥ 1 · nullable
search_context_sizeenumHow much content to retrieve per result. For Exa: low=5K, medium=15K, high=30K characters per result; when omitted, Exa picks adaptively (~2-4K per result). Ignored with native provider search. Overridden by max_characters when both are set.low | medium | high · nullable

WebSearchUserLocationobject

Approximate user location to bias web search results geographically.

typeconstLocation type. Only 'approximate' is supported."approximate" · default: "approximate"
citystringCity name, e.g. 'San Francisco'.nullable
timezonestringIANA timezone, e.g. 'America/Los_Angeles'.nullable
countrystringTwo-letter country code, e.g. 'US'.nullable
regionstringRegion or state, e.g. 'California'.nullable

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"openrouter/router/enterprise","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}