The model plan controls which upstream engine a key runs. Two independent levers:
single_model — pin ONE engine for every text turn. This is a deterministic passthrough that skips the classifier (ideal for a coding / IDE backend, including a custom:bring-your-own model).
bindings — remap individual modes to specific engines; the classifier still routes, but each mode’s engine is pinned.
Engine ids are the real upstream ids (this is a configuration surface): arca-velox-5.1, arca-magnus-5.1, anthropic/claude-sonnet-4.6, anthropic/claude-opus-4.8, anthropic/claude-haiku-4.5, google/gemini-2.5-pro, openai/gpt-4.1, or your own custom:<providerId>:<model>.
For a full runnable flow (branches, guardrail nodes, routing) use the Orchestrator Graph instead — it takes precedence over the model plan.
Authentication
Requires an API key with billing scope; the caller must own the key.
Path Parameters
string
required
The API key UUID.
Get the plan
GET /api/v1/keys/{id}/model-plan
object | null
The pinned engine ({ upstream_id, fallback_upstream_id }) or null.
The selectable engines (platform + your custom providers) for building a picker.
Replace the plan
PUT /api/v1/keys/{id}/model-plan — a full replace of both fields (send the complete desired state).
object | null
{ upstream_id, fallback_upstream_id? } to pin one engine for every text turn, or null to clear the pin.
object[]
Per-mode overrides, each { mode, upstream_id, fallback_upstream_id? }. Every referenced upstream id is validated against the platform catalog or your custom providers.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Theo API Docs","colors":{"primary":"#715eac","light":"#00eefd","dark":"#ff00aa"},"logo":"https://mintcdn.com/theoai/1GrRXquT3RmYCAKc/images/theo-logo-v1.png?fit=max\u0026auto=format\u0026n=1GrRXquT3RmYCAKc\u0026q=85\u0026s=8b015a7610e195426a8c23f5991cc4fd","favicon":"https://mintcdn.com/theoai/e1gmlMTZO-f4Ir99/images/theo-icon-512px.png?fit=max\u0026auto=format\u0026n=e1gmlMTZO-f4Ir99\u0026q=85\u0026s=24571b1a570eb2a94af2b187ed34ebdd","appearance":{"default":"dark"},"background":{"decoration":"grid"},"navbar":{"links":[]},"search":{"prompt":"Search Theo docs..."},"seo":{"indexing":"all"},"fonts":{"family":"PT Sans","weight":300},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":true},"banner":{"content":"Welcome to Theo Docs — the AI orchestration API.","dismissible":true},"thumbnails":{"appearance":"dark"},"interaction":{"drilldown":true},"metadata":{"timestamp":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"es","href":"es/changelog"},{"language":"zh","href":"zh"},{"language":"zh-HK","href":"zh-HK"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"theoai","hasAudioNarration":false,"actualSubdomain":"theoai","customDomains":["docs.hitheo.ai"],"gitSource":{"type":"github","owner":"arihealthbird","repo":"hitheo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad0f075d7c9ed5c31aaab6d","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"en","tag":"API Reference","count":102},{"language":"zh-HK","tag":"API 參考","count":99},{"language":"zh","tag":"API 参考","count":99},{"language":"en","tag":"Documentation","count":66},{"language":"zh-HK","tag":"文檔","count":63},{"language":"zh","tag":"文档","count":63},{"language":"en","tag":"SDK","count":17},{"language":"en","tag":"SDK Reference","count":17},{"language":"en","tag":"Resources","count":16},{"language":"en","tag":"Embed Widgets","count":16},{"language":"zh-HK","tag":"資源","count":16},{"language":"zh-HK","tag":"SDK","count":16},{"language":"zh-HK","tag":"SDK 參考","count":16},{"language":"zh","tag":"资源","count":16},{"language":"zh","tag":"SDK","count":16},{"language":"zh","tag":"SDK 参考","count":16},{"language":"en","tag":"Guides","count":15},{"language":"zh-HK","tag":"嵌入式組件","count":15},{"language":"zh","tag":"嵌入式组件","count":15},{"language":"zh-HK","tag":"指南","count":14},{"language":"zh","tag":"指南","count":14},{"language":"en","tag":"Skills","count":11},{"language":"zh-HK","tag":"技能","count":11},{"language":"zh","tag":"技能","count":11},{"language":"en","tag":"Routing Studio","count":10},{"language":"zh-HK","tag":"Routing Studio","count":10},{"language":"zh","tag":"Routing Studio","count":10},{"language":"en","tag":"Webhooks","count":9},{"language":"zh-HK","tag":"Webhooks","count":9},{"language":"zh","tag":"Webhooks","count":9},{"language":"es","tag":"Documentación","count":1},{"language":"es","tag":"Registro de cambios","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/keys/model-plan","slug":"/api-reference/keys/model-plan","pageMetadata":{"title":"Key Model Plan","api":"GET /api/v1/keys/{id}/model-plan","description":"Read or replace a key's model plan — a single-model pin and/or per-mode engine bindings.","href":"/api-reference/keys/model-plan"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Read or replace a key’s model plan — a single-model pin and/or per-mode engine bindings.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The model plan controls `,_jsx(_components.strong,{children:`which upstream engine`}),` a key runs. Two independent levers:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`single_model`})}),` — pin ONE engine for every text turn. This is a deterministic passthrough that skips the classifier (ideal for a coding / IDE backend, including a `,_jsx(_components.code,{children:`custom:`}),` `,_jsx(_components.a,{href:`/api-reference/custom-providers/manage`,children:`bring-your-own model`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`bindings`})}),` — remap individual modes to specific engines; the classifier still routes, but each mode’s engine is pinned.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Engine ids are the real upstream ids (this is a configuration surface): `,_jsx(_components.code,{children:`arca-velox-5.1`}),`, `,_jsx(_components.code,{children:`arca-magnus-5.1`}),`, `,_jsx(_components.code,{children:`anthropic/claude-sonnet-4.6`}),`, `,_jsx(_components.code,{children:`anthropic/claude-opus-4.8`}),`, `,_jsx(_components.code,{children:`anthropic/claude-haiku-4.5`}),`, `,_jsx(_components.code,{children:`google/gemini-2.5-pro`}),`, `,_jsx(_components.code,{children:`openai/gpt-4.1`}),`, or your own `,_jsx(_components.code,{children:`custom:\u003cproviderId>:\u003cmodel>`}),`.`]}),`\n`,_jsxs(Note,{children:[`For a full runnable flow (branches, guardrail nodes, routing) use the `,_jsx(_components.a,{href:`/api-reference/keys/orchestrator-graph`,children:`Orchestrator Graph`}),` instead — it takes precedence over the model plan.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Requires an API key with `,_jsx(_components.code,{children:`billing`}),` scope; the caller must own the key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:`The API key UUID.`}),`\n`,_jsx(Heading,{level:`2`,id:`get-the-plan`,children:`Get the plan`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /api/v1/keys/{id}/model-plan`})}),`\n`,_jsxs(ResponseField,{name:`single_model`,type:`object | null`,id:`param-single-model`,children:[`The pinned engine (`,_jsx(_components.code,{children:`{ upstream_id, fallback_upstream_id }`}),`) or `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`bindings`,type:`array`,id:`param-bindings`,children:[`Per-mode overrides: `,_jsx(_components.code,{children:`{ mode, upstream_id, fallback_upstream_id }`}),`.`]}),`\n`,_jsx(ResponseField,{name:`catalog`,type:`array`,id:`param-catalog`,children:`The selectable engines (platform + your custom providers) for building a picker.`}),`\n`,_jsx(Heading,{level:`2`,id:`replace-the-plan`,children:`Replace the plan`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PUT /api/v1/keys/{id}/model-plan`}),` — a `,_jsx(_components.strong,{children:`full replace`}),` of both fields (send the complete desired state).`]}),`\n`,_jsx(ParamField,{body:`single_model`,type:`object | null`,id:`param-single-model-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`{ upstream_id, fallback_upstream_id? }`}),` to pin one engine for every text turn, or `,_jsx(_components.code,{children:`null`}),` to clear the pin.`]})}),`\n`,_jsx(ParamField,{body:`bindings`,type:`object[]`,id:`param-bindings-1`,children:_jsxs(_components.p,{children:[`Per-mode overrides, each `,_jsx(_components.code,{children:`{ mode, upstream_id, fallback_upstream_id? }`}),`. Every referenced upstream id is validated against the platform catalog or your custom providers.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`curl`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.hitheo.ai/api/v1/keys/KEY_ID/model-plan`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$THEO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"bindings\": [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"mode\": \"fast\", \"upstream_id\": \"arca-velox-5.1\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"mode\": \"think\", \"upstream_id\": \"arca-magnus-5.1\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ] }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`SDK`,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` theo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`keys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setModelPlan`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KEY_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` single_model:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`upstream_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"anthropic/claude-opus-4.8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// deterministic passthrough`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Key Model Plan","api":"GET /api/v1/keys/{id}/model-plan","description":"Read or replace a key's model plan — a single-model pin and/or per-mode engine bindings.","href":"/api-reference/keys/model-plan"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Get the plan","slug":"get-the-plan","depth":2,"children":[]},{"title":"Replace the plan","slug":"replace-the-plan","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Key Model Plan","path":"/api/v1/keys/{id}/model-plan","method":"get","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The API key UUID.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"single_model":[{"type":"object","properties":{},"description":"`{ upstream_id, fallback_upstream_id? }` to pin one engine for every text turn, or `null` to clear the pin."}],"bindings":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Per-mode overrides, each `{ mode, upstream_id, fallback_upstream_id? }` . Every referenced upstream id is validated against the platform catalog or your custom providers."}]}}],"examples":{"example":{"value":{"single_model":{},"bindings":[{}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"single_model":[{"type":"object","properties":{},"description":"The pinned engine ( `{ upstream_id, fallback_upstream_id }` ) or `null` ."}],"bindings":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Per-mode overrides: `{ mode, upstream_id, fallback_upstream_id }` ."}],"catalog":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The selectable engines (platform + your custom providers) for building a picker."}]}}],"examples":{"example":{"value":{"single_model":{},"bindings":[{}],"catalog":[{}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"theoai","siteName":"Theo API Docs","title":"Key Model Plan - Theo API Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/keys/model-plan","matchLevel":0},"es":{"href":"/es/changelog","matchLevel":4},"zh":{"href":"/zh/api-reference/keys/model-plan","matchLevel":1},"zh-HK":{"href":"/zh-HK/api-reference/keys/model-plan","matchLevel":1}}},"lastModified":"2026-08-03T12:19:50.243Z","originalFileLocation":"api-reference/keys/model-plan.mdx","locale":"en"},"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=\"Read or replace a key\u0026#x27;s model plan — a single-model pin and/or per-mode engine bindings.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Theo API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_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=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Key Model Plan - Theo API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Read or replace a key\u0026#x27;s model plan — a single-model pin and/or per-mode engine bindings.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Theo API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hitheo.ai/api-reference/keys/model-plan\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://theoai.mintlify.site/_mintlify/api/og/v2?division=Resources\u0026amp;title=Key+Model+Plan\u0026amp;description=Read+or+replace+a+key%27s+model+plan+%E2%80%94+a+single-model+pin+and%2For+per-mode+engine+bindings.\u0026amp;theme=1223219aff4bac636125219a\u0026amp;signature=010cdbe822aac953f58a39791b608b1fbe7157c5a07bda2f85e38e69f035ce84\">\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=\"Key Model Plan - Theo API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Read or replace a key\u0026#x27;s model plan — a single-model pin and/or per-mode engine bindings.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://theoai.mintlify.site/_mintlify/api/og/v2?division=Resources\u0026amp;title=Key+Model+Plan\u0026amp;description=Read+or+replace+a+key%27s+model+plan+%E2%80%94+a+single-model+pin+and%2For+per-mode+engine+bindings.\u0026amp;theme=1223219aff4bac636125219a\u0026amp;signature=010cdbe822aac953f58a39791b608b1fbe7157c5a07bda2f85e38e69f035ce84\">\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=\"/mintlify-assets/_mintlify/favicons/theoai/HMaTiOxhwLuEkGS5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Theo API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#715eac\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hitheo.ai/api-reference/keys/model-plan\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/keys/model-plan.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.hitheo.ai/api-reference/keys/model-plan\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.hitheo.ai/zh/api-reference/keys/model-plan\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-HK\" href=\"https://docs.hitheo.ai/zh-HK/api-reference/keys/model-plan\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.hitheo.ai/api-reference/keys/model-plan\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hitheo.ai/#organization\",\"name\":\"Theo API Docs\",\"url\":\"https://docs.hitheo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/theoai/1GrRXquT3RmYCAKc/images/theo-logo-v1.png?fit=max\u0026auto=format\u0026n=1GrRXquT3RmYCAKc\u0026q=85\u0026s=8b015a7610e195426a8c23f5991cc4fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hitheo.ai#website\",\"name\":\"Theo API Docs\",\"url\":\"https://docs.hitheo.ai\",\"publisher\":{\"@id\":\"https://docs.hitheo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hitheo.ai/api-reference/keys/model-plan#webpage\",\"url\":\"https://docs.hitheo.ai/api-reference/keys/model-plan\",\"name\":\"Key Model Plan\",\"description\":\"Read or replace a key's model plan — a single-model pin and/or per-mode engine bindings.\",\"dateModified\":\"2026-08-03T12:19:50.243Z\",\"isPartOf\":{\"@id\":\"https://docs.hitheo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hitheo.ai/api-reference/keys/model-plan#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hitheo.ai/api-reference/keys/model-plan#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resources\",\"item\":\"https://docs.hitheo.ai/api-reference/models/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Key Model Plan\",\"item\":\"https://docs.hitheo.ai/api-reference/keys/model-plan\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hitheo.ai/api-reference/keys/model-plan#apireference\",\"headline\":\"Key Model Plan\",\"name\":\"Key Model Plan\",\"description\":\"Read or replace a key's model plan — a single-model pin and/or per-mode engine bindings.\",\"url\":\"https://docs.hitheo.ai/api-reference/keys/model-plan\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hitheo.ai/api-reference/keys/model-plan#webpage\"},\"dateModified\":\"2026-08-03T12:19:50.243Z\",\"publisher\":{\"@id\":\"https://docs.hitheo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hitheo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Theo API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Theo API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/keys/model-plan.md","siteName":"Theo API Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/api-reference/overview"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Completions","pages":[{"title":"Create Completion","api":"POST /api/v1/completions","href":"/api-reference/completions/create"},{"title":"Streaming Completions","href":"/api-reference/completions/streaming"},{"title":"OpenAI-Compatible Chat Completions","api":"POST /api/v1/chat/completions","href":"/api-reference/completions/openai-compat"}]},{"group":"Media Generation","pages":[{"title":"Generate Images","api":"POST /api/v1/images","href":"/api-reference/images/generate"},{"title":"Generate Video","api":"POST /api/v1/video","href":"/api-reference/video/generate"},{"title":"Generate Code","api":"POST /api/v1/code","href":"/api-reference/code/generate"},{"title":"Create Research","api":"POST /api/v1/research","href":"/api-reference/research/create"},{"title":"Generate Document","api":"POST /api/v1/documents","href":"/api-reference/documents/generate"}]},{"group":"Audio","pages":[{"title":"Text to Speech","api":"POST /api/v1/audio/tts","href":"/api-reference/audio/text-to-speech"},{"title":"Speech to Text","api":"POST /api/v1/audio/stt","href":"/api-reference/audio/speech-to-text"}]},{"group":"Skills API","pages":[{"title":"List Skills","api":"GET /api/v1/skills","href":"/api-reference/skills/list"},{"title":"Install Skill","api":"POST /api/v1/skills","href":"/api-reference/skills/install"},{"title":"Create Skill","api":"POST /api/v1/skills/create","href":"/api-reference/skills/create"},{"title":"Submit Skill","api":"POST /api/v1/skills/submit","href":"/api-reference/skills/submit"},{"title":"Get Skill","api":"GET /api/v1/skills/{id}","href":"/api-reference/skills/get"},{"title":"Skill Versions","api":"GET /api/v1/skills/{id}/versions","href":"/api-reference/skills/versions"},{"title":"Skill Reviews","api":"GET /api/v1/skills/{id}/reviews","href":"/api-reference/skills/reviews"}]},{"group":"Skill Builder","pages":[{"title":"Canvases","href":"/api-reference/evi/canvases"},{"title":"Compile Canvas","href":"/api-reference/evi/compile"},{"title":"Test Canvas","href":"/api-reference/evi/test"},{"title":"Publish Canvas","href":"/api-reference/evi/publish"}]},{"group":"Workflows","pages":[{"title":"List Workflows","api":"GET /api/v1/workflows","href":"/api-reference/workflows/list"},{"title":"Create Workflow","api":"POST /api/v1/workflows","href":"/api-reference/workflows/create"},{"title":"Get Workflow","api":"GET /api/v1/workflows/{id}","href":"/api-reference/workflows/get"},{"title":"Update Workflow","api":"PATCH /api/v1/workflows/{id}","href":"/api-reference/workflows/update"},{"title":"Run Workflow","api":"POST /api/v1/workflows/{id}/run","href":"/api-reference/workflows/run"},{"title":"Delete Workflow","api":"DELETE /api/v1/workflows/{id}","href":"/api-reference/workflows/delete"}]},{"group":"Hooks","pages":[{"title":"Create Hook","api":"POST /api/v1/hooks","href":"/api-reference/hooks/create"},{"title":"List Hooks","api":"GET /api/v1/hooks","href":"/api-reference/hooks/list"},{"title":"Get Hook Executions","api":"GET /api/v1/hooks/{id}","href":"/api-reference/hooks/get"},{"title":"Update Hook","api":"PATCH /api/v1/hooks/{id}","href":"/api-reference/hooks/update"},{"title":"Delete Hook","api":"DELETE /api/v1/hooks/{id}","href":"/api-reference/hooks/delete"}]},{"group":"Settings","pages":[{"title":"Get Settings","api":"GET /api/v1/settings","href":"/api-reference/settings/get"},{"title":"Update Settings","api":"PATCH /api/v1/settings","href":"/api-reference/settings/update"}]},{"group":"Embed Widgets","pages":[{"title":"Create Iframe Widget","api":"POST /api/v1/iframes","href":"/api-reference/iframes/create"},{"title":"List Iframe Widgets","api":"GET /api/v1/iframes","href":"/api-reference/iframes/list"},{"title":"Get Widget","api":"GET /api/v1/iframes/{id}","href":"/api-reference/iframes/get"},{"title":"Update Widget","api":"PATCH /api/v1/iframes/{id}","href":"/api-reference/iframes/update"},{"title":"Delete Widget","api":"DELETE /api/v1/iframes/{id}","href":"/api-reference/iframes/delete"},{"title":"Duplicate Widget","api":"POST /api/v1/iframes/{id}/duplicate","href":"/api-reference/iframes/duplicate"},{"title":"Bulk Delete Widgets","api":"POST /api/v1/iframes/bulk-delete","href":"/api-reference/iframes/bulk-delete"},{"title":"Widget Analytics","api":"GET /api/v1/iframes/{id}/analytics","href":"/api-reference/iframes/analytics"},{"title":"List Widget Leads","api":"GET /api/v1/iframes/{id}/leads","href":"/api-reference/iframes/leads"},{"title":"Export Widget Leads (CSV)","api":"GET /api/v1/iframes/{id}/leads/export","href":"/api-reference/iframes/leads-export"},{"title":"List Widget Conversations","api":"GET /api/v1/iframes/{id}/conversations","href":"/api-reference/iframes/conversations"},{"title":"Get Widget Conversation","api":"GET /api/v1/iframes/{id}/conversations/{sessionId}","href":"/api-reference/iframes/conversation"},{"title":"Post Operator Message","api":"POST /api/v1/iframes/{id}/conversations/{sessionId}/messages","href":"/api-reference/iframes/operator-message"},{"title":"Take Over Session","api":"POST /api/v1/iframes/{id}/conversations/{sessionId}/takeover","href":"/api-reference/iframes/takeover"},{"title":"Release Session","api":"POST /api/v1/iframes/{id}/conversations/{sessionId}/release","href":"/api-reference/iframes/release"},{"title":"Verify Widget Installation","api":"POST /api/v1/iframes/{id}/verify","href":"/api-reference/iframes/verify"}]},{"group":"Guardrails","pages":[{"title":"List Guardrail Policies","api":"GET /api/v1/guardrail-policies","href":"/api-reference/guardrails/list-policies"},{"title":"Create Guardrail Policy","api":"POST /api/v1/guardrail-policies","href":"/api-reference/guardrails/create-policy"},{"title":"Get, Update, or Delete a Policy","api":"GET/PATCH/DELETE /api/v1/guardrail-policies/{id}","href":"/api-reference/guardrails/get-policy"},{"title":"Replay a Prompt Through a Policy","api":"POST /api/v1/guardrail-policies/{id}/test","href":"/api-reference/guardrails/test-policy"},{"title":"List Keys Bound to a Policy","api":"GET /api/v1/guardrail-policies/{id}/bindings","href":"/api-reference/guardrails/policy-bindings"},{"title":"List Preset Templates","api":"GET /api/v1/guardrail-policies/presets","href":"/api-reference/guardrails/presets"},{"title":"Get or Set an API Key's Guardrail Binding","api":"GET/PUT /api/v1/keys/{id}/guardrails","href":"/api-reference/guardrails/key-binding"},{"title":"List Guardrail Executions","api":"GET /api/v1/guardrail-executions","href":"/api-reference/guardrails/executions"}]},{"group":"Routing Studio","pages":[{"title":"List Routing Preferences","api":"GET /api/v1/routing-preferences","href":"/api-reference/routing-preferences/list-preferences"},{"title":"Create Routing Preference","api":"POST /api/v1/routing-preferences","href":"/api-reference/routing-preferences/create-preference"},{"title":"Get, Update, or Delete a Preference","api":"GET/PATCH/DELETE /api/v1/routing-preferences/{id}","href":"/api-reference/routing-preferences/get-preference"},{"title":"Replay a Prompt Through a Preference","api":"POST /api/v1/routing-preferences/{id}/test · POST /api/v1/routing-preferences/test","href":"/api-reference/routing-preferences/test-preference"},{"title":"List Preset Templates","api":"GET /api/v1/routing-preferences/presets","href":"/api-reference/routing-preferences/presets"},{"title":"Record a Routing Correction","api":"POST /api/v1/routing-preferences/corrections","href":"/api-reference/routing-preferences/corrections"},{"title":"Suggest a Rule From Corrections","api":"POST /api/v1/routing-preferences/suggest-rule","href":"/api-reference/routing-preferences/suggest-rule"},{"title":"Manage a Key's Routing Rules","api":"GET/PUT/DELETE /api/v1/keys/{id}/routing-rules","href":"/api-reference/routing-preferences/key-routing-rules"},{"title":"Bind a Shared Preference to a Key","api":"GET/PUT /api/v1/keys/{id}/routing-preference","href":"/api-reference/routing-preferences/key-routing-preference"},{"title":"Inspect a Key's Effective Routing","api":"GET /api/v1/keys/{id}/effective-routing","href":"/api-reference/routing-preferences/effective-routing"}]},{"group":"Theo Browser","pages":[{"title":"Browser Sessions","href":"/api-reference/browser/sessions"},{"title":"Embed the Theo Browser","href":"/api-reference/browser/embed"}]},{"group":"Benchmarks","pages":[{"title":"Get Benchmarks","api":"GET /api/v1/benchmarks","href":"/api-reference/benchmarks/get"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","api":"POST /api/v1/webhooks","href":"/api-reference/webhooks/create"},{"title":"List Webhooks","api":"GET /api/v1/webhooks","href":"/api-reference/webhooks/list"},{"title":"Update Webhook","api":"PATCH /api/v1/webhooks/{id}","href":"/api-reference/webhooks/update"},{"title":"Delete Webhook","api":"DELETE /api/v1/webhooks/{id}","href":"/api-reference/webhooks/delete"},{"title":"Test Webhook","api":"POST /api/v1/webhooks/{id}/test","href":"/api-reference/webhooks/test"},{"title":"List Deliveries","api":"GET /api/v1/webhooks/{id}/deliveries","href":"/api-reference/webhooks/deliveries"},{"title":"Retry Delivery","api":"POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/retry","href":"/api-reference/webhooks/retry"},{"title":"Rotate Secret","api":"POST /api/v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-secret"},{"title":"Webhook Stats","api":"GET /api/v1/webhooks/{id}/stats","href":"/api-reference/webhooks/stats"}]},{"group":"Billing","pages":[{"title":"Create a top-up checkout","api":"POST /api/v1/billing/checkout","href":"/api-reference/billing/checkout"},{"title":"Open the billing portal","api":"POST /api/v1/billing/portal","href":"/api-reference/billing/portal"},{"title":"Get Usage","api":"GET /api/v1/usage","href":"/api-reference/usage/get"},{"title":"Export Usage (CSV)","api":"GET /api/v1/usage/export","href":"/api-reference/usage/export"}]},{"group":"Resources","pages":[{"title":"List Models","api":"GET /api/v1/models","href":"/api-reference/models/list"},{"title":"List Tools","api":"GET /api/v1/tools","href":"/api-reference/tools/list"},{"title":"List Conversations","api":"GET /api/v1/conversations","href":"/api-reference/conversations/list"},{"title":"Get Conversation","api":"GET /api/v1/conversations/{id}","href":"/api-reference/conversations/get"},{"title":"Get Job Status","api":"GET /api/v1/jobs/{id}","href":"/api-reference/jobs/get"},{"title":"Publish Event","api":"POST /api/v1/events","href":"/api-reference/events/publish"},{"title":"Create Organization","api":"POST /api/v1/orgs","href":"/api-reference/organizations/create"},{"title":"Create API Key","api":"POST /api/v1/keys","href":"/api-reference/keys/create"},{"title":"Key Skill Binding","api":"GET /api/v1/keys/{id}/skills","href":"/api-reference/keys/skills"},{"title":"Key Model Allowlist","api":"GET /api/v1/keys/{id}/models","description":"Read or replace the per-key model allowlist that gates which Theo models a key may run.","href":"/api-reference/keys/models"},{"title":"Key Model Plan","api":"GET /api/v1/keys/{id}/model-plan","href":"/api-reference/keys/model-plan"},{"title":"Key Orchestrator Graph","api":"GET /api/v1/keys/{id}/orchestrator-graph","description":"Read or replace a key's executable orchestrator graph — Entry → Classifier/Router → Model → Guardrail.","href":"/api-reference/keys/orchestrator-graph"},{"title":"Custom Providers","api":"POST /api/v1/custom-providers","href":"/api-reference/custom-providers/manage"},{"title":"List Audit Events","api":"GET /api/v1/audit","href":"/api-reference/audit/list"},{"title":"Export Audit Log (CSV)","api":"GET /api/v1/audit/export","href":"/api-reference/audit/export"},{"title":"Health Check","api":"GET /api/v1/health","href":"/api-reference/health/check"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk-reference/installation"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli-reference/overview"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/changelog"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/keys/model-plan"}]},{"language":"zh-HK","pages":[{"title":"zh-HK","href":"/zh-HK/api-reference/keys/model-plan"}]}]},"basePath":"","title":"Key Model Plan - Theo API Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","SectionHeading-B08KBUKT.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js"]}