Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.
Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with models. Each entry accepts only model. Maximum of 3 entries.
DEPRECATED Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: "fallback" (maps to "model"), "sort" (maps to "none").
A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides max_tool_calls. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.
Minimum array length: 1
A single condition that, when met, halts the server-tool agent loop.
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.
Maximum string length: 256
Response
Preset created or updated successfully.
Response containing the created preset with its designated version.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpenRouter | Documentation","colors":{"primary":"#7624F4","light":"#7624F4","dark":"#C8FF00"},"logo":{"light":"https://mintcdn.com/openrouter-d02e98a0/ksNSeB_K7gD-BUDh/assets/logo-v2-light.svg?fit=max\u0026auto=format\u0026n=ksNSeB_K7gD-BUDh\u0026q=85\u0026s=690e45873843519efe02bcbe45795dac","dark":"https://mintcdn.com/openrouter-d02e98a0/ksNSeB_K7gD-BUDh/assets/logo-v2-dark.svg?fit=max\u0026auto=format\u0026n=ksNSeB_K7gD-BUDh\u0026q=85\u0026s=8ba2f49b11cd9839c37dd03c62537ebd","href":"https://openrouter.ai"},"favicon":"https://mintcdn.com/openrouter-d02e98a0/n3IgkjAMQY8SgOLX/assets/favicon-v2.svg?fit=max\u0026auto=format\u0026n=n3IgkjAMQY8SgOLX\u0026q=85\u0026s=f49800815fcadee8a07dcc093051c2de","appearance":{"default":"dark"},"background":{"color":{"light":"#FCFCFE","dark":"#03080A"}},"navbar":{"links":[{"href":"https://openrouter.ai/models","label":"Models"},{"href":"https://openrouter.ai/benchmarks","label":"Benchmarks"},{"href":"https://openrouter.ai/chat","label":"Chat"},{"href":"https://openrouter.ai/rankings","label":"Rankings"},{"href":"https://openrouter.ai/apps","label":"Apps"},{"href":"https://openrouter.ai/ori","label":"Ori"},{"href":"https://openrouter.ai/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Sign In","href":"https://openrouter.ai/sign-in"}},"seo":{"metatags":{"canonical":"https://openrouter.ai/docs"}},"fonts":{"family":"Plus Jakarta Sans","weight":400},"integrations":{"ga4":{"measurementId":"G-R8YZRJS2XN"},"posthog":{"apiKey":"phc_7ToS2jDeWBlMu4n2JoNzoA1FnArdKwFMFoHVnAqQ6O1","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"openrouter-d02e98a0","hasAudioNarration":false,"actualSubdomain":"openrouter-d02e98a0","customDomains":["openrouter.ai"],"gitSource":{"_id":"6ad7fa92692c7c940ff17a31","type":"github","owner":"openrouterteam","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"collectionId":"857b68c3-cde9-4c7a-b45f-8477fff63b5c","liveDeploymentHistoryId":"6aecd163852e46238472000d","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aecd163852e46238472000d"},"feedback":{"contextualFeedback":{"allowEmail":true},"agentFeedback":true,"issues":false,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed06a81189461718d0f947","clientVersion":"0.0.4071","searchFilterCounts":[{"language":"default","tag":"API Reference","count":303},{"language":"default","tag":"Client SDKs","count":244},{"language":"default","tag":"Docs","count":155},{"language":"default","tag":"Cookbook","count":64},{"language":"default","tag":"Agent SDK","count":42},{"language":"default","tag":"TypeScript SDK","count":40},{"language":"default","tag":"Go SDK","count":39},{"language":"default","tag":"Python SDK","count":39},{"language":"default","tag":"Observability","count":29},{"language":"default","tag":"Features","count":23}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6ad8ee98f69c2f90c2a8cc12","deploymentId":"6a349898c5627d470e2c2ff7","questionText":"How do I get started using decision models like Jev?","status":"active","generatedBy":"manual","createdAt":"2026-10-21T16:55:52.120Z","updatedAt":"2026-10-21T16:55:52.120Z","__v":0}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--inverse: 3 8 10;--inverse-foreground: 252 252 254;--tooltip-background: var(--inverse);--tooltip-foreground: var(--inverse-foreground)}code,pre,pre code,.code-block code,[class*=\"code\"] code{font-family:'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace}::selection{background:rgb(118 36 244 / 0.25)}.dark ::selection,html.dark ::selection{background:rgb(200 255 0 / 0.25);color:inherit}.dark,[data-theme=\"dark\"],html.dark{--primary: 200 255 0;--primary-light: 200 255 0;--primary-dark: 200 255 0;--light-primary: 200 255 0;--primary-foreground: 3 8 10;--inverse: 252 252 254;--inverse-foreground: 3 8 10;--default-border-color: rgb(252 252 254 / 0.14)}#navbar{border-radius:0}#sidebar a[aria-current=\"page\"],nav[aria-label=\"Pages\"] a[aria-current=\"page\"]{border-radius:8px}[data-component-part=\"code-block-root\"]{border-radius:8px}a:not([class]){text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:rgb(0 0 0 / 0.4)}a:not([class]):hover{text-decoration-color:currentColor}.dark a:not([class]),html.dark a:not([class]){text-decoration-color:rgb(255 255 255 / 0.4)}.dark a:not([class]):hover,html.dark a:not([class]):hover{text-decoration-color:currentColor}.nav-tag-pill-text{background:transparent!important;color:rgb(0 0 0 / 0.5)!important;border:1px solid rgb(0 0 0 / 0.2)!important}.dark .nav-tag-pill-text,html.dark .nav-tag-pill-text{background:transparent!important;color:rgb(252 252 254 / 0.5)!important;border:1px solid rgb(252 252 254 / 0.2)!important}.nav-logo{height:1.5rem}.dark nav[aria-label=\"Pages\"] button[aria-expanded] svg.transition-transform,html.dark nav[aria-label=\"Pages\"] button[aria-expanded] svg.transition-transform{color:rgb(252 252 254 / 0.627)}.dark nav[aria-label=\"Pages\"] button[aria-expanded]:hover svg.transition-transform,html.dark nav[aria-label=\"Pages\"] button[aria-expanded]:hover svg.transition-transform{color:rgb(252 252 254)}nav[aria-label=\"Pages\"] button[aria-expanded] svg.transition-transform{width:0.625rem;height:0.625rem}[role=\"tooltip\"][data-side],[data-radix-popper-content-wrapper]>div[data-state=\"delayed-open\"],[data-radix-popper-content-wrapper]>div[data-state=\"instant-open\"]{background-color:rgb(var(--tooltip-background))!important;color:rgb(var(--tooltip-foreground))!important}.callout [data-component-part=\"callout-content\"]>.code-block:first-child{margin-top:0}.callout [data-component-part=\"callout-content\"]>.code-block:last-child{margin-bottom:0}[data-floating-buttons] button{background-color:rgb(241 239 245)}.dark [data-floating-buttons] button,html.dark [data-floating-buttons] button{background-color:rgb(40 38 44)}[data-component-part=\"update-tag\"]{border:1px solid rgb(0 0 0 / 0.2);border-radius:9999px;padding:0.125rem 0.625rem;font-size:0.75rem;line-height:1.25rem;color:rgb(0 0 0 / 0.6)}.dark [data-component-part=\"update-tag\"],html.dark [data-component-part=\"update-tag\"]{border-color:rgb(252 252 254 / 0.2);color:rgb(252 252 254 / 0.6)}#topbar-cta-button svg{display:none}#topbar-cta-button a{padding-right:0.75rem}#topbar-cta-button .bg-primary-dark{background-color:rgb(var(--primary))}.dark #topbar-cta-button .text-white,html.dark #topbar-cta-button .text-white{color:rgb(3 8 10)}.dark #changelog-filters-content button.bg-primary,html.dark #changelog-filters-content button.bg-primary{color:rgb(3 8 10 / 0.9)!important}.changelog-status-badge{margin-left:0.5rem}.changelog-status-badge[data-color=\"gray\"]{border:1px solid rgb(3 8 10 / 0.3)!important}.dark .changelog-status-badge[data-color=\"gray\"],html.dark .changelog-status-badge[data-color=\"gray\"]{border-color:rgb(252 252 254 / 0.4)!important}.mermaid>svg{margin-inline:auto}.support-matrix table{font-size:0.8125rem}.support-matrix td,.support-matrix th{min-width:0;padding-right:0.5rem;white-space:nowrap}.support-matrix th code{padding-left:0.25rem;padding-right:0.25rem;font-size:0.6875rem}.pr-fig,.pr-mini{--pr-ink: #03080a;--pr-muted: rgb(3 8 10 / 0.69);--pr-rule: rgb(3 8 10 / 0.12);--pr-surface: #ffffff;--pr-positive-text: #007544;--pr-negative-text: #bf0024}.dark .pr-fig,.dark .pr-mini{--pr-ink: #fcfcfe;--pr-muted: rgb(252 252 254 / 0.627);--pr-rule: rgb(252 252 254 / 0.14);--pr-surface: #080d0f;--pr-positive-text: #34dfaa;--pr-negative-text: #ff2d55}.pr-fig{margin:1.5rem 0;padding:1rem;overflow-x:auto;container-type:inline-size;border:1px solid var(--pr-rule);border-radius:8px;background:var(--pr-surface)}.pr-fig svg{display:block;width:100%;height:auto}.pr-mini{margin:1rem 0 1.25rem}.pr-mini svg{display:block;max-width:100%;height:auto;margin-inline:auto}.pr-fig svg text,.pr-mini svg text{font-family:inherit;font-size:12px;fill:var(--pr-muted)}.pr-sw{display:inline-block;flex:none;width:12px;height:12px;border-radius:2px}.pr-bg-price{background:#0088fe}.pr-bg-ttft{background:#ffbb28}.pr-bg-speed{background:#7b68ee}.pr-bg-rel{background:#ff2d55}.pr-bg-429{background:#ff8042}.pr-bg-received{background:var(--pr-ink)}.pr-bg-capacity{background:rgb(var(--gray-400))}.pr-fill-ttft{fill:#ffbb28}.pr-fill-speed{fill:#7b68ee}.pr-fill-rel{fill:#ff2d55}.pr-fill-429{fill:#ff8042}.pr-fig .lbl{font-size:13px;fill:var(--pr-ink)}.pr-fig .num{fill:var(--pr-muted);font-variant-numeric:tabular-nums}.pr-fig .strong{fill:var(--pr-ink);font-weight:600}.pr-fig .halo{paint-order:stroke;stroke:var(--pr-surface);stroke-width:4px;stroke-linejoin:round}.pr-fig .axis{stroke:var(--pr-rule);stroke-width:1}.pr-fig .zone{fill:rgb(0 191 111 / 0.12)}.pr-fig .zone-lbl{font-weight:600;fill:var(--pr-positive-text)}.pr-fig .zone-lbl.muted{fill:var(--pr-muted)}.pr-fig .edge{stroke:#00bf6f;stroke-width:1.5;stroke-dasharray:4 3}.pr-fig .edge-curve{fill:none;stroke:#00bf6f;stroke-width:2;stroke-dasharray:5 3}.pr-fig .curve{fill:none;stroke:var(--pr-ink);stroke-width:2.5}.pr-fig .curve-fill{fill:var(--pr-ink);opacity:0.04}.pr-fig .dot{fill:var(--pr-muted);fill-opacity:0.8;stroke:var(--pr-surface);stroke-width:1.5}.pr-fig .dot-in{fill:#00bf6f;stroke:var(--pr-surface);stroke-width:1.5}.pr-fig .got{fill:none;stroke:var(--pr-ink);stroke-width:2}.pr-fig .got-fill{fill:var(--pr-ink);opacity:0.06}.pr-fig .cap{fill:none;stroke:#da70d6;stroke-width:2.5}.pr-fig .real{fill:none;stroke:var(--pr-muted);stroke-width:1.5;stroke-dasharray:5 4}.pr-fig .rate{fill:#ff8042}.pr-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:0.375rem 1rem;margin-top:0.75rem;font-size:12px;color:var(--pr-muted)}.pr-legend span{display:inline-flex;align-items:center;gap:0.375rem}.pr-ln{display:inline-block;width:18px;height:0}.pr-ln-cap{border-top:2.5px solid #da70d6}.pr-ln-real{border-top:1.5px dashed var(--pr-muted)}.pr-table{margin-top:0.875rem;border-top:1px solid var(--pr-rule);font-size:12px}.pr-row{display:grid;grid-template-columns:76px minmax(0, 1fr) 84px;gap:0.5rem;align-items:center;padding:0.375rem 0;border-bottom:1px solid var(--pr-rule)}.pr-head{color:var(--pr-muted);white-space:nowrap}.pr-sub::before{content:\", \"}.pr-name{font-weight:600;color:var(--pr-ink)}.pr-bar{display:flex;height:10px}.pr-bar i{display:block;height:100%}.pr-share{display:flex;align-items:center;gap:0.375rem}.pr-share i{display:block;height:10px;max-width:54px;border-radius:2px;background:var(--pr-muted);opacity:0.5}.pr-share b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--pr-muted)}@media (max-width: 560px){.pr-row{grid-template-columns:76px minmax(0, 1fr) 32px}.pr-share i{display:none}.pr-head{white-space:normal}.pr-sub{display:block}.pr-sub::before{content:none}}@container (max-width: 480px){.pr-fig svg text{font-size:15px}.pr-fig svg .lbl{font-size:16px}}@container (max-width: 400px){.pr-fig svg text{font-size:17px}.pr-fig svg .lbl{font-size:18px}}.pr-mini-row{display:flex;justify-content:center;align-items:center;gap:0.75rem 1.5rem}.pr-mini-row svg{flex:0 1 auto;min-width:0;margin-inline:0}@media (max-width: 640px){.pr-mini-row{flex-wrap:wrap}}.pr-mini .strong-lbl{fill:var(--pr-ink);font-weight:600}.pr-mini .amt{text-anchor:end;font-variant-numeric:tabular-nums}.pr-mini .op{font-size:20px}.pr-mini .paper{fill:var(--pr-surface);stroke:var(--pr-rule);stroke-width:1}.pr-mini .usual{stroke:var(--pr-muted);stroke-width:1;stroke-dasharray:3 3}.pr-mini .sum-line{stroke:var(--pr-ink);stroke-width:1}.pr-mini .price-pill{fill:#0088fe;opacity:0.12}.pr-mini .pill-text{fill:var(--pr-ink);font-weight:600;font-variant-numeric:tabular-nums}.pr-mini .neg-pill{fill:#ff2d55;opacity:0.12}.pr-mini .neg-text{font-size:13px;fill:var(--pr-negative-text);font-weight:600;font-variant-numeric:tabular-nums}.pr-mini .span-stream{fill:var(--pr-muted);opacity:0.3}.pr-mini .span-total{fill:var(--pr-rule)}.pr-mini .extra{opacity:0.45}.pr-mini .bad{fill:none;stroke:#ff2d55;stroke-width:1.5}.pr-mini .tree{fill:none;stroke:var(--pr-muted);stroke-width:1}.pr-mini .brace{fill:none;stroke:var(--pr-muted);stroke-width:1.25}.pr-mini .big-arrow{fill:none;stroke:var(--pr-ink);stroke-width:3}.pr-mini .big-arrow-head,.pr-mini .user-dot{fill:var(--pr-ink)}.pr-factors ul{list-style:none;padding-left:0}.pr-factors li{padding-left:0!important}.pr-factors li::before{display:none}.pr-factors .pr-sw,h3 .pr-sw{margin-right:0.625rem;transform:translateY(1px)}h3 .pr-sw{width:13px;height:13px;transform:translateY(-2px)}.pr-cols{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:0 1.75rem}"}],"page":{"pagePath":"api/api-reference/presets/create-a-preset-from-a-messages-request-body","slug":"/api/api-reference/presets/create-a-preset-from-a-messages-request-body","pageMetadata":{"title":"Create a preset from a messages request body","description":"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /presets/{slug}/messages","href":"/api/api-reference/presets/create-a-preset-from-a-messages-request-body","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. \", _jsx(_components.code, {\n children: \"messages\"\n }), \", \", _jsx(_components.code, {\n children: \"stream\"\n }), \", \", _jsx(_components.code, {\n children: \"prompt\"\n }), \") are silently ignored.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a preset from a messages request body","description":"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /presets/{slug}/messages","href":"/api/api-reference/presets/create-a-preset-from-a-messages-request-body","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/openrouter-d02e98a0/c1fa764d8c861cbd/anchor-scroll-fix.js","/docs/_mintlify/custom/openrouter-d02e98a0/c43dc2bfe5fa3c92/auth-cta.js"],"openApiReferenceData":{"operation":{"description":"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.","operationId":"createPresetsMessages","parameters":["12149703-ce84-488a-a700-57f8de6655fd"],"requestBody":"1b2da565-e4f2-4ae3-bfb1-a93f102c38f0","responses":{"200":"f5c33ba7-9528-45b1-a0bd-68ecb9f345b6","400":"6e44fdc1-f577-4310-9302-e155573f9149","401":"628b2cdc-8a17-49f2-b4af-0868728bb1bc","403":"5fec8704-cd42-47c8-993e-71068b8c595c","404":"08533f84-3891-4fd6-b090-dc952a68222d","409":"9bc785fb-5023-4792-982f-18902e8e35f8","500":"60027107-ee2f-4112-8b01-d94862783b60"},"security":["217c5a33-2688-458f-a602-462aebf59acb"],"summary":"Create a preset from a messages request body","tags":["Presets"],"method":"post","type":"path","servers":["7075e944-05e2-4e86-8b6c-ac9eb4ffd9f1"],"path":"/presets/{slug}/messages","baseUrlOptions":["https://openrouter.ai/api/v1"],"title":"Create a preset from a messages request body","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"12149703-ce84-488a-a700-57f8de6655fd":{"description":"URL-safe slug identifying the preset. Created if it does not exist.","in":"path","name":"slug","required":true,"schema":{"description":"URL-safe slug identifying the preset. Created if it does not exist.","example":"my-preset","minLength":1,"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"example":{"max_tokens":1024,"messages":[{"content":"Hello!","role":"user"}],"model":"anthropic/claude-4.6-sonnet","system":"You are a helpful assistant."},"schema":{"description":"Request schema for Anthropic Messages API endpoint","example":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-4.5-sonnet-20250929","temperature":0.7},"properties":{"messages":{"oneOf":[{"items":{"description":"Anthropic message with OpenRouter extensions","example":{"content":"Hello, how are you?","role":"user"},"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content","typeLabel":"string | object[]"},"type":{"enum":["content"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"enum":["document"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.0.enabled","typeLabel":"boolean"}},"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.0","typeLabel":"object"},{"properties":{"enabled":{"type":"boolean"}},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations","typeLabel":"object | null"},"context":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.name","typeLabel":"string"},"type":{"enum":["tool_use"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"input":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.input","typeLabel":"any"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","tool_use_id"],"properties":{"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"type":{"enum":["tool_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"content":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","tool_name"],"properties":{"tool_name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2.tool_name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"enum":["search_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"citations":{"properties":{"enabled":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.citations","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","content"],"properties":{"content":{"type":"any","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2.content","typeLabel":"any"},"type":{"enum":["content"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source","typeLabel":"object"},"type":{"enum":["document"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.0.enabled","typeLabel":"boolean"}},"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.0","typeLabel":"object"},{"properties":{"enabled":{"type":"boolean"}},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations","typeLabel":"object | null"},"context":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content","typeLabel":"string | object[]"},"is_error":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error","typeLabel":"boolean"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","thinking","signature"],"properties":{"signature":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.signature","typeLabel":"string"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.thinking","typeLabel":"string"},"type":{"enum":["thinking"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type","data"],"properties":{"data":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.data","typeLabel":"string"},"type":{"enum":["redacted_thinking"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["type","id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.name","typeLabel":"string"},"type":{"enum":["server_tool_use"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control","typeLabel":"object"},"input":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.input","typeLabel":"any"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["type","tool_use_id","content"],"properties":{"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].encrypted_content","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["web_search_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].url","typeLabel":"string"},"page_age":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age","typeLabel":"string | null"}},"required":["type","encrypted_content","title","url"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0","typeLabel":"object[]"},{"type":"object","required":["type","error_code"],"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_tool_result_error"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content","typeLabel":"object[] | object"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"type":{"enum":["web_search_tool_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content","typeLabel":"object[]"},"source":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.source","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.title","typeLabel":"string"},"type":{"enum":["search_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control","typeLabel":"object"},"citations":{"properties":{"enabled":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.citations.enabled","typeLabel":"boolean"}},"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.citations","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control","typeLabel":"object"},"encrypted_content":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.content.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.content","typeLabel":"object"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.tool_use_id","typeLabel":"string"},"type":{"enum":["advisor_tool_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_forecast","type":"tool_reference"},"type":"tool_addition"},"properties":{"tool":{"oneOf":[{"type":"object","required":["type","name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0.name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","name","server_name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.name","typeLabel":"string"},"server_name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.server_name","typeLabel":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","server_name"],"properties":{"server_name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2.server_name","typeLabel":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","definition"],"properties":{"definition":{"oneOf":[{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["name","input_schema"],"example":{"description":"Get the current weather for a city.","input_schema":{"properties":{"city":{"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather"},"properties":{"input_schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.additionalProperties","typeLabel":"any"},"properties":{"type":{"enum":["object"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.properties","typeLabel":"any"},"required":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required","typeLabel":"string[] | null"}},"required":["type"],"type":"object","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.name","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.defer_loading","typeLabel":"boolean"},"description":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.description","typeLabel":"string"},"strict":{"type":"boolean","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.strict","typeLabel":"boolean"},"type":{"enum":["custom"],"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["bash"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_20250124"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["str_replace_editor"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["text_editor_20250124"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["web_search"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20250305"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.type","typeLabel":"enum\u003cstring>"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["web_search"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20260209"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_callers","typeLabel":"enum\u003cstring>[]"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition","typeLabel":"object"},"type":{"enum":["tool_definition"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool","typeLabel":"object"},"type":{"enum":["tool_addition"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"Removes a tool from the conversation mid-conversation without invalidating the prompt cache. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_weather","type":"tool_reference"},"type":"tool_removal"},"properties":{"tool":{"oneOf":[{"type":"object","required":["type","name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0.name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","name","server_name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.name","typeLabel":"string"},"server_name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.server_name","typeLabel":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","server_name"],"properties":{"server_name":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2.server_name","typeLabel":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool","typeLabel":"object"},"type":{"enum":["tool_removal"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:shell` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.content.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.content","typeLabel":"object"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files","typeLabel":"object[]"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"Output of a sandbox-executed `openrouter:bash` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.content.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.content","typeLabel":"object"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files","typeLabel":"object[]"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"Router-owned deferred discovery result for continuation.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"openrouter_tool_search_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.content.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.content","typeLabel":"object"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content","typeLabel":"string | object[]"},"role":{"enum":["user","assistant","system"],"type":"string","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"clear_at":{"oneOf":[{"enum":["next_user_message","never",null],"example":"next_user_message","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["next_user_message","never",null],"example":"next_user_message","type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at","typeLabel":"enum\u003cstring> | null"},"output_config":{"oneOf":[{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort","typeLabel":"enum\u003cstring> | null"}},"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string"},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null"}]}},"type":"null","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].output_config","typeLabel":"object | null"}},"required":["role","content"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"messages.oneOf.0","typeLabel":"object[]"},{"items":{"description":"Anthropic message with OpenRouter extensions","example":{"content":"Hello, how are you?","role":"user"},"properties":{"clear_at":{"oneOf":[{"enum":["next_user_message","never",null],"example":"next_user_message","type":"string"},{"enum":["next_user_message","never",null],"example":"next_user_message","type":"null"}]},"content":{"oneOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"array"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null"}]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string"},"type":{"enum":["base64"],"type":"string"}}},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}}}]},"type":{"enum":["image"],"type":"string"}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean"}},"type":"object"},{"properties":{"enabled":{"type":"boolean"}},"type":"null"}]},"context":{"oneOf":[{"type":"string"},{"type":"null"}]},"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["application/pdf"],"type":"string"},"type":{"enum":["base64"],"type":"string"}}},{"type":"object","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string"},"media_type":{"enum":["text/plain"],"type":"string"},"type":{"enum":["text"],"type":"string"}}},{"type":"object","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"array"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null"}]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string"},"type":{"enum":["base64"],"type":"string"}}},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}}}]},"type":{"enum":["image"],"type":"string"}}}]}}]},"type":{"enum":["content"],"type":"string"}}},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}}}]},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["document"],"type":"string"}}},{"type":"object","required":["type","id","name"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"id":{"type":"string"},"input":{"oneOf":[{}]},"name":{"type":"string"},"type":{"enum":["tool_use"],"type":"string"}}},{"type":"object","required":["type","tool_use_id"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"array"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null"}]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string"},"type":{"enum":["base64"],"type":"string"}}},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}}}]},"type":{"enum":["image"],"type":"string"}}},{"type":"object","required":["type","tool_name"],"properties":{"tool_name":{"type":"string"},"type":{"enum":["tool_reference"],"type":"string"}}},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"array"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null"}]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"type":"array"},"source":{"type":"string"},"title":{"type":"string"},"type":{"enum":["search_result"],"type":"string"}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean"}},"type":"object"},{"properties":{"enabled":{"type":"boolean"}},"type":"null"}]},"context":{"oneOf":[{"type":"string"},{"type":"null"}]},"source":{"oneOf":[{"type":"object","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["application/pdf"],"type":"string"},"type":{"enum":["base64"],"type":"string"}}},{"type":"object","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string"},"media_type":{"enum":["text/plain"],"type":"string"},"type":{"enum":["text"],"type":"string"}}},{"type":"object","required":["type","content"],"properties":{"content":{"type":"any"},"type":{"enum":["content"],"type":"string"}}},{"type":"object","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}}}]},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["document"],"type":"string"}}}]}}]},"is_error":{"type":"boolean"},"tool_use_id":{"type":"string"},"type":{"enum":["tool_result"],"type":"string"}}},{"type":"object","required":["type","thinking","signature"],"properties":{"signature":{"type":"string"},"thinking":{"type":"string"},"type":{"enum":["thinking"],"type":"string"}}},{"type":"object","required":["type","data"],"properties":{"data":{"type":"string"},"type":{"enum":["redacted_thinking"],"type":"string"}}},{"type":"object","required":["type","id","name"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"id":{"type":"string"},"input":{"oneOf":[{}]},"name":{"type":"string"},"type":{"enum":["server_tool_use"],"type":"string"}}},{"type":"object","required":["type","tool_use_id","content"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string"},"page_age":{"oneOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"type":{"enum":["web_search_result"],"type":"string"},"url":{"type":"string"}},"required":["type","encrypted_content","title","url"],"type":"object"}},{"type":"object","required":["type","error_code"],"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string"},"type":{"enum":["web_search_tool_result_error"],"type":"string"}}}]},"tool_use_id":{"type":"string"},"type":{"enum":["web_search_tool_result"],"type":"string"}}},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"array"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null"}]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"type":"array"},"source":{"type":"string"},"title":{"type":"string"},"type":{"enum":["search_result"],"type":"string"}}},{"type":"object","required":["type","content"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"string"},{"type":"null"}]},"encrypted_content":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["compaction"],"type":"string"}}},{"type":"object","description":"Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"tool_use_id":{"type":"string"},"type":{"enum":["advisor_tool_result"],"type":"string"}}},{"type":"object","description":"Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_forecast","type":"tool_reference"},"type":"tool_addition"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"tool":{"oneOf":[{"type":"object","required":["type","name"],"properties":{"name":{"type":"string"},"type":{"enum":["tool_reference"],"type":"string"}}},{"type":"object","required":["type","name","server_name"],"properties":{"name":{"type":"string"},"server_name":{"type":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string"}}},{"type":"object","required":["type","server_name"],"properties":{"server_name":{"type":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string"}}},{"type":"object","required":["type","definition"],"properties":{"definition":{"oneOf":[{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["name","input_schema"],"example":{"description":"Get the current weather for a city.","input_schema":{"properties":{"city":{"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"defer_loading":{"type":"boolean"},"description":{"type":"string"},"input_schema":{"additionalProperties":{"oneOf":[{}]},"properties":{"properties":{"oneOf":[{}]},"required":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"type":{"enum":["object"],"type":"string"}},"required":["type"],"type":"object"},"name":{"type":"string"},"strict":{"type":"boolean"},"type":{"enum":["custom"],"type":"string"}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"name":{"enum":["bash"],"type":"string"},"type":{"enum":["bash_20250124"],"type":"string"}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"name":{"enum":["str_replace_editor"],"type":"string"},"type":{"enum":["text_editor_20250124"],"type":"string"}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"allowed_domains":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"blocked_domains":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"max_uses":{"oneOf":[{"type":"integer"},{"type":"null"}]},"name":{"enum":["web_search"],"type":"string"},"type":{"enum":["web_search_20250305"],"type":"string"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null"}]}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string"},"type":"array"},"allowed_domains":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"blocked_domains":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"max_uses":{"oneOf":[{"type":"integer"},{"type":"null"}]},"name":{"enum":["web_search"],"type":"string"},"type":{"enum":["web_search_20260209"],"type":"string"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null"}]}}}]},"type":{"enum":["tool_definition"],"type":"string"}}}]},"type":{"enum":["tool_addition"],"type":"string"}}},{"type":"object","description":"Removes a tool from the conversation mid-conversation without invalidating the prompt cache. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_weather","type":"tool_reference"},"type":"tool_removal"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"tool":{"oneOf":[{"type":"object","required":["type","name"],"properties":{"name":{"type":"string"},"type":{"enum":["tool_reference"],"type":"string"}}},{"type":"object","required":["type","name","server_name"],"properties":{"name":{"type":"string"},"server_name":{"type":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string"}}},{"type":"object","required":["type","server_name"],"properties":{"server_name":{"type":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string"}}}]},"type":{"enum":["tool_removal"],"type":"string"}}},{"type":"object","description":"Output of an `openrouter:shell` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string"},"content":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string"}}},{"type":"object","description":"Output of a sandbox-executed `openrouter:bash` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string"},"content":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string"}}},{"type":"object","description":"Router-owned deferred discovery result for continuation.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"openrouter_tool_search_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string"}}}]}}]},"output_config":{"oneOf":[{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string"},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null"}]}},"type":"object"},{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string"},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null"}]}},"type":"null"}]},"role":{"enum":["user","assistant","system"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"null","isRequired":true,"uniqueKey":"messages.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages","typeLabel":"object[] | null"},"model":{"type":"string","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"cache_control","typeLabel":"object"},"context_management":{"oneOf":[{"properties":{"edits":{"items":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"enum":["clear_tool_uses_20250919"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"clear_at_least":{"oneOf":[{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0.value","typeLabel":"integer"}},"required":["type","value"],"type":"object","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0","typeLabel":"object"},{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"null","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least","typeLabel":"object | null"},"clear_tool_inputs":{"oneOf":[{"type":"boolean","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.0","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.1.items.[INDEX]","typeLabel":"string"},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.1","typeLabel":"string[]"},{"type":"null","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.2","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs","typeLabel":"boolean | string[] | null"},"exclude_tools":{"oneOf":[{"items":{"type":"string","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools","typeLabel":"string[] | null"},"keep":{"example":{"type":"tool_uses","value":5},"properties":{"type":{"enum":["tool_uses"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep.value","typeLabel":"integer"}},"required":["type","value"],"type":"object","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep","typeLabel":"object"},"trigger":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","value"],"example":{"type":"tool_uses","value":10},"properties":{"type":{"enum":["tool_uses"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1","typeLabel":"object"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger","typeLabel":"object"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["clear_thinking_20251015"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"keep":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"thinking_turns","value":3},"properties":{"type":{"enum":["thinking_turns"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["all"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.1","typeLabel":"object"},{"type":"string","enum":["all"],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep","typeLabel":"object · object · enum\u003cstring>"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["compact_20260112"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions","typeLabel":"string | null"},"pause_after_compaction":{"type":"boolean","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.pause_after_compaction","typeLabel":"boolean"},"trigger":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0","typeLabel":"object"},{"type":"null","example":{"type":"input_tokens","value":100000},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger","typeLabel":"object | null"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"context_management.oneOf.0.edits","typeLabel":"object[]"}},"type":"object","uniqueKey":"context_management.oneOf.0","typeLabel":"object"},{"properties":{"edits":{"items":{"oneOf":[{"type":"object","required":["type"],"properties":{"clear_at_least":{"oneOf":[{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"null"}]},"clear_tool_inputs":{"oneOf":[{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]},"exclude_tools":{"oneOf":[{"items":{"type":"string"},"type":"array"},{"items":{"type":"string"},"type":"null"}]},"keep":{"example":{"type":"tool_uses","value":5},"properties":{"type":{"enum":["tool_uses"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},"trigger":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}}},{"type":"object","required":["type","value"],"example":{"type":"tool_uses","value":10},"properties":{"type":{"enum":["tool_uses"],"type":"string"},"value":{"type":"integer"}}}]},"type":{"enum":["clear_tool_uses_20250919"],"type":"string"}}},{"type":"object","required":["type"],"properties":{"keep":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"thinking_turns","value":3},"properties":{"type":{"enum":["thinking_turns"],"type":"string"},"value":{"type":"integer"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["all"],"type":"string"}}},{"type":"string","enum":["all"]}]},"type":{"enum":["clear_thinking_20251015"],"type":"string"}}},{"type":"object","required":["type"],"properties":{"instructions":{"oneOf":[{"type":"string"},{"type":"null"}]},"pause_after_compaction":{"type":"boolean"},"trigger":{"oneOf":[{"type":"object","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}}},{"type":"null","example":{"type":"input_tokens","value":100000}}]},"type":{"enum":["compact_20260112"],"type":"string"}}}]},"type":"array"}},"type":"null","uniqueKey":"context_management.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management","typeLabel":"object | null"},"deferred_tools":{"description":"Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.","example":{"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"},"properties":{"profile":{"description":"Loading profile. `portable` serves the `defer_loading` tools with router-built search and call wrappers on any model and keeps the catalog fixed. `universal` defers every wrappable tool behind the same wrappers so the provider-facing tool list never changes, and rebuilds the catalog from each request so tools can be added or removed mid-conversation.","enum":["portable","universal"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.profile","typeLabel":"enum\u003cstring>"},"protocol":{"enum":["v1"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.protocol","typeLabel":"enum\u003cstring>"},"search":{"oneOf":[{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type"],"example":{"max_results":5,"type":"bm25"},"properties":{"type":{"enum":["regex"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.0.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","uniqueKey":"deferred_tools.search.oneOf.0.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.0","typeLabel":"object"},{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type"],"example":{"max_results":5,"type":"bm25"},"properties":{"type":{"enum":["bm25"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.1.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","uniqueKey":"deferred_tools.search.oneOf.1.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.1","typeLabel":"object"},{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type","tool_id","result_key"],"example":{"max_results":5,"result_key":"tool_names","tool_id":"search_catalog","type":"bm25"},"properties":{"result_key":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.result_key","typeLabel":"string"},"tool_id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["custom"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","uniqueKey":"deferred_tools.search.oneOf.2.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"deferred_tools.search","typeLabel":"object"},"validation":{"description":"Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.","enum":["runtime"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.validation","typeLabel":"enum\u003cstring>"}},"required":["protocol","profile","validation","search"],"type":"object","uniqueKey":"deferred_tools","typeLabel":"object"},"fallbacks":{"oneOf":[{"description":"Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.","example":[{"model":"claude-opus-4-8"}],"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"fallbacks.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.","example":{"model":"claude-opus-4-8"},"properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"fallbacks.oneOf.0.items.[INDEX].model","typeLabel":"string"}},"required":["model"],"type":"object","uniqueKey":"fallbacks.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fallbacks.oneOf.0","typeLabel":"object[]"},{"description":"Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.","example":[{"model":"claude-opus-4-8"}],"items":{"additionalProperties":{"oneOf":[{}]},"description":"Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.","example":{"model":"claude-opus-4-8"},"properties":{"model":{"type":"string"}},"required":["model"],"type":"object"},"type":"null","uniqueKey":"fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbacks","typeLabel":"object[] | null"},"max_tokens":{"type":"integer","uniqueKey":"max_tokens","typeLabel":"integer"},"metadata":{"properties":{"user_id":{"oneOf":[{"type":"string","uniqueKey":"metadata.user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"metadata.user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.user_id","typeLabel":"string | null"}},"title":"MessagesRequestMetadata","type":"object","uniqueKey":"metadata","typeLabel":"MessagesRequestMetadata · object"},"models":{"items":{"type":"string","uniqueKey":"models.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"models","typeLabel":"string[]"},"output_config":{"description":"Configuration for controlling output behavior. Supports the effort parameter and structured output format.","example":{"effort":"medium"},"properties":{"effort":{"oneOf":[{"description":"How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.","enum":["low","medium","high","xhigh","max",null],"example":"medium","type":"string","uniqueKey":"output_config.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.","enum":["low","medium","high","xhigh","max",null],"example":"medium","type":"null","uniqueKey":"output_config.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.effort","typeLabel":"enum\u003cstring> | null"},"format":{"oneOf":[{"description":"A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).","properties":{"schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"output_config.format.oneOf.0.schema.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"output_config.format.oneOf.0.schema","typeLabel":"object"},"type":{"enum":["json_schema"],"type":"string","isRequired":true,"uniqueKey":"output_config.format.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"required":["type","schema"],"type":"object","uniqueKey":"output_config.format.oneOf.0","typeLabel":"object"},{"description":"A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).","properties":{"schema":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"type":{"enum":["json_schema"],"type":"string"}},"required":["type","schema"],"type":"null","uniqueKey":"output_config.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.format","typeLabel":"object | null"},"task_budget":{"oneOf":[{"description":"Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.","example":{"total":400000,"type":"tokens"},"properties":{"total":{"minimum":20000,"type":"integer","isRequired":true,"uniqueKey":"output_config.task_budget.oneOf.0.total","typeLabel":"integer"},"type":{"enum":["tokens"],"type":"string","isRequired":true,"uniqueKey":"output_config.task_budget.oneOf.0.type","typeLabel":"enum\u003cstring>"},"remaining":{"oneOf":[{"minimum":0,"type":"integer","uniqueKey":"output_config.task_budget.oneOf.0.remaining.oneOf.0","typeLabel":"integer"},{"minimum":0,"type":"null","uniqueKey":"output_config.task_budget.oneOf.0.remaining.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.task_budget.oneOf.0.remaining","typeLabel":"integer | null"}},"required":["type","total"],"type":"object","uniqueKey":"output_config.task_budget.oneOf.0","typeLabel":"object"},{"description":"Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.","example":{"total":400000,"type":"tokens"},"properties":{"remaining":{"oneOf":[{"minimum":0,"type":"integer"},{"minimum":0,"type":"null"}]},"total":{"minimum":20000,"type":"integer"},"type":{"enum":["tokens"],"type":"string"}},"required":["type","total"],"type":"null","uniqueKey":"output_config.task_budget.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.task_budget","typeLabel":"object | null"}},"type":"object","uniqueKey":"output_config","typeLabel":"object"},"plugins":{"description":"Plugins you want to enable for this request, including their settings.","items":{"oneOf":[{"type":"object","required":["id"],"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-router","pin_model":false},"properties":{"id":{"enum":["auto-router"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.0.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.","example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.0.allowed_models","typeLabel":"string[]"},"cost_quality_tradeoff":{"deprecated":true,"description":"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.","example":9,"maximum":10,"minimum":0,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.0.cost_quality_tradeoff","typeLabel":"integer"},"cost_tier":{"description":"Named cost/quality setting. Tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.","enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.cost_tier","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the auto-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.0.enabled","typeLabel":"boolean"},"excluded_models":{"description":"List of model patterns to exclude from auto-router selection. Supports wildcards (e.g., \"meta-llama/*\" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.","example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.0.excluded_models","typeLabel":"string[]"},"pin_model":{"description":"When true, reuses the model from the most recent assistant message's `model` attribute for subsequent turns. Defaults to false.","example":false,"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.0.pin_model","typeLabel":"boolean"}},"uniqueKey":"plugins.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["id"],"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-beta-router"},"properties":{"id":{"enum":["auto-beta-router"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.1.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.","example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_models","typeLabel":"string[]"},"cost_quality_tradeoff":{"deprecated":true,"description":"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.","example":9,"maximum":10,"minimum":0,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.1.cost_quality_tradeoff","typeLabel":"integer"},"cost_tier":{"description":"Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.","enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.cost_tier","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the auto-beta-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.1.enabled","typeLabel":"boolean"},"excluded_models":{"description":"List of model patterns to exclude from auto-beta-router selection. Supports wildcards (e.g., \"meta-llama/*\" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.","example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.1.excluded_models","typeLabel":"string[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["id"],"example":{"id":"moderation"},"properties":{"id":{"enum":["moderation"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.2.id","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"web","max_results":5},"properties":{"id":{"enum":["web"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.3.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the web-search plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.enabled","typeLabel":"boolean"},"engine":{"description":"The search engine to use for web search.","enum":["native","exa","firecrawl","parallel","perplexity"],"example":"exa","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.engine","typeLabel":"enum\u003cstring>"},"exclude_domains":{"description":"A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\").","example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.exclude_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.exclude_domains","typeLabel":"string[]"},"include_domains":{"description":"A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\").","example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.include_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.include_domains","typeLabel":"string[]"},"max_results":{"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.3.max_results","typeLabel":"integer"},"max_uses":{"description":"Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic).","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.3.max_uses","typeLabel":"integer"},"mode":{"description":"Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.","enum":["instant","fast","auto","deep-lite","deep","deep-reasoning","turbo","basic","advanced"],"example":"auto","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.mode","typeLabel":"enum\u003cstring>"},"search_prompt":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.search_prompt","typeLabel":"string"},"user_location":{"oneOf":[{"type":"object","description":"Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).","required":["type"],"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).","required":["type"],"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"},"x_search":{"additionalProperties":false,"description":"Enable SpaceXAI X (Twitter) search alongside native web search, with optional filters. Only applies to SpaceXAI endpoints with native search; omit to search the web only. X search is billed separately by SpaceXAI, per post and per user profile fetched.","example":{"allowed_x_handles":["OpenRouterAI"],"from_date":"2025-01-01"},"properties":{"allowed_x_handles":{"description":"Only include posts from these X handles (max 20). Cannot be used with excluded_x_handles.","example":["OpenRouterAI"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.allowed_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.allowed_x_handles","typeLabel":"string[]"},"enable_image_understanding":{"description":"Analyze images attached to matching posts.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.enable_image_understanding","typeLabel":"boolean"},"enable_video_understanding":{"description":"Analyze videos attached to matching posts.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.enable_video_understanding","typeLabel":"boolean"},"excluded_x_handles":{"description":"Exclude posts from these X handles (max 20). Cannot be used with allowed_x_handles.","example":["spamaccount"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.excluded_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.excluded_x_handles","typeLabel":"string[]"},"from_date":{"description":"Start of the post date range (ISO 8601 date, e.g. \"2025-01-01\").","example":"2025-01-01","format":"date","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.from_date","typeLabel":"string\u003cdate>"},"to_date":{"description":"End of the post date range (ISO 8601 date, e.g. \"2025-12-31\").","example":"2025-12-31","format":"date","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.to_date","typeLabel":"string\u003cdate>"}},"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search","typeLabel":"object"}},"uniqueKey":"plugins.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["id"],"example":{"id":"web-fetch","max_uses":10},"properties":{"id":{"enum":["web-fetch"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.4.id","typeLabel":"enum\u003cstring>"},"allowed_domains":{"description":"Only fetch from these domains.","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.4.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.4.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"description":"Never fetch from these domains.","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.4.blocked_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.4.blocked_domains","typeLabel":"string[]"},"max_content_tokens":{"description":"Maximum content length in approximate tokens. Content exceeding this limit is truncated.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.4.max_content_tokens","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web fetches per request. Once exceeded, the tool returns an error.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.4.max_uses","typeLabel":"integer"}},"uniqueKey":"plugins.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"file-parser","pdf":{"engine":"cloudflare-ai"}},"properties":{"id":{"enum":["file-parser"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.5.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the file-parser plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.5.enabled","typeLabel":"boolean"},"pdf":{"description":"Options for PDF parsing.","example":{"engine":"cloudflare-ai"},"properties":{"engine":{"oneOf":[{"type":"string","description":"The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".","enum":["mistral-ocr","native","cloudflare-ai"],"example":"cloudflare-ai","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".","enum":["pdf-text"],"example":"cloudflare-ai","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf","typeLabel":"object"}},"uniqueKey":"plugins.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"response-healing"},"properties":{"id":{"enum":["response-healing"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.6.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the response-healing plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.6.enabled","typeLabel":"boolean"}},"uniqueKey":"plugins.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"engine":"middle-out","id":"context-compression"},"properties":{"id":{"enum":["context-compression"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.7.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the context-compression plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"engine":{"description":"The compression engine to use. Defaults to \"middle-out\".","enum":["middle-out"],"example":"middle-out","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.7.engine","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"pareto-router","max_price":5,"price_source":"prompt"},"properties":{"id":{"enum":["pareto-router"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.8.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the pareto-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.8.enabled","typeLabel":"boolean"},"max_price":{"description":"Maximum input price in USD per million tokens. When set, quality-tier selection (min_coding_score) is bypassed: the router computes the Pareto frontier over the top coding models and routes to the best-scoring frontier model priced at or below this cap, falling back through cheaper frontier models, then non-frontier models. Enforced against the price source given by price_source. Returns 404 when no candidate satisfies the cap.","example":5,"format":"double","minimum":0,"type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.8.max_price","typeLabel":"number\u003cdouble>"},"min_coding_score":{"description":"Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), \u003c 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).","example":0.8,"format":"double","maximum":1,"minimum":0,"type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.8.min_coding_score","typeLabel":"number\u003cdouble>"},"price_source":{"description":"Price source for the Pareto frontier cost axis and for enforcing max_price. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\".","enum":["prompt","weighted_avg"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.8.price_source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["id"],"example":{"analysis_models":["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],"enabled":true,"id":"fusion","model":"~anthropic/claude-opus-latest"},"properties":{"id":{"enum":["fusion"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.9.id","typeLabel":"enum\u003cstring>"},"analysis_models":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, slugs of models to run in parallel as the \"expert panel\" the analyst analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-sol-latest, ~google/gemini-pro-latest).","example":["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.analysis_models.items.[INDEX]","typeLabel":"string"},"maxItems":8,"minItems":1,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.9.analysis_models","typeLabel":"string[]"},"enabled":{"description":"Set to false to disable Fusion configuration for a run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.enabled","typeLabel":"boolean"},"max_tool_calls":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the maximum number of tool-calling steps each panelist (analysis model) and the analyst model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 4. Capped at 16.","example":12,"maximum":16,"minimum":1,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.9.max_tool_calls","typeLabel":"integer"},"model":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the slug of the model that performs both the analyst step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.","example":"~anthropic/claude-opus-latest","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.model","typeLabel":"string"},"preset":{"description":"Configuration for a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. A curated OpenRouter preset (slugs follow `\u003ctask>-\u003ctier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and analyst model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.","enum":["general-high","general-budget","general-fast"],"example":"general-high","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.preset","typeLabel":"enum\u003cstring>"},"tools":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, server tools available to panelist and analyst inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).","example":[{"parameters":{"excluded_domains":["example.com"]},"type":"openrouter:web_search"},{"type":"openrouter:web_fetch"}],"items":{"properties":{"type":{"description":"Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\").","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].type","typeLabel":"string"},"parameters":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.3","typeLabel":"null"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.4","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"string · number\u003cdouble> · boolean · null · null"},"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4","typeLabel":"string · number\u003cdouble> · boolean · null · null[]"},{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.4","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties","typeLabel":"string · number\u003cdouble> · boolean · null · null"},"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5","typeLabel":"object"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.6","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties","typeLabel":"string · number\u003cdouble> · boolean · null · string · number\u003cdouble> · boolean · null · null[] · object · null"},"description":"Optional configuration forwarded as the tool's `parameters` object.","type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters","typeLabel":"object"}},"required":["type"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX]","typeLabel":"object"},"maxItems":8,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools","typeLabel":"object[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["id"],"example":{"algorithm":"stage","id":"switchyard-router"},"properties":{"id":{"enum":["switchyard-router"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.10.id","typeLabel":"enum\u003cstring>"},"algorithm":{"description":"Routing algorithm for this request. \"capability\" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. \"stage\" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. \"auto\" is \"stage\" without the judge call. \"random\" picks one candidate at random. \"composite\" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. \"passthrough\" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, stage.","enum":["capability","stage","auto","random","composite","passthrough"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.10.algorithm","typeLabel":"enum\u003cstring>"},"judge_model":{"description":"The model that runs the judge call for the judge-backed algorithms (\"capability\", \"stage\", and \"composite\"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-3.5-flash-lite, or openai/gpt-4o-mini when the default does not fit either, and reports the reason in the routing metadata. The judge call is billed to you like any other request.","example":"openai/gpt-5.4-nano","minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.10.judge_model","typeLabel":"string"}},"uniqueKey":"plugins.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["id"],"example":{"excluded_models":["openai/gpt-6-astra"],"id":"jev-router","models":["anthropic/*","openai/gpt-5.6-sol"]},"properties":{"id":{"enum":["jev-router"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.11.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"Alias of `models`, matching the auto-router field name. Entries from both fields are combined.","example":["anthropic/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.allowed_models","typeLabel":"string[]"},"cost_tier":{"description":"Select low, medium, high, or a cost tier configured by the operator. Overrides the live-config tier and replaces the shared routing policy with that tier. Omit to use the live configuration. Model exclusions and the router kill switch still apply.","example":"medium","pattern":"^[a-z][a-z0-9_-]{0,31}$","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.cost_tier","typeLabel":"string"},"excluded_models":{"description":"Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. \"xiaomi/*\"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them.","example":["openai/gpt-6-astra","xiaomi/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.excluded_models","typeLabel":"string[]"},"models":{"description":"Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. \"anthropic/*\"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). When no entry matches any catalog model, for example a misspelled slug, the request fails with 404 instead. `allowed_models` is an alias; entries from both fields are combined.","example":["anthropic/*","openai/gpt-5.6-sol"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.models","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"Beta. States the listed rules to the model and evaluates every turn against them; the configuration, metadata, and error shapes may change.","required":["id","rules"],"example":{"id":"alignment","mode":"audit","rules":[{"rule":"Never offer a discount.","watch":["content"]}]},"properties":{"id":{"enum":["alignment"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.id","typeLabel":"enum\u003cstring>"},"rules":{"description":"Rules the reply must follow. Each rule is evaluated on its own.","example":[{"rule":"Never offer a discount.","watch":["content"]},{"rule":"Never call delete_file.","watch":["tool_calls"]}],"items":{"additionalProperties":false,"example":{"rule":"Never offer a discount.","watch":["content"]},"properties":{"rule":{"description":"Text that states what the reply must do or must not do.","maxLength":200,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].rule","typeLabel":"string"},"watch":{"description":"Fields of the assistant message the rule applies to. The rule is evaluated on a message that has at least one of them and is not applicable to any other message.","items":{"enum":["content","tool_calls","refusal","images","audio"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].watch.items.[INDEX]","typeLabel":"enum\u003cstring>"},"maxItems":5,"minItems":1,"type":"array","uniqueItems":true,"isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].watch","typeLabel":"enum\u003cstring>[]"}},"required":["rule","watch"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX]","typeLabel":"object"},"maxItems":128,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules","typeLabel":"object[]"},"instruct":{"description":"Whether the rules are stated to the model in a system message on every provider call. Default true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.12.instruct","typeLabel":"boolean"},"max_retries":{"description":"Provider calls made again after a blocked turn, in enforce mode. Default 1.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.12.max_retries","typeLabel":"integer"},"mode":{"description":"`enforce`: a turn that breaks a rule is withheld, retried, and finally returned as an error. `audit`: every turn is evaluated and returned. Default `audit`.","enum":["enforce","audit"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.12.mode","typeLabel":"enum\u003cstring>"},"threshold":{"description":"Probability at or above which a rule is broken, from 0.01 to 1. Default 0.7.","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.12.threshold","typeLabel":"number\u003cdouble>"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"Evaluates every client tool call the model emits against a rule stack (hard-deny, soft-deny, allow) before it reaches the caller. The stack merges the workspace guardrail, this plugin, and any Anthropic `safeguards`; on endpoints that support Anthropic's `dangerous-tool-use` beta the evaluation is native, elsewhere it is one decisions call per tool call. Evaluation is not billed during the beta. Verdicts are reported as `safeguard_results`.","required":["id"],"example":{"classifier_context":{"auto_mode":{"environment":["Trusted repo: github.com/acme/app"],"soft_deny":[{"id":"no-migrations-delete","instructions":"Deleting a file under db/migrations."}]},"v":1},"id":"armor","use_cc_style_default_rules":true},"properties":{"id":{"enum":["armor"],"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.id","typeLabel":"enum\u003cstring>"},"classifier_context":{"additionalProperties":{"description":"Carried unchanged; any JSON value.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.additionalProperties","typeLabel":"any"},"description":"The Armor context: Claude Code's `classifier_context` (v1), with `auto_mode.{hard_deny,soft_deny,allow}` rules as strings or `{ id, instructions, threshold? }` objects and `auto_mode.environment` entries as `\"Name: value\"` strings or `{ name, value }` objects. `threshold` applies when Armor evaluates; when the provider evaluates natively (Anthropic dangerous-tool-use beta) rules are judged at the provider's own boundary.","example":{"auto_mode":{"allow":[],"environment":["Trusted repo: github.com/acme/app"],"hard_deny":[],"soft_deny":[{"id":"secrets-in-vcs","instructions":"Staging, committing or pushing a file that holds secrets, including indirectly through git add -A when the tree shows one."}]},"v":1},"properties":{"v":{"enum":[1],"type":"number","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.v","typeLabel":"enum\u003cnumber>"},"auto_mode":{"properties":{"allow":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX]","typeLabel":"string | object"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow","typeLabel":"(string | object)[]"},"environment":{"items":{"oneOf":[{"type":"string","maxLength":4122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["name","value"],"properties":{"name":{"maxLength":120,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1.name","typeLabel":"string"},"value":{"maxLength":4000,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1.value","typeLabel":"string"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX]","typeLabel":"string | object"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment","typeLabel":"(string | object)[]"},"hard_deny":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX]","typeLabel":"string | object"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny","typeLabel":"(string | object)[]"},"soft_deny":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX]","typeLabel":"string | object"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny","typeLabel":"(string | object)[]"}},"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode","typeLabel":"object"}},"required":["v"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context","typeLabel":"object"},"enabled":{"description":"Set to false to disable Armor for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.enabled","typeLabel":"boolean"},"evaluate_native_tools":{"description":"Run provider-native server tools (web search, code execution, ...) through the agent loop so Armor evaluates them too. Defaults to false: native passthrough stands and such calls are reported `skipped`.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.evaluate_native_tools","typeLabel":"boolean"},"mode":{"description":"`enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.","enum":["enforce","audit"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.mode","typeLabel":"enum\u003cstring>"},"on_error":{"description":"When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.","enum":["log","block"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.on_error","typeLabel":"enum\u003cstring>"},"output_mode":{"description":"How a blocked call reaches the caller. `text` (the default): the call is withheld and an `\u003copenrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.","enum":["text","custom_item","claude_code_compatibility"],"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.output_mode","typeLabel":"enum\u003cstring>"},"use_cc_style_default_rules":{"description":"Prepend Claude Code's built-in auto-mode rule set (1 hard-deny, 72 soft-deny, 17 allow, 21 environment slots) ahead of every configured rule. Defaults to true on the Anthropic Messages API and false elsewhere.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.use_cc_style_default_rules","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.13","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"plugins","typeLabel":"object[]"},"provider":{"oneOf":[{"additionalProperties":false,"description":"When multiple model providers are available, optionally indicate your routing preference.","example":{"allow_fallbacks":true},"properties":{"allow_fallbacks":{"oneOf":[{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"boolean","uniqueKey":"provider.oneOf.0.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"null","uniqueKey":"provider.oneOf.0.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.allow_fallbacks","typeLabel":"boolean | null"},"data_collection":{"oneOf":[{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"string","uniqueKey":"provider.oneOf.0.data_collection.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"null","uniqueKey":"provider.oneOf.0.data_collection.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.data_collection","typeLabel":"enum\u003cstring> | null"},"enforce_distillable_text":{"oneOf":[{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"boolean","uniqueKey":"provider.oneOf.0.enforce_distillable_text.oneOf.0","typeLabel":"boolean"},{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"null","uniqueKey":"provider.oneOf.0.enforce_distillable_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.enforce_distillable_text","typeLabel":"boolean | null"},"ignore":{"oneOf":[{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI","uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.ignore.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.ignore.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.ignore","typeLabel":"(enum\u003cstring> | string)[] | null"},"max_price":{"description":"The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.","properties":{"audio":{"description":"Maximum price in USD per audio unit","type":"string","uniqueKey":"provider.oneOf.0.max_price.audio","typeLabel":"string"},"completion":{"description":"Maximum price in USD per million completion tokens","type":"string","uniqueKey":"provider.oneOf.0.max_price.completion","typeLabel":"string"},"image":{"description":"Maximum price in USD per image","type":"string","uniqueKey":"provider.oneOf.0.max_price.image","typeLabel":"string"},"prompt":{"description":"Maximum price in USD per million prompt tokens","type":"string","uniqueKey":"provider.oneOf.0.max_price.prompt","typeLabel":"string"},"request":{"description":"Maximum price in USD per request","type":"string","uniqueKey":"provider.oneOf.0.max_price.request","typeLabel":"string"}},"type":"object","uniqueKey":"provider.oneOf.0.max_price","typeLabel":"object"},"only":{"oneOf":[{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI","uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.only.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.only.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.only","typeLabel":"(enum\u003cstring> | string)[] | null"},"options":{"description":"Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.","example":{"openai":{"max_tokens":1000}},"properties":{"01ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.01ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.01ai","typeLabel":"object"},"ai21":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ai21.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ai21","typeLabel":"object"},"aion-labs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.aion-labs.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.aion-labs","typeLabel":"object"},"akashml":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.akashml.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.akashml","typeLabel":"object"},"alibaba":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.alibaba.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.alibaba","typeLabel":"object"},"amazon-bedrock":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-bedrock.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.amazon-bedrock","typeLabel":"object"},"amazon-bedrock/claude-on-aws":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-bedrock/claude-on-aws.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.amazon-bedrock/claude-on-aws","typeLabel":"object"},"amazon-nova":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-nova.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.amazon-nova","typeLabel":"object"},"ambient":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ambient.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ambient","typeLabel":"object"},"antdigital":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.antdigital.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.antdigital","typeLabel":"object"},"anthropic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anthropic.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.anthropic","typeLabel":"object"},"anthropic/2":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anthropic/2.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.anthropic/2","typeLabel":"object"},"anyscale":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anyscale.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.anyscale","typeLabel":"object"},"arcee-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.arcee-ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.arcee-ai","typeLabel":"object"},"assemblyai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.assemblyai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.assemblyai","typeLabel":"object"},"atlas-cloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.atlas-cloud.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.atlas-cloud","typeLabel":"object"},"atoma":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.atoma.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.atoma","typeLabel":"object"},"avian":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.avian.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.avian","typeLabel":"object"},"azure":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.azure.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.azure","typeLabel":"object"},"baidu":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.baidu.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.baidu","typeLabel":"object"},"baseten":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.baseten.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.baseten","typeLabel":"object"},"black-forest-labs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.black-forest-labs.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.black-forest-labs","typeLabel":"object"},"byteplus":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.byteplus.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.byteplus","typeLabel":"object"},"centml":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.centml.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.centml","typeLabel":"object"},"cerebras":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cerebras.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.cerebras","typeLabel":"object"},"chutes":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.chutes.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.chutes","typeLabel":"object"},"cirrascale":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cirrascale.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.cirrascale","typeLabel":"object"},"clarifai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.clarifai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.clarifai","typeLabel":"object"},"claude-on-aws":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.claude-on-aws.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.claude-on-aws","typeLabel":"object"},"cloudflare":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cloudflare.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.cloudflare","typeLabel":"object"},"cohere":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cohere.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.cohere","typeLabel":"object"},"coreweave":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.coreweave.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.coreweave","typeLabel":"object"},"cosine":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cosine.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.cosine","typeLabel":"object"},"crofai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crofai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.crofai","typeLabel":"object"},"crucible":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crucible.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.crucible","typeLabel":"object"},"crusoe":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crusoe.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.crusoe","typeLabel":"object"},"darkbloom":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.darkbloom.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.darkbloom","typeLabel":"object"},"databricks":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.databricks.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.databricks","typeLabel":"object"},"decart":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.decart.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.decart","typeLabel":"object"},"deepgram":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepgram.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.deepgram","typeLabel":"object"},"deepinfra":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepinfra.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.deepinfra","typeLabel":"object"},"deepseek":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepseek.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.deepseek","typeLabel":"object"},"dekallm":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.dekallm.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.dekallm","typeLabel":"object"},"digitalocean":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.digitalocean.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.digitalocean","typeLabel":"object"},"elevenlabs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.elevenlabs.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.elevenlabs","typeLabel":"object"},"enfer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.enfer.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.enfer","typeLabel":"object"},"fake-provider":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fake-provider.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.fake-provider","typeLabel":"object"},"featherless":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.featherless.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.featherless","typeLabel":"object"},"fireworks":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fireworks.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.fireworks","typeLabel":"object"},"fish-audio":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fish-audio.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.fish-audio","typeLabel":"object"},"friendli":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.friendli.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.friendli","typeLabel":"object"},"gmicloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.gmicloud.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.gmicloud","typeLabel":"object"},"google-ai-studio":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.google-ai-studio.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.google-ai-studio","typeLabel":"object"},"google-vertex":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.google-vertex.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.google-vertex","typeLabel":"object"},"gopomelo":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.gopomelo.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.gopomelo","typeLabel":"object"},"groq":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.groq.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.groq","typeLabel":"object"},"heygen":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.heygen.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.heygen","typeLabel":"object"},"huggingface":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.huggingface.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.huggingface","typeLabel":"object"},"hyperbolic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.hyperbolic.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.hyperbolic","typeLabel":"object"},"hyperbolic-quantized":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.hyperbolic-quantized.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.hyperbolic-quantized","typeLabel":"object"},"inception":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inception.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inception","typeLabel":"object"},"inceptron":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inceptron.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inceptron","typeLabel":"object"},"inferact-vllm":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inferact-vllm.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inferact-vllm","typeLabel":"object"},"inference-net":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inference-net.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inference-net","typeLabel":"object"},"infermatic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.infermatic.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.infermatic","typeLabel":"object"},"inflection":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inflection.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inflection","typeLabel":"object"},"inocloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inocloud.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.inocloud","typeLabel":"object"},"io-net":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.io-net.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.io-net","typeLabel":"object"},"ionstream":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ionstream.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ionstream","typeLabel":"object"},"klusterai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.klusterai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.klusterai","typeLabel":"object"},"krea":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.krea.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.krea","typeLabel":"object"},"kt":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.kt.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.kt","typeLabel":"object"},"lambda":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lambda.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.lambda","typeLabel":"object"},"lepton":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lepton.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.lepton","typeLabel":"object"},"liquid":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.liquid.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.liquid","typeLabel":"object"},"lynn":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lynn.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.lynn","typeLabel":"object"},"lynn-private":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lynn-private.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.lynn-private","typeLabel":"object"},"makora":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.makora.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.makora","typeLabel":"object"},"mancer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mancer.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.mancer","typeLabel":"object"},"mancer-old":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mancer-old.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.mancer-old","typeLabel":"object"},"mara":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mara.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.mara","typeLabel":"object"},"meta":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.meta.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.meta","typeLabel":"object"},"minimax":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.minimax.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.minimax","typeLabel":"object"},"mistral":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mistral.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.mistral","typeLabel":"object"},"modal":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modal.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.modal","typeLabel":"object"},"modelrun":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modelrun.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.modelrun","typeLabel":"object"},"modular":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modular.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.modular","typeLabel":"object"},"moonshotai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.moonshotai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.moonshotai","typeLabel":"object"},"morph":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.morph.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.morph","typeLabel":"object"},"ncompass":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ncompass.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ncompass","typeLabel":"object"},"near-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.near-ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.near-ai","typeLabel":"object"},"nebius":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nebius.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.nebius","typeLabel":"object"},"nex-agi":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nex-agi.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.nex-agi","typeLabel":"object"},"nextbit":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nextbit.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.nextbit","typeLabel":"object"},"nineteen":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nineteen.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.nineteen","typeLabel":"object"},"novita":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.novita.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.novita","typeLabel":"object"},"nvidia":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nvidia.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.nvidia","typeLabel":"object"},"octoai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.octoai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.octoai","typeLabel":"object"},"ollama":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ollama.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ollama","typeLabel":"object"},"open-inference":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.open-inference.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.open-inference","typeLabel":"object"},"openai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.openai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.openai","typeLabel":"object"},"parallel":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.parallel.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.parallel","typeLabel":"object"},"parasail":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.parasail.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.parasail","typeLabel":"object"},"pareto-alpha":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.pareto-alpha.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.pareto-alpha","typeLabel":"object"},"particle-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.particle-ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.particle-ai","typeLabel":"object"},"pearl-research":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.pearl-research.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.pearl-research","typeLabel":"object"},"perceptron":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.perceptron.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.perceptron","typeLabel":"object"},"perplexity":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.perplexity.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.perplexity","typeLabel":"object"},"phala":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.phala.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.phala","typeLabel":"object"},"poolside":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.poolside.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.poolside","typeLabel":"object"},"primalabs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.primalabs.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.primalabs","typeLabel":"object"},"primeintellect":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.primeintellect.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.primeintellect","typeLabel":"object"},"quiver":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.quiver.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.quiver","typeLabel":"object"},"recraft":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recraft.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.recraft","typeLabel":"object"},"recursal":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recursal.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.recursal","typeLabel":"object"},"recursive":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recursive.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.recursive","typeLabel":"object"},"reflection":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.reflection.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.reflection","typeLabel":"object"},"reka":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.reka.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.reka","typeLabel":"object"},"relace":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.relace.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.relace","typeLabel":"object"},"replicate":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.replicate.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.replicate","typeLabel":"object"},"respan":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.respan.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.respan","typeLabel":"object"},"river":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.river.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.river","typeLabel":"object"},"runway":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.runway.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.runway","typeLabel":"object"},"sail-research":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sail-research.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sail-research","typeLabel":"object"},"sakana":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sakana.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sakana","typeLabel":"object"},"sakana-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sakana-ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sakana-ai","typeLabel":"object"},"sambanova":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sambanova.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sambanova","typeLabel":"object"},"sambanova-cloaked":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sambanova-cloaked.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sambanova-cloaked","typeLabel":"object"},"scaledown":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.scaledown.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.scaledown","typeLabel":"object"},"seed":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.seed.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.seed","typeLabel":"object"},"sf-compute":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sf-compute.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sf-compute","typeLabel":"object"},"siliconflow":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.siliconflow.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.siliconflow","typeLabel":"object"},"sourceful":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sourceful.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.sourceful","typeLabel":"object"},"stealth":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.stealth.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.stealth","typeLabel":"object"},"stepfun":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.stepfun.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.stepfun","typeLabel":"object"},"streamlake":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.streamlake.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.streamlake","typeLabel":"object"},"switchpoint":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.switchpoint.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.switchpoint","typeLabel":"object"},"targon":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.targon.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.targon","typeLabel":"object"},"tencent":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.tencent.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.tencent","typeLabel":"object"},"tenstorrent":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.tenstorrent.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.tenstorrent","typeLabel":"object"},"thinkingmachines":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.thinkingmachines.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.thinkingmachines","typeLabel":"object"},"together":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.together.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.together","typeLabel":"object"},"together-lite":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.together-lite.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.together-lite","typeLabel":"object"},"typesafe":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.typesafe.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.typesafe","typeLabel":"object"},"ubicloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ubicloud.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.ubicloud","typeLabel":"object"},"unbiased":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.unbiased.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.unbiased","typeLabel":"object"},"upstage":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.upstage.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.upstage","typeLabel":"object"},"venice":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.venice.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.venice","typeLabel":"object"},"voyageai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.voyageai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.voyageai","typeLabel":"object"},"wafer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wafer.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.wafer","typeLabel":"object"},"wandb":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wandb.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.wandb","typeLabel":"object"},"wandb-legacy":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wandb-legacy.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.wandb-legacy","typeLabel":"object"},"xai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.xai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.xai","typeLabel":"object"},"xiaomi":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.xiaomi.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.xiaomi","typeLabel":"object"},"z-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.z-ai.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"provider.oneOf.0.options.z-ai","typeLabel":"object"}},"type":"object","uniqueKey":"provider.oneOf.0.options","typeLabel":"object"},"order":{"oneOf":[{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI","uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.order.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.order","typeLabel":"(enum\u003cstring> | string)[] | null"},"preferred_max_latency":{"oneOf":[{"type":"number","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":5,"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"object","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"properties":{"p50":{"oneOf":[{"description":"Maximum p50 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p50 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50","typeLabel":"number\u003cdouble> | null"},"p75":{"oneOf":[{"description":"Maximum p75 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p75 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75","typeLabel":"number\u003cdouble> | null"},"p90":{"oneOf":[{"description":"Maximum p90 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p90 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90","typeLabel":"number\u003cdouble> | null"},"p99":{"oneOf":[{"description":"Maximum p99 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p99 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1","typeLabel":"object"},{"type":"null","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency","typeLabel":"number\u003cdouble> | object | null"},"preferred_min_throughput":{"oneOf":[{"type":"number","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":100,"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"object","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"properties":{"p50":{"oneOf":[{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50","typeLabel":"number\u003cdouble> | null"},"p75":{"oneOf":[{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75","typeLabel":"number\u003cdouble> | null"},"p90":{"oneOf":[{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90","typeLabel":"number\u003cdouble> | null"},"p99":{"oneOf":[{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1","typeLabel":"object"},{"type":"null","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput","typeLabel":"number\u003cdouble> | object | null"},"quantizations":{"oneOf":[{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","uniqueKey":"provider.oneOf.0.quantizations.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"provider.oneOf.0.quantizations.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string"},"type":"null","uniqueKey":"provider.oneOf.0.quantizations.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.quantizations","typeLabel":"enum\u003cstring>[] | null"},"require_parameters":{"oneOf":[{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"boolean","uniqueKey":"provider.oneOf.0.require_parameters.oneOf.0","typeLabel":"boolean"},{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"null","uniqueKey":"provider.oneOf.0.require_parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.require_parameters","typeLabel":"boolean | null"},"sort":{"oneOf":[{"type":"string","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","enum":["price","throughput","latency","exacto"],"example":"price","uniqueKey":"provider.oneOf.0.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","properties":{"by":{"oneOf":[{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"string","uniqueKey":"provider.oneOf.0.sort.oneOf.1.by.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"null","uniqueKey":"provider.oneOf.0.sort.oneOf.1.by.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort.oneOf.1.by","typeLabel":"enum\u003cstring> | null"},"partition":{"oneOf":[{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"string","uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"null","uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"provider.oneOf.0.sort.oneOf.1","typeLabel":"object"},{"type":"null","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","uniqueKey":"provider.oneOf.0.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort","typeLabel":"enum\u003cstring> | object | null"},"zdr":{"oneOf":[{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"boolean","uniqueKey":"provider.oneOf.0.zdr.oneOf.0","typeLabel":"boolean"},{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"null","uniqueKey":"provider.oneOf.0.zdr.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.zdr","typeLabel":"boolean | null"}},"type":"object","uniqueKey":"provider.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"description":"When multiple model providers are available, optionally indicate your routing preference.","example":{"allow_fallbacks":true},"properties":{"allow_fallbacks":{"oneOf":[{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"boolean"},{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"null"}]},"data_collection":{"oneOf":[{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"string"},{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"null"}]},"enforce_distillable_text":{"oneOf":[{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"boolean"},{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"null"}]},"ignore":{"oneOf":[{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"max_price":{"description":"The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.","properties":{"audio":{"description":"Maximum price in USD per audio unit","type":"string"},"completion":{"description":"Maximum price in USD per million completion tokens","type":"string"},"image":{"description":"Maximum price in USD per image","type":"string"},"prompt":{"description":"Maximum price in USD per million prompt tokens","type":"string"},"request":{"description":"Maximum price in USD per request","type":"string"}},"type":"object"},"only":{"oneOf":[{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"options":{"description":"Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.","example":{"openai":{"max_tokens":1000}},"properties":{"01ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ai21":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"aion-labs":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"akashml":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"alibaba":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"amazon-bedrock":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"amazon-bedrock/claude-on-aws":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"amazon-nova":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ambient":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"antdigital":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"anthropic":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"anthropic/2":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"anyscale":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"arcee-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"assemblyai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"atlas-cloud":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"atoma":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"avian":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"azure":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"baidu":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"baseten":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"black-forest-labs":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"byteplus":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"centml":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"cerebras":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"chutes":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"cirrascale":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"clarifai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"claude-on-aws":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"cloudflare":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"cohere":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"coreweave":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"cosine":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"crofai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"crucible":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"crusoe":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"darkbloom":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"databricks":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"decart":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"deepgram":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"deepinfra":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"deepseek":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"dekallm":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"digitalocean":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"elevenlabs":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"enfer":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"fake-provider":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"featherless":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"fireworks":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"fish-audio":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"friendli":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"gmicloud":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"google-ai-studio":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"google-vertex":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"gopomelo":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"groq":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"heygen":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"huggingface":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"hyperbolic":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"hyperbolic-quantized":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inception":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inceptron":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inferact-vllm":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inference-net":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"infermatic":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inflection":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"inocloud":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"io-net":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ionstream":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"klusterai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"krea":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"kt":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"lambda":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"lepton":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"liquid":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"lynn":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"lynn-private":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"makora":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"mancer":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"mancer-old":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"mara":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"meta":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"minimax":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"mistral":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"modal":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"modelrun":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"modular":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"moonshotai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"morph":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ncompass":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"near-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"nebius":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"nex-agi":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"nextbit":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"nineteen":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"novita":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"nvidia":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"octoai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ollama":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"open-inference":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"openai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"parallel":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"parasail":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"pareto-alpha":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"particle-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"pearl-research":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"perceptron":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"perplexity":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"phala":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"poolside":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"primalabs":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"primeintellect":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"quiver":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"recraft":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"recursal":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"recursive":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"reflection":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"reka":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"relace":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"replicate":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"respan":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"river":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"runway":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sail-research":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sakana":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sakana-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sambanova":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sambanova-cloaked":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"scaledown":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"seed":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sf-compute":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"siliconflow":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"sourceful":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"stealth":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"stepfun":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"streamlake":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"switchpoint":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"targon":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"tencent":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"tenstorrent":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"thinkingmachines":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"together":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"together-lite":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"typesafe":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"ubicloud":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"unbiased":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"upstage":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"venice":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"voyageai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"wafer":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"wandb":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"wandb-legacy":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"xai":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"xiaomi":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"z-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object"}},"type":"object"},"order":{"oneOf":[{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","River","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"preferred_max_latency":{"oneOf":[{"type":"number","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":5},{"type":"object","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"properties":{"p50":{"oneOf":[{"description":"Maximum p50 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p50 latency (seconds)","format":"double","type":"null"}]},"p75":{"oneOf":[{"description":"Maximum p75 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p75 latency (seconds)","format":"double","type":"null"}]},"p90":{"oneOf":[{"description":"Maximum p90 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p90 latency (seconds)","format":"double","type":"null"}]},"p99":{"oneOf":[{"description":"Maximum p99 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p99 latency (seconds)","format":"double","type":"null"}]}}},{"type":"null","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5}]},"preferred_min_throughput":{"oneOf":[{"type":"number","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":100},{"type":"object","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"properties":{"p50":{"oneOf":[{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"null"}]},"p75":{"oneOf":[{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"null"}]},"p90":{"oneOf":[{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"null"}]},"p99":{"oneOf":[{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"null"}]}}},{"type":"null","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100}]},"quantizations":{"oneOf":[{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string"},"type":"array"},{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string"},"type":"null"}]},"require_parameters":{"oneOf":[{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"boolean"},{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"null"}]},"sort":{"oneOf":[{"type":"string","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","enum":["price","throughput","latency","exacto"],"example":"price"},{"type":"object","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","properties":{"by":{"oneOf":[{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"string"},{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"null"}]},"partition":{"oneOf":[{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"string"},{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"null"}]}}},{"type":"null","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price"}]},"zdr":{"oneOf":[{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"boolean"},{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"null"}]}},"type":"null","uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider","typeLabel":"object | null"},"route":{"oneOf":[{"deprecated":true,"description":"**DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: \"fallback\" (maps to \"model\"), \"sort\" (maps to \"none\").","enum":["fallback","sort",null],"example":"fallback","type":"string","x-fern-ignore":true,"x-speakeasy-deprecation-message":"Use providers.sort.partition instead.","x-speakeasy-ignore":true,"uniqueKey":"route.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"**DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: \"fallback\" (maps to \"model\"), \"sort\" (maps to \"none\").","enum":["fallback","sort",null],"example":"fallback","type":"null","x-fern-ignore":true,"x-speakeasy-deprecation-message":"Use providers.sort.partition instead.","x-speakeasy-ignore":true,"uniqueKey":"route.oneOf.1","typeLabel":"null"}],"uniqueKey":"route","typeLabel":"enum\u003cstring> | null"},"safeguards":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguards.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"A server-side safeguard Anthropic evaluates alongside the completion","example":{"classifier_context":{"permission_mode":"auto","v":1},"type":"dangerous_tool_use"},"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"safeguards.oneOf.0.items.[INDEX].type","typeLabel":"string"},"classifier_context":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguards.oneOf.0.items.[INDEX].classifier_context.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"safeguards.oneOf.0.items.[INDEX].classifier_context","typeLabel":"object"}},"required":["type"],"type":"object","uniqueKey":"safeguards.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"safeguards.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"A server-side safeguard Anthropic evaluates alongside the completion","example":{"classifier_context":{"permission_mode":"auto","v":1},"type":"dangerous_tool_use"},"properties":{"classifier_context":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"null","uniqueKey":"safeguards.oneOf.1","typeLabel":"null"}],"uniqueKey":"safeguards","typeLabel":"object[] | null"},"service_tier":{"type":"string","uniqueKey":"service_tier","typeLabel":"string"},"session_id":{"description":"A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.","maxLength":256,"type":"string","uniqueKey":"session_id","typeLabel":"string"},"speed":{"oneOf":[{"type":"string","description":"Controls output generation speed. When set to `fast`, uses a higher-speed inference configuration at premium pricing. Defaults to `standard` when omitted.","enum":["fast","standard",null],"example":"fast","uniqueKey":"speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Controls output generation speed. When set to `fast`, uses a higher-speed inference configuration at premium pricing. Defaults to `standard` when omitted.","enum":["fast","standard",null],"example":"fast","uniqueKey":"speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"speed","typeLabel":"enum\u003cstring> | null"},"stop_sequences":{"items":{"type":"string","uniqueKey":"stop_sequences.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"stop_sequences","typeLabel":"string[]"},"stop_server_tools_when":{"description":"Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.","example":[{"step_count":5,"type":"step_count_is"},{"max_cost_in_dollars":0.5,"type":"max_cost"}],"items":{"oneOf":[{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","step_count"],"example":{"step_count":5,"type":"step_count_is"},"properties":{"step_count":{"type":"integer","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0.step_count","typeLabel":"integer"},"type":{"enum":["step_count_is"],"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","tool_name"],"example":{"tool_name":"finalize","type":"step_count_is"},"properties":{"tool_name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1.tool_name","typeLabel":"string"},"type":{"enum":["has_tool_call"],"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","max_tokens"],"example":{"max_tokens":10000,"type":"step_count_is"},"properties":{"max_tokens":{"type":"integer","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2.max_tokens","typeLabel":"integer"},"type":{"enum":["max_tokens_used"],"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","max_cost_in_dollars"],"example":{"max_cost_in_dollars":0.5,"type":"step_count_is"},"properties":{"max_cost_in_dollars":{"format":"double","type":"number","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3.max_cost_in_dollars","typeLabel":"number\u003cdouble>"},"type":{"enum":["max_cost"],"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","reason"],"example":{"reason":"length","type":"step_count_is"},"properties":{"reason":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"type":{"enum":["finish_reason_is"],"type":"string","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"stop_server_tools_when.items.[INDEX]","typeLabel":"object"},"minItems":1,"type":"array","uniqueKey":"stop_server_tools_when","typeLabel":"object[]"},"stream":{"type":"boolean","uniqueKey":"stream","typeLabel":"boolean"},"system":{"oneOf":[{"type":"string","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"oneOf":[{"type":"string"},{"type":"null"}]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"type":"string"}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["search_result_location"],"type":"string"}}}]},"type":"null","uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"system.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"system","typeLabel":"string | object[]"},"temperature":{"format":"double","type":"number","uniqueKey":"temperature","typeLabel":"number\u003cdouble>"},"thinking":{"oneOf":[{"type":"object","required":["type","budget_tokens"],"properties":{"budget_tokens":{"type":"integer","isRequired":true,"uniqueKey":"thinking.oneOf.0.budget_tokens","typeLabel":"integer"},"type":{"enum":["enabled"],"type":"string","isRequired":true,"uniqueKey":"thinking.oneOf.0.type","typeLabel":"enum\u003cstring>"},"block_binding":{"oneOf":[{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior","typeLabel":"enum\u003cstring> | null"},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["error","drop_block",null],"type":"null","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior","typeLabel":"enum\u003cstring> | null"}},"type":"object","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null"}]},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string"},{"enum":["error","drop_block",null],"type":"null"}]}},"type":"null","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding","typeLabel":"object | null"},"display":{"oneOf":[{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"string","uniqueKey":"thinking.oneOf.0.display.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"null","uniqueKey":"thinking.oneOf.0.display.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.display","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"thinking.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"thinking.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"thinking.oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["adaptive"],"type":"string","isRequired":true,"uniqueKey":"thinking.oneOf.2.type","typeLabel":"enum\u003cstring>"},"block_binding":{"oneOf":[{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior","typeLabel":"enum\u003cstring> | null"},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["error","drop_block",null],"type":"null","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior","typeLabel":"enum\u003cstring> | null"}},"type":"object","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null"}]},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string"},{"enum":["error","drop_block",null],"type":"null"}]}},"type":"null","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding","typeLabel":"object | null"},"display":{"oneOf":[{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"string","uniqueKey":"thinking.oneOf.2.display.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"null","uniqueKey":"thinking.oneOf.2.display.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.display","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"thinking.oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["between_tools"],"type":"string","isRequired":true,"uniqueKey":"thinking.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"thinking.oneOf.3","typeLabel":"object"}],"uniqueKey":"thinking","typeLabel":"object"},"tool_choice":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"enum":["auto"],"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.0.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","uniqueKey":"tool_choice.oneOf.0.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["any"],"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","uniqueKey":"tool_choice.oneOf.1.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["none"],"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.name","typeLabel":"string"},"type":{"enum":["tool"],"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","uniqueKey":"tool_choice.oneOf.3.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"object"},"tools":{"items":{"oneOf":[{"type":"object","required":["name","input_schema"],"properties":{"input_schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.additionalProperties","typeLabel":"any"},"properties":{"properties":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.properties","typeLabel":"any"},"required":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required","typeLabel":"string[] | null"},"type":{"default":"object","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.type","typeLabel":"string"}},"type":"object","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.name","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.0.defer_loading","typeLabel":"boolean"},"description":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.description","typeLabel":"string"},"strict":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.0.strict","typeLabel":"boolean"},"type":{"enum":["custom"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["bash"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_20250124"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["str_replace_editor"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["text_editor_20250124"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["web_search"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20250305"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["web_search"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20260209"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_callers","typeLabel":"enum\u003cstring>[]"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]},"region":{"oneOf":[{"type":"string"},{"type":"null"}]},"timezone":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","name","model"],"properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.model","typeLabel":"string"},"name":{"enum":["advisor"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["advisor_20260301"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.5.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.5.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control","typeLabel":"object"},"caching":{"oneOf":[{"type":"object","description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","required":["type"],"example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.5.caching","typeLabel":"object | null"},"defer_loading":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.5.defer_loading","typeLabel":"boolean"},"max_uses":{"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.5.max_uses","typeLabel":"integer"}},"uniqueKey":"tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container","required":["type"],"example":{"parameters":{"environment":{"type":"container_auto"}},"type":"openrouter:bash"},"properties":{"type":{"enum":["openrouter:bash"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:bash server tool","example":{"environment":{"type":"container_auto"}},"properties":{"engine":{"description":"Which bash engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) and \"native\" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.","enum":["auto","native","openrouter"],"example":"auto","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.engine","typeLabel":"enum\u003cstring>"},"environment":{"oneOf":[{"type":"object","description":"Execution environment for the bash server tool.","required":["type"],"example":{"type":"container_auto"},"properties":{"type":{"enum":["container_auto"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0","typeLabel":"object"},{"type":"object","description":"Execution environment for the bash server tool.","required":["type","container_id"],"example":{"container_id":"sess_abc123","type":"container_auto"},"properties":{"container_id":{"description":"Canonical container id to reuse (max 40 characters, letters/digits/underscores/hyphens). Any container_id previously returned by a bash or shell tool result works here and reattaches to the same container and files — including session-derived ids (sess_...) and generation-derived ids (gen_...). Note that a session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id you sent. Using the same container_id from both the bash and shell tools shares the same files, with last-write-wins when both flush concurrently. A fresh name creates a new persistent container. Containers are always scoped to your account and workspace.","example":"sess_abc123","maxLength":40,"minLength":1,"pattern":"^[\\w-]+$","type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.container_id","typeLabel":"string"},"type":{"enum":["container_reference"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: returns the current date and time","required":["type"],"example":{"parameters":{"timezone":"America/New_York"},"type":"openrouter:datetime"},"properties":{"type":{"enum":["openrouter:datetime"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:datetime server tool","example":{"timezone":"America/New_York"},"properties":{"timezone":{"description":"IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC.","example":"America/New_York","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.7.parameters.timezone","typeLabel":"string"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.7.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: generates images from text prompts using an image generation model","required":["type"],"example":{"parameters":{"model":"openai/gpt-5-image","quality":"high","size":"1024x1024"},"type":"openrouter:image_generation"},"properties":{"type":{"enum":["openrouter:image_generation"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"parameters":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.2","typeLabel":"any[]"}],"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties","typeLabel":"string | number\u003cdouble> | any[]"},"description":"Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.","example":{"aspect_ratio":"16:9","model":"openai/gpt-5-image","quality":"high"},"properties":{"model":{"description":"Which image generation model to use (e.g. \"openai/gpt-5-image\"). Defaults to \"openai/gpt-5-image\".","example":"openai/gpt-5-image","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.model","typeLabel":"string"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: searches and filters AI models available on OpenRouter","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:experimental__search_models"},"properties":{"type":{"enum":["openrouter:experimental__search_models"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:experimental__search_models server tool","example":{"max_results":5},"properties":{"max_results":{"description":"Maximum number of models to return. Defaults to 5, max 20.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.9.parameters.max_results","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.9.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: fetches full content from a URL (web page or PDF)","required":["type"],"example":{"parameters":{"max_uses":10},"type":"openrouter:web_fetch"},"properties":{"type":{"enum":["openrouter:web_fetch"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:web_fetch server tool","example":{"max_content_tokens":100000,"max_uses":10},"properties":{"allowed_domains":{"description":"Only fetch from these domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"description":"Never fetch from these domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.blocked_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.blocked_domains","typeLabel":"string[]"},"engine":{"description":"Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape. \"parallel\" uses the Parallel extract API.","enum":["auto","native","openrouter","exa","parallel","firecrawl"],"example":"auto","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.engine","typeLabel":"enum\u003cstring>"},"max_content_tokens":{"description":"Maximum content length in approximate tokens. Content exceeding this limit is truncated.","example":100000,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.max_content_tokens","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web fetches per request. Once exceeded, the tool returns an error.","example":10,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.max_uses","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: searches the web for current information","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:web_search"},"properties":{"type":{"enum":["openrouter:web_search"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"parameters":{"example":{"max_results":5,"search_context_size":"medium"},"properties":{"allowed_domains":{"description":"Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, SpaceXAI). Cannot be used with excluded_domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.allowed_domains","typeLabel":"string[]"},"engine":{"description":"Which search engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in search. \"exa\" forces the Exa search API. \"firecrawl\" uses the Firecrawl search API. \"parallel\" uses the Parallel search API. \"perplexity\" uses the Perplexity Search API (raw ranked results).","enum":["native","exa","parallel","firecrawl","perplexity","auto"],"example":"auto","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.engine","typeLabel":"enum\u003cstring>"},"excluded_domains":{"description":"Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and SpaceXAI. Cannot be used with allowed_domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.excluded_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.excluded_domains","typeLabel":"string[]"},"max_characters":{"description":"Exact maximum number of characters of content per search result. Applies to the Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, caps highlight content per result. For Parallel, caps excerpt content per result (default 1,500 when omitted). For Perplexity, maps to the native `max_tokens_per_page` parameter (converted from characters to tokens) and trims the response to the exact character cap. When both `max_characters` and `search_context_size` are set, `max_characters` takes precedence. When omitted, falls back to `search_context_size` mapping (Exa) or engine defaults (Parallel, Perplexity).","example":2000,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_characters","typeLabel":"integer"},"max_results":{"description":"Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_results","typeLabel":"integer"},"max_total_results":{"description":"Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified.","example":50,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_total_results","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web searches the model may perform in a single request. Once reached, further search calls return an error result instead of executing. Applies to the Exa, Firecrawl, Parallel, and Perplexity engines. With native provider search, forwarded only to Anthropic (as `max_uses`); other native search providers have no equivalent parameter and ignore it.","example":3,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_uses","typeLabel":"integer"},"mode":{"description":"Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.","enum":["instant","fast","auto","deep-lite","deep","deep-reasoning","turbo","basic","advanced"],"example":"auto","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.mode","typeLabel":"enum\u003cstring>"},"search_context_size":{"description":"How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.","enum":["low","medium","high"],"example":"medium","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.search_context_size","typeLabel":"enum\u003cstring>"},"user_location":{"description":"Approximate user location for location-biased results.","example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone","typeLabel":"string | null"},"type":{"enum":["approximate"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.type","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location","typeLabel":"object"},"x_search":{"additionalProperties":false,"description":"Enable SpaceXAI X (Twitter) search alongside native web search, with optional filters. Only applies to SpaceXAI endpoints with native search; omit to search the web only. X search is billed separately by SpaceXAI, per post and per user profile fetched.","example":{"allowed_x_handles":["OpenRouterAI"],"from_date":"2025-01-01"},"properties":{"allowed_x_handles":{"description":"Only include posts from these X handles (max 20). Cannot be used with excluded_x_handles.","example":["OpenRouterAI"],"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.allowed_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.allowed_x_handles","typeLabel":"string[]"},"enable_image_understanding":{"description":"Analyze images attached to matching posts.","type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.enable_image_understanding","typeLabel":"boolean"},"enable_video_understanding":{"description":"Analyze videos attached to matching posts.","type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.enable_video_understanding","typeLabel":"boolean"},"excluded_x_handles":{"description":"Exclude posts from these X handles (max 20). Cannot be used with allowed_x_handles.","example":["spamaccount"],"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.excluded_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.excluded_x_handles","typeLabel":"string[]"},"from_date":{"description":"Start of the post date range (ISO 8601 date, e.g. \"2025-01-01\").","example":"2025-01-01","format":"date","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.from_date","typeLabel":"string\u003cdate>"},"to_date":{"description":"End of the post date range (ISO 8601 date, e.g. \"2025-12-31\").","example":"2025-12-31","format":"date","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.to_date","typeLabel":"string\u003cdate>"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.12.type","typeLabel":"string"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.12.additionalProperties","typeLabel":"any"},"uniqueKey":"tools.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["tool_search_tool_bm25"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["tool_search_tool_bm25_20251119","tool_search_tool_bm25"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.13.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.13.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.13.defer_loading","typeLabel":"boolean"},"strict":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.13.strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["tool_search_tool_regex"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["tool_search_tool_regex_20251119","tool_search_tool_regex"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.14.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.14.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.14.defer_loading","typeLabel":"boolean"},"strict":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.14.strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)","required":["type"],"example":{"parameters":{"engine":"openrouter","environment":{"type":"container_auto"}},"type":"openrouter:shell"},"properties":{"type":{"enum":["openrouter:shell"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:shell server tool","example":{"engine":"openrouter","environment":{"type":"container_auto"}},"properties":{"engine":{"description":"Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.","enum":["auto","openrouter"],"example":"openrouter","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.engine","typeLabel":"enum\u003cstring>"},"environment":{"oneOf":[{"type":"object","description":"Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.","required":["type"],"example":{"type":"container_auto"},"properties":{"type":{"enum":["container_auto"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0","typeLabel":"object"},{"type":"object","description":"Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.","required":["type","container_id"],"example":{"container_id":"sess_abc123","type":"container_auto"},"properties":{"container_id":{"description":"Canonical container id to reuse (max 40 characters, letters/digits/underscores/hyphens). Any container_id previously returned by a bash or shell tool result works here and reattaches to the same container and files — including session-derived ids (sess_...) and generation-derived ids (gen_...). Note that a session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id you sent. Using the same container_id from both the bash and shell tools shares the same files, with last-write-wins when both flush concurrently. A fresh name creates a new persistent container. Containers are always scoped to your account and workspace.","example":"sess_abc123","maxLength":40,"minLength":1,"pattern":"^[\\w-]+$","type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.container_id","typeLabel":"string"},"type":{"enum":["container_reference"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:tool_search"},"properties":{"type":{"enum":["openrouter:tool_search"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:tool_search server tool","example":{"max_results":5},"properties":{"max_results":{"description":"Maximum tools returned by one search. Defaults to 5.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.16.parameters.max_results","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.16.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"tools","typeLabel":"object[]"},"top_k":{"type":"integer","uniqueKey":"top_k","typeLabel":"integer"},"top_p":{"format":"double","type":"number","uniqueKey":"top_p","typeLabel":"number\u003cdouble>"},"trace":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"trace.additionalProperties","typeLabel":"any"},"description":"Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.","example":{"trace_id":"trace-abc123","trace_name":"my-app-trace"},"properties":{"generation_name":{"type":"string","uniqueKey":"trace.generation_name","typeLabel":"string"},"parent_span_id":{"type":"string","uniqueKey":"trace.parent_span_id","typeLabel":"string"},"span_name":{"type":"string","uniqueKey":"trace.span_name","typeLabel":"string"},"trace_id":{"type":"string","uniqueKey":"trace.trace_id","typeLabel":"string"},"trace_name":{"type":"string","uniqueKey":"trace.trace_name","typeLabel":"string"}},"type":"object","uniqueKey":"trace","typeLabel":"object"},"user":{"description":"A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.","maxLength":256,"type":"string","uniqueKey":"user","typeLabel":"string"}},"required":["model","messages"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"max_tokens":1024,"messages":[{"content":"Hello!","role":"user"}],"model":"anthropic/claude-4.6-sonnet","system":"You are a helpful assistant."}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"f5c33ba7-9528-45b1-a0bd-68ecb9f345b6":{"content":{"application/json":{"example":{"data":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"max_tokens":1024,"model":"anthropic/claude-4.6-sonnet"},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}},"schema":{"description":"Response containing the created preset with its designated version.","example":{"data":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}},"properties":{"data":{"type":"object","description":"A preset with its currently designated version.","required":["designated_version","id","creator_user_id","workspace_id","name","slug","description","status","designated_version_id","created_at","updated_at","status_updated_at"],"example":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002","designated_version":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1}},"properties":{"created_at":{"type":"string","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string"},"creator_user_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.creator_user_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.creator_user_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.creator_user_id","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.description","typeLabel":"string | null"},"designated_version_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.designated_version_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.designated_version_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.designated_version_id","typeLabel":"string | null"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"slug":{"type":"string","isRequired":true,"uniqueKey":"data.slug","typeLabel":"string"},"status":{"description":"The status of a preset.","enum":["active","disabled","archived"],"example":"active","type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"status_updated_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.status_updated_at","typeLabel":"string | null"},"updated_at":{"type":"string","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string"},"workspace_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.workspace_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.workspace_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.workspace_id","typeLabel":"string | null"},"designated_version":{"oneOf":[{"description":"A specific version of a preset, containing config and optional system prompt.","example":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"properties":{"config":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.designated_version.oneOf.0.config.additionalProperties","typeLabel":"any"},"type":"object","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.config","typeLabel":"object"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.created_at","typeLabel":"string"},"creator_id":{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.creator_id","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.id","typeLabel":"string"},"preset_id":{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.preset_id","typeLabel":"string"},"system_prompt":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.system_prompt.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.system_prompt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.system_prompt","typeLabel":"string | null"},"updated_at":{"type":"string","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.updated_at","typeLabel":"string"},"version":{"type":"integer","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0.version","typeLabel":"integer"}},"required":["id","preset_id","creator_id","version","system_prompt","config","created_at","updated_at"],"type":"object","isRequired":true,"uniqueKey":"data.designated_version.oneOf.0","typeLabel":"object"},{"description":"A specific version of a preset, containing config and optional system prompt.","example":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"properties":{"config":{"additionalProperties":{"oneOf":[{}]},"type":"object"},"created_at":{"type":"string"},"creator_id":{"type":"string"},"id":{"type":"string"},"preset_id":{"type":"string"},"system_prompt":{"oneOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"type":"string"},"version":{"type":"integer"}},"required":["id","preset_id","creator_id","version","system_prompt","config","created_at","updated_at"],"type":"null","isRequired":true,"uniqueKey":"data.designated_version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.designated_version","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"max_tokens":1024,"model":"anthropic/claude-4.6-sonnet"},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}}}},"exampleType":"examples"}},"description":"Preset created or updated successfully.","exampleType":"examples"},"6e44fdc1-f577-4310-9302-e155573f9149":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"description":"Bad Request - Invalid request parameters or malformed input","example":{"error":{"code":400,"message":"Invalid request parameters"}},"properties":{"error":{"description":"Error data for BadRequestResponse","example":{"code":400,"message":"Invalid request parameters"},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":400,"message":"Invalid request parameters"}}}},"exampleType":"examples"}},"description":"Bad Request - Invalid request parameters or malformed input","exampleType":"examples"},"628b2cdc-8a17-49f2-b4af-0868728bb1bc":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"description":"Unauthorized - Authentication required or invalid credentials","example":{"error":{"code":401,"message":"Missing Authentication header"}},"properties":{"error":{"description":"Error data for UnauthorizedResponse","example":{"code":401,"message":"Missing Authentication header"},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":401,"message":"Missing Authentication header"}}}},"exampleType":"examples"}},"description":"Unauthorized - Authentication required or invalid credentials","exampleType":"examples"},"5fec8704-cd42-47c8-993e-71068b8c595c":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"description":"Forbidden - Authentication successful but insufficient permissions","example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"properties":{"error":{"description":"Error data for ForbiddenResponse","example":{"code":403,"message":"Only management keys can perform this operation"},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":403,"message":"Only management keys can perform this operation"}}}},"exampleType":"examples"}},"description":"Forbidden - Authentication successful but insufficient permissions","exampleType":"examples"},"08533f84-3891-4fd6-b090-dc952a68222d":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"description":"Not Found - Resource does not exist","example":{"error":{"code":404,"message":"Resource not found"}},"properties":{"error":{"description":"Error data for NotFoundResponse","example":{"code":404,"message":"Resource not found"},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":404,"message":"Resource not found"}}}},"exampleType":"examples"}},"description":"Not Found - Resource does not exist","exampleType":"examples"},"9bc785fb-5023-4792-982f-18902e8e35f8":{"content":{"application/json":{"example":{"error":{"code":409,"message":"Resource conflict. Please try again later."}},"schema":{"description":"Conflict - Resource conflict or concurrent modification","example":{"error":{"code":409,"message":"Resource conflict. Please try again later."}},"properties":{"error":{"description":"Error data for ConflictResponse","example":{"code":409,"message":"Resource conflict. Please try again later."},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":409,"message":"Resource conflict. Please try again later."}}}},"exampleType":"examples"}},"description":"Conflict - Resource conflict or concurrent modification","exampleType":"examples"},"60027107-ee2f-4112-8b01-d94862783b60":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"description":"Internal Server Error - Unexpected server error","example":{"error":{"code":500,"message":"Internal Server Error"}},"properties":{"error":{"description":"Error data for InternalServerResponse","example":{"code":500,"message":"Internal Server Error"},"properties":{"code":{"type":"integer","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"error.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"error.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.metadata","typeLabel":"object | null"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"},"user_id":{"oneOf":[{"type":"string","uniqueKey":"user_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_id","typeLabel":"string | null"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":500,"message":"Internal Server Error"}}}},"exampleType":"examples"}},"description":"Internal Server Error - Unexpected server error","exampleType":"examples"}},"security":{"217c5a33-2688-458f-a602-462aebf59acb":{"apiKey":{"description":"API key as bearer token in Authorization header","scheme":"bearer","type":"http","scopes":[],"schemeName":"apiKey"}}},"servers":{"7075e944-05e2-4e86-8b6c-ac9eb4ffd9f1":{"description":"Production server","url":"https://openrouter.ai/api/v1","x-speakeasy-server-id":"production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"API key as bearer token in Authorization header","scheme":"bearer","type":"http","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key as bearer token in Authorization header","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi/openapi.yaml"},"subdomain":"openrouter-d02e98a0","siteName":"OpenRouter | Documentation","title":"Create a preset from a messages request body - OpenRouter | Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T21:37:10.049Z","originalFileLocation":"/api/api-reference/presets/create-a-preset-from-a-messages-request-body.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenRouter | Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a preset from a messages request body - OpenRouter | Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenRouter | Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://openrouter.ai/docs/api/api-reference/presets/create-a-preset-from-a-messages-request-body\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://openrouter-d02e98a0.mintlify.app/_mintlify/api/og/v2?division=Presets\u0026amp;title=Create+a+preset+from+a+messages+request+body\u0026amp;description=Creates+a+preset+%28or+a+new+version+of+an+existing+one%29+from+an+inference+request+body.+Only+fields+that+overlap+with+the+preset+config+are+persisted%3B+other+fiel\u0026amp;theme=dbe1bfd215f87f8a607a08b0\u0026amp;signature=51b71b19fd5db96ec68eb76c64522fe179c79f01fba2ac9eec6e4e54dbe70026\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a preset from a messages request body - OpenRouter | Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openrouter-d02e98a0.mintlify.app/_mintlify/api/og/v2?division=Presets\u0026amp;title=Create+a+preset+from+a+messages+request+body\u0026amp;description=Creates+a+preset+%28or+a+new+version+of+an+existing+one%29+from+an+inference+request+body.+Only+fields+that+overlap+with+the+preset+config+are+persisted%3B+other+fiel\u0026amp;theme=dbe1bfd215f87f8a607a08b0\u0026amp;signature=51b71b19fd5db96ec68eb76c64522fe179c79f01fba2ac9eec6e4e54dbe70026\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/openrouter-d02e98a0/EmhfYwFO2tvnkuV-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenRouter | Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7624F4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://openrouter.ai/docs/api/api-reference/presets/create-a-preset-from-a-messages-request-body\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api/api-reference/presets/create-a-preset-from-a-messages-request-body.md\">","siteName":"OpenRouter | Documentation","nav":{"global":null,"tabs":[{"tab":"Docs","icon":"book","pages":[{"title":"Docs","href":"/quickstart"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"API Guides","icon":"code","pages":[{"title":"API Reference","icon":"book-open","sidebarTitle":"Overview","href":"/api_reference/overview"},{"title":"Streaming","icon":"bars-staggered","href":"/api_reference/streaming"},{"title":"Embeddings","icon":"draw-square","href":"/api_reference/embeddings"},{"title":"Limits","icon":"gauge-high","href":"/api_reference/limits"},{"title":"Authentication","icon":"lock","href":"/api_reference/authentication"},{"title":"Parameters","icon":"gear","href":"/api_reference/parameters"},{"title":"Errors and Debugging","icon":"triangle-exclamation","href":"/api_reference/errors-and-debugging"},{"group":"Responses API","icon":"reply","pages":[{"title":"Responses API","sidebarTitle":"Overview","icon":"compass","href":"/api_reference/responses/overview"},{"title":"Basic Usage","icon":"play","href":"/api_reference/responses/basic-usage"},{"title":"Reasoning","icon":"lightbulb","href":"/api_reference/responses/reasoning"},{"title":"Tool Calling","icon":"toolbox","href":"/api_reference/responses/tool-calling"},{"title":"Web Search","icon":"globe-pointer","href":"/api_reference/responses/web-search"},{"title":"Error Handling","icon":"triangle-exclamation","href":"/api_reference/responses/error-handling"}]}]},{"group":"Versioning","icon":"code-branch","pages":[{"title":"API Versioning","icon":"code-branch","href":"/api_reference/versioning"},{"title":"API Changelog","icon":"clock-rotate-left","href":"/changelog"}]},{"group":"API Reference","icon":"code","pages":[{"group":"Analytics","pages":[{"title":"Get user activity grouped by endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /activity","href":"/api/api-reference/analytics/get-user-activity-grouped-by-endpoint"},{"title":"Get available analytics metrics and dimensions","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /analytics/meta","href":"/api/api-reference/analytics/get-available-analytics-metrics-and-dimensions"},{"title":"Query analytics data","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /analytics/query","href":"/api/api-reference/analytics/query-analytics-data"}]},{"group":"alpha.decisions","pages":[{"title":"Submit a Decisions request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /api/alpha/decisions","href":"/api/api-reference/alphadecisions/submit-a-decisions-request"}]},{"group":"alpha.extractions","pages":[{"title":"Submit an Extractions request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /api/alpha/extractions","href":"/api/api-reference/alphaextractions/submit-an-extractions-request"}]},{"group":"TTS","pages":[{"title":"Create speech","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /audio/speech","href":"/api/api-reference/tts/create-speech"}]},{"group":"STT","pages":[{"title":"Create transcription","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /audio/transcriptions","href":"/api/api-reference/stt/create-transcription"}]},{"group":"OAuth","pages":[{"title":"Exchange authorization code for API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /auth/keys","href":"/api/api-reference/oauth/exchange-authorization-code-for-api-key"},{"title":"Create authorization code","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /auth/keys/code","href":"/api/api-reference/oauth/create-authorization-code"},{"title":"OpenRouter access token signing keys","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /oauth/jwks","href":"/api/api-reference/oauth/openrouter-access-token-signing-keys"},{"title":"Exchange a workload identity token","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /oauth/token","href":"/api/api-reference/oauth/exchange-a-workload-identity-token"}]},{"group":"Batch","pages":[{"title":"List batches","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /batches","href":"/api/api-reference/batch/list-batches"},{"title":"Create a batch","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /batches","href":"/api/api-reference/batch/create-a-batch"},{"title":"Get a batch","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /batches/{id}","href":"/api/api-reference/batch/get-a-batch"},{"title":"Delete a batch","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /batches/{id}","href":"/api/api-reference/batch/delete-a-batch"}]},{"group":"Benchmarks","pages":[{"title":"List Benchmarks","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /benchmarks","href":"/api/api-reference/benchmarks/list-benchmarks"}]},{"group":"BYOK","pages":[{"title":"List BYOK provider credentials","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /byok","href":"/api/api-reference/byok/list-byok-provider-credentials"},{"title":"Create a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /byok","href":"/api/api-reference/byok/create-a-byok-provider-credential"},{"title":"Get a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /byok/{id}","href":"/api/api-reference/byok/get-a-byok-provider-credential"},{"title":"Delete a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /byok/{id}","href":"/api/api-reference/byok/delete-a-byok-provider-credential"},{"title":"Update a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /byok/{id}","href":"/api/api-reference/byok/update-a-byok-provider-credential"}]},{"group":"Chat","pages":[{"title":"Create a chat completion","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /chat/completions","href":"/api/api-reference/chat/create-a-chat-completion"}]},{"group":"Classifications","pages":[{"title":"Task classification market share","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /classifications/task","href":"/api/api-reference/classifications/task-classification-market-share"}]},{"group":"Containers","pages":[{"title":"List container files","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /containers/{container_id}/files","href":"/api/api-reference/containers/list-container-files"},{"title":"Retrieve a container file","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /containers/{container_id}/files/{file_id}","href":"/api/api-reference/containers/retrieve-a-container-file"},{"title":"Download container file content","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /containers/{container_id}/files/{file_id}/content","href":"/api/api-reference/containers/download-container-file-content"},{"title":"Promote a container file into workspace documents","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /containers/{container_id}/files/{file_id}/promote","href":"/api/api-reference/containers/promote-a-container-file-into-workspace-documents"}]},{"group":"Credits","pages":[{"title":"Get remaining credits","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /credits","href":"/api/api-reference/credits/get-remaining-credits"},{"title":"Deprecated Coinbase Commerce charge endpoint","deprecated":true,"version":null,"openapi":"/openapi/openapi.yaml post /credits/coinbase","href":"/api/api-reference/credits/deprecated-coinbase-commerce-charge-endpoint"}]},{"group":"Datasets","pages":[{"title":"Top apps by token usage","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /datasets/app-rankings","href":"/api/api-reference/datasets/top-apps-by-token-usage"},{"title":"Daily token totals for top 50 models","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /datasets/rankings-daily","href":"/api/api-reference/datasets/daily-token-totals-for-top-50-models"},{"title":"Cost per session by harness and model","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /datasets/session-cost","href":"/api/api-reference/datasets/cost-per-session-by-harness-and-model"}]},{"group":"Embeddings","pages":[{"title":"Submit an embedding request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /embeddings","href":"/api/api-reference/embeddings/submit-an-embedding-request"},{"title":"List all embeddings models","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /embeddings/models","href":"/api/api-reference/embeddings/list-all-embeddings-models"}]},{"group":"Endpoints","pages":[{"title":"Preview the impact of ZDR on the available endpoints","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /endpoints/zdr","href":"/api/api-reference/endpoints/preview-the-impact-of-zdr-on-the-available-endpoints"},{"title":"List all endpoints for a model","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /models/{author}/{slug}/endpoints","href":"/api/api-reference/endpoints/list-all-endpoints-for-a-model"}]},{"group":"External Users","pages":[{"title":"List registered external users","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /external-users","href":"/api/api-reference/external-users/list-registered-external-users"},{"title":"Register an external user","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /external-users","href":"/api/api-reference/external-users/register-an-external-user"},{"title":"Get a registered external user","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /external-users/{user}","href":"/api/api-reference/external-users/get-a-registered-external-user"},{"title":"Deactivate a registered external user","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /external-users/{user}","href":"/api/api-reference/external-users/deactivate-a-registered-external-user"},{"title":"Update a registered external user","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /external-users/{user}","href":"/api/api-reference/external-users/update-a-registered-external-user"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /files","href":"/api/api-reference/files/list-files"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /files","href":"/api/api-reference/files/upload-a-file"},{"title":"Get file metadata","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /files/{file_id}","href":"/api/api-reference/files/get-file-metadata"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /files/{file_id}","href":"/api/api-reference/files/delete-a-file"},{"title":"Download file content","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /files/{file_id}/content","href":"/api/api-reference/files/download-file-content"}]},{"group":"Generations","pages":[{"title":"Get request \u0026 usage metadata for a generation","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /generation","href":"/api/api-reference/generations/get-request-\u0026-usage-metadata-for-a-generation"},{"title":"Get stored prompt, completion, and error content for a generation","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /generation/content","href":"/api/api-reference/generations/get-stored-prompt-completion-and-error-content-for-a-generation"},{"title":"Submit feedback for a generation","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /generation/feedback","href":"/api/api-reference/generations/submit-feedback-for-a-generation"}]},{"group":"Guardrails","pages":[{"title":"List guardrails","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails","href":"/api/api-reference/guardrails/list-guardrails"},{"title":"Create a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /guardrails","href":"/api/api-reference/guardrails/create-a-guardrail"},{"title":"Get a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails/{id}","href":"/api/api-reference/guardrails/get-a-guardrail"},{"title":"Delete a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /guardrails/{id}","href":"/api/api-reference/guardrails/delete-a-guardrail"},{"title":"Update a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /guardrails/{id}","href":"/api/api-reference/guardrails/update-a-guardrail"},{"title":"List key assignments for a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails/{id}/assignments/keys","href":"/api/api-reference/guardrails/list-key-assignments-for-a-guardrail"},{"title":"Bulk assign keys to a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /guardrails/{id}/assignments/keys","href":"/api/api-reference/guardrails/bulk-assign-keys-to-a-guardrail"},{"title":"Bulk unassign keys from a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /guardrails/{id}/assignments/keys/remove","href":"/api/api-reference/guardrails/bulk-unassign-keys-from-a-guardrail"},{"title":"List member assignments for a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails/{id}/assignments/members","href":"/api/api-reference/guardrails/list-member-assignments-for-a-guardrail"},{"title":"Bulk assign members to a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /guardrails/{id}/assignments/members","href":"/api/api-reference/guardrails/bulk-assign-members-to-a-guardrail"},{"title":"Bulk unassign members from a guardrail","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /guardrails/{id}/assignments/members/remove","href":"/api/api-reference/guardrails/bulk-unassign-members-from-a-guardrail"},{"title":"List all key assignments","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails/assignments/keys","href":"/api/api-reference/guardrails/list-all-key-assignments"},{"title":"List all member assignments","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /guardrails/assignments/members","href":"/api/api-reference/guardrails/list-all-member-assignments"}]},{"group":"Images","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /images","href":"/api/api-reference/images/generate-an-image"},{"title":"List image generation models","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /images/models","href":"/api/api-reference/images/list-image-generation-models"},{"title":"List endpoints for an image model","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /images/models/{author}/{slug}/endpoints","href":"/api/api-reference/images/list-endpoints-for-an-image-model"}]},{"group":"API Keys","pages":[{"title":"Get current API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /key","href":"/api/api-reference/api-keys/get-current-api-key"},{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /keys","href":"/api/api-reference/api-keys/list-api-keys"},{"title":"Create a new API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /keys","href":"/api/api-reference/api-keys/create-a-new-api-key"},{"title":"Get a single API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /keys/{hash}","href":"/api/api-reference/api-keys/get-a-single-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /keys/{hash}","href":"/api/api-reference/api-keys/delete-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /keys/{hash}","href":"/api/api-reference/api-keys/update-an-api-key"}]},{"group":"Anthropic Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /messages","href":"/api/api-reference/anthropic-messages/create-a-message"}]},{"group":"Models","pages":[{"title":"Get a model by its slug","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /model/{author}/{slug}","href":"/api/api-reference/models/get-a-model-by-its-slug"},{"title":"List all models and their properties","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /models","href":"/api/api-reference/models/list-all-models-and-their-properties"},{"title":"Get total count of available models","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /models/count","href":"/api/api-reference/models/get-total-count-of-available-models"},{"title":"List models filtered by user provider preferences, privacy settings, and guardrails","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /models/user","href":"/api/api-reference/models/list-models-filtered-by-user-provider-preferences-privacy-settings-and-guardrails"}]},{"group":"Observability","pages":[{"title":"List observability destinations","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /observability/destinations","href":"/api/api-reference/observability/list-observability-destinations"},{"title":"Create an observability destination","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /observability/destinations","href":"/api/api-reference/observability/create-an-observability-destination"},{"title":"Get an observability destination","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /observability/destinations/{id}","href":"/api/api-reference/observability/get-an-observability-destination"},{"title":"Delete an observability destination","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /observability/destinations/{id}","href":"/api/api-reference/observability/delete-an-observability-destination"},{"title":"Update an observability destination","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /observability/destinations/{id}","href":"/api/api-reference/observability/update-an-observability-destination"}]},{"group":"Organization","pages":[{"title":"List organization members","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /organization/members","href":"/api/api-reference/organization/list-organization-members"},{"title":"Get organization settings","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /organization/settings","href":"/api/api-reference/organization/get-organization-settings"},{"title":"Update organization settings","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /organization/settings","href":"/api/api-reference/organization/update-organization-settings"}]},{"group":"Presets","pages":[{"title":"List presets","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /presets","href":"/api/api-reference/presets/list-presets"},{"title":"Get a preset","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /presets/{slug}","href":"/api/api-reference/presets/get-a-preset"},{"title":"Create a preset from a chat-completions request body","description":"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /presets/{slug}/chat/completions","href":"/api/api-reference/presets/create-a-preset-from-a-chat-completions-request-body"},{"title":"Create a preset from a messages request body","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /presets/{slug}/messages","href":"/api/api-reference/presets/create-a-preset-from-a-messages-request-body"},{"title":"Create a preset from a responses request body","description":"Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /presets/{slug}/responses","href":"/api/api-reference/presets/create-a-preset-from-a-responses-request-body"},{"title":"List versions of a preset","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /presets/{slug}/versions","href":"/api/api-reference/presets/list-versions-of-a-preset"},{"title":"Get a specific version of a preset","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /presets/{slug}/versions/{version}","href":"/api/api-reference/presets/get-a-specific-version-of-a-preset"}]},{"group":"Private Endpoints","pages":[{"title":"List private endpoints","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /private-endpoints","href":"/api/api-reference/private-endpoints/list-private-endpoints"},{"title":"Create a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-endpoints","href":"/api/api-reference/private-endpoints/create-a-private-endpoint"},{"title":"Get a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /private-endpoints/{id}","href":"/api/api-reference/private-endpoints/get-a-private-endpoint"},{"title":"Delete a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /private-endpoints/{id}","href":"/api/api-reference/private-endpoints/delete-a-private-endpoint"},{"title":"Update a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /private-endpoints/{id}","href":"/api/api-reference/private-endpoints/update-a-private-endpoint"},{"title":"Activate a validated private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-endpoints/{id}/activate","href":"/api/api-reference/private-endpoints/activate-a-validated-private-endpoint"},{"title":"Disable a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-endpoints/{id}/disable","href":"/api/api-reference/private-endpoints/disable-a-private-endpoint"},{"title":"Enable a private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-endpoints/{id}/enable","href":"/api/api-reference/private-endpoints/enable-a-private-endpoint"},{"title":"Validate a draft private endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-endpoints/{id}/validate","href":"/api/api-reference/private-endpoints/validate-a-draft-private-endpoint"}]},{"group":"Private Providers","pages":[{"title":"List private providers","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /private-providers","href":"/api/api-reference/private-providers/list-private-providers"},{"title":"Create a private provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /private-providers","href":"/api/api-reference/private-providers/create-a-private-provider"},{"title":"Get a private provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /private-providers/{slug}","href":"/api/api-reference/private-providers/get-a-private-provider"},{"title":"Delete a private provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /private-providers/{slug}","href":"/api/api-reference/private-providers/delete-a-private-provider"},{"title":"Update a private provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /private-providers/{slug}","href":"/api/api-reference/private-providers/update-a-private-provider"}]},{"group":"Providers","pages":[{"title":"List all providers","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /providers","href":"/api/api-reference/providers/list-all-providers"}]},{"group":"Rerank","pages":[{"title":"Submit a rerank request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /rerank","href":"/api/api-reference/rerank/submit-a-rerank-request"}]},{"group":"Responses","pages":[{"title":"Create a response","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /responses","href":"/api/api-reference/responses/create-a-response"}]},{"group":"SCIM","pages":[{"title":"List SCIM group mappings","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /scim/group-mappings","href":"/api/api-reference/scim/list-scim-group-mappings"},{"title":"Create a SCIM group mapping","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /scim/group-mappings","href":"/api/api-reference/scim/create-a-scim-group-mapping"},{"title":"Get a SCIM group mapping","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /scim/group-mappings/{id}","href":"/api/api-reference/scim/get-a-scim-group-mapping"},{"title":"Delete a SCIM group mapping","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /scim/group-mappings/{id}","href":"/api/api-reference/scim/delete-a-scim-group-mapping"},{"title":"Update a SCIM group mapping","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /scim/group-mappings/{id}","href":"/api/api-reference/scim/update-a-scim-group-mapping"},{"title":"List SCIM groups","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /scim/groups","href":"/api/api-reference/scim/list-scim-groups"},{"title":"Start a SCIM directory sync","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /scim/sync-jobs","href":"/api/api-reference/scim/start-a-scim-directory-sync"},{"title":"Get SCIM directory sync status","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /scim/sync-jobs/{id}","href":"/api/api-reference/scim/get-scim-directory-sync-status"}]},{"group":"SystemOne","pages":[{"title":"Submit a System One request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /systemone","href":"/api/api-reference/systemone/submit-a-system-one-request"}]},{"group":"Tools","pages":[{"title":"List server tools","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /tools","href":"/api/api-reference/tools/list-server-tools"},{"title":"Get a server tool","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /tools/{name}","href":"/api/api-reference/tools/get-a-server-tool"}]},{"group":"Vault","pages":[{"title":"List the connections an intern can use","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /vault/interns/{internId}/connections","href":"/api/api-reference/vault/list-the-connections-an-intern-can-use"},{"title":"List the secrets an intern receives","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /vault/interns/{internId}/effective-secrets","href":"/api/api-reference/vault/list-the-secrets-an-intern-receives"},{"title":"List intern secrets","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /vault/interns/{internId}/secrets","href":"/api/api-reference/vault/list-intern-secrets"},{"title":"Store an intern secret","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /vault/interns/{internId}/secrets/{name}","href":"/api/api-reference/vault/store-an-intern-secret"},{"title":"Delete an intern secret","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /vault/interns/{internId}/secrets/{name}","href":"/api/api-reference/vault/delete-an-intern-secret"},{"title":"Copy workspace secrets to an intern","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /vault/interns/{internId}/secrets/copy","href":"/api/api-reference/vault/copy-workspace-secrets-to-an-intern"},{"title":"List workspace secrets","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /vault/secrets","href":"/api/api-reference/vault/list-workspace-secrets"},{"title":"Store a workspace secret","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /vault/secrets/{name}","href":"/api/api-reference/vault/store-a-workspace-secret"},{"title":"Delete a workspace secret","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /vault/secrets/{name}","href":"/api/api-reference/vault/delete-a-workspace-secret"}]},{"group":"Video Generation","pages":[{"title":"Submit a video generation request","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /videos","href":"/api/api-reference/video-generation/submit-a-video-generation-request"},{"title":"Poll video generation status","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /videos/{jobId}","href":"/api/api-reference/video-generation/poll-video-generation-status"},{"title":"Download generated video content","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /videos/{jobId}/content","href":"/api/api-reference/video-generation/download-generated-video-content"},{"title":"List all video generation models","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /videos/models","href":"/api/api-reference/video-generation/list-all-video-generation-models"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /workspaces","href":"/api/api-reference/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /workspaces","href":"/api/api-reference/workspaces/create-a-workspace"},{"title":"Get a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /workspaces/{id}","href":"/api/api-reference/workspaces/get-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /workspaces/{id}","href":"/api/api-reference/workspaces/delete-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /workspaces/{id}","href":"/api/api-reference/workspaces/update-a-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /workspaces/{id}/members","href":"/api/api-reference/workspaces/list-workspace-members"},{"title":"Bulk add members to a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /workspaces/{id}/members/add","href":"/api/api-reference/workspaces/bulk-add-members-to-a-workspace"},{"title":"Bulk remove members from a workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /workspaces/{id}/members/remove","href":"/api/api-reference/workspaces/bulk-remove-members-from-a-workspace"},{"title":"List workspace budgets","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /workspaces/{workspace_ref}/budgets","href":"/api/api-reference/workspaces/list-workspace-budgets"},{"title":"Get a workspace budget","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /workspaces/{workspace_ref}/budgets/{interval}","href":"/api/api-reference/workspaces/get-a-workspace-budget"},{"title":"Create or update a workspace budget","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /workspaces/{workspace_ref}/budgets/{interval}","href":"/api/api-reference/workspaces/create-or-update-a-workspace-budget"},{"title":"Delete a workspace budget","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /workspaces/{workspace_ref}/budgets/{interval}","href":"/api/api-reference/workspaces/delete-a-workspace-budget"}]}]}]},{"tab":"Client SDKs","icon":"cube","pages":[{"title":"Client SDKs","href":"/client-sdks/overview"}]},{"tab":"Agent SDK","icon":"cube","pages":[{"title":"Agent SDK","href":"/agent-sdk/overview"}]},{"tab":"Cookbook","icon":"book-open","pages":[{"title":"Cookbook","href":"/cookbook/get-started/quickstart"}]}]},"basePath":"","title":"Create a preset from a messages request body - OpenRouter | Documentation","buildId":"dpl_DQCMP4mismmBj3AFK7YZqNhrtLNq","deploymentId":"dpl_DQCMP4mismmBj3AFK7YZqNhrtLNq","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Dub5uFbX.js","utils-BAOmmv1r.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Cfvfuq3w.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Chp3aFWD.js","snippetPresets-mdHEOVGp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BRlO2pcM.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CrgNI3V9.js","shallow-Dl286uHn.js","getApiPlaygroundDisplay-YPKheyKd.js","CodeSnippet-BdD-lURy.js","CodeSnippets-BSggiSf7.js","Page-DZmn3mFl.js","getPastedJson-bQHv51S7.js","icon-SCSCTtsH.js","MethodPill-GnU2wo5s.js","DuplicateIcon-BM7jzGa_.js","createIcon-atdRs-Wh.js","DynamicMarkdown-B95U9rYS.js","SectionHeading-CvCxtB39.js","axios-vUo_bRtp.js","Markdown-CBJtw_nx.js","clsx-C_advUgl.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Dpla8_R7.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BoWSGi0C.js"]}