Submit a Kling 4.0 text-to-video task in Kling's native shape.
Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling’s own text-to-video request and the answer is Kling’s own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.
POST
/
v2
/
native
/
kling
/
text-to-video
/
kling-4.0
Submit a Kling 4.0 text-to-video task in Kling's native shape.
curl --request POST \ --url https://api.comfy.org/v2/native/kling/text-to-video/kling-4.0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "A neon-lit alley in the rain, slow dolly forward.", "settings": { "resolution": "1080p", "aspect_ratio": "16:9", "duration": 5 }}'
Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key.
ボディ
application/json
Kling's native Kling 4.0 text-to-video request.
Request body for a Kling 4.0 text-to-video generation. settings.duration and settings.resolution are required so the request never falls back to Kling's own defaults, which are the most expensive configuration.
prompt
string
必須
Prompt that may include positive and negative descriptions. Up to 26,000 English characters or 11,000 non-English characters; comfy-api enforces 1 to 26,000 characters, and Kling itself refuses longer non-English text.
Required string length: 1 - 26000
settings
object
必須
Output configuration such as resolution, aspect ratio and duration.
Show child attributes
options
object | null
General configuration such as watermark options. options.callback_url and options.external_task_id are not supported on Kling 4.0; Comfy Router refuses a request that sets either inside options. A top-level callback_url or external_task_id is not part of this schema and is removed before the request reaches Kling. An explicit null options is treated as absent, as the /proxy Kling 4.0 check and Kling do.
Show child attributes
レスポンス
OK - the task-creation response, in Kling's own shape.
Response returned when a Kling 3.0 Turbo task is created.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ComfyUI","colors":{"primary":"#49378B","light":"#F2FF59","dark":"#F2FF59"},"logo":{"light":"https://mintcdn.com/dripart/WCFdTagRdhtvk9-o/logo/light.svg?fit=max\u0026auto=format\u0026n=WCFdTagRdhtvk9-o\u0026q=85\u0026s=ec112de87239058f5a931a7e4b594965","dark":"https://mintcdn.com/dripart/QzWbjSCBG7w61rR3/logo/dark.svg?fit=max\u0026auto=format\u0026n=QzWbjSCBG7w61rR3\u0026q=85\u0026s=62b4d879fb3aadbd7a468d1539032d6f","href":"/"},"favicon":"https://mintcdn.com/dripart/maKDA164-rrTfyxY/favicon.ico?fit=max\u0026auto=format\u0026n=maKDA164-rrTfyxY\u0026q=85\u0026s=94f3a697cf4c9a1ee3961b69219d0942","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://blog.comfy.org/?utm_source=docs","label":"Blog"},{"href":"/tutorials/partner-nodes/pricing","label":"Pricing"},{"href":"https://platform.comfy.org/?utm_source=docs","label":"Platform"},{"href":"https://comfy.org/download?utm_source=docs","label":"Download"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"Resources","items":[{"label":"installation","href":"/installation/system_requirements"},{"label":"Tutorials","href":"/tutorials/basic/text-to-image"},{"label":"Development","href":"/development/overview"}]},{"header":"Products","items":[{"label":"Features","href":"https://www.comfy.org/?utm_source=docs"},{"label":"Gallery","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"Download","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"Company","items":[{"label":"About","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"Careers","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"Terms of Service","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"Privacy Policy","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"search":{"prompt":"Search Comfy documentation..."},"seo":{"metatags":{"googlebot":"max-video-preview:0"}},"icons":{"library":"fontawesome"},"integrations":{"ga4":{"measurementId":"G-MXC01ZDDHQ"},"posthog":{"apiKey":"phc_iKfK86id4xVYws9LybMje0h44eGtfwFgRPIBehmy8rO"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":""},{"language":"zh","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"资源","items":[{"label":"安装","href":"/zh/installation/system_requirements"},{"label":"教程","href":"/zh/tutorials/basic/text-to-image"},{"label":"开发","href":"/zh/development/overview"}]},{"header":"产品","items":[{"label":"功能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"画廊","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"下载","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"公司","items":[{"label":"关于","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"招聘","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"服务条款","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"隐私政策","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"href":"zh"},{"language":"ja","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"リソース","items":[{"label":"インストール","href":"/ja/installation/system_requirements"},{"label":"チュートリアル","href":"/ja/tutorials/basic/text-to-image"},{"label":"開発","href":"/ja/development/overview"}]},{"header":"プロダクト","items":[{"label":"機能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"ギャラリー","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"ダウンロード","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"会社情報","items":[{"label":"概要","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"採用情報","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"利用規約","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"プライバシーポリシー","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ja/tutorials/partner-nodes/pricing","label":"料金"},{"href":"https://comfy.org/download?utm_source=docs","label":"ダウンロード"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"href":"ja"},{"language":"ko","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"리소스","items":[{"label":"설치","href":"/ko/installation/system_requirements"},{"label":"튜토리얼","href":"/ko/tutorials/basic/text-to-image"},{"label":"개발","href":"/ko/development/overview"}]},{"header":"제품","items":[{"label":"기능","href":"https://www.comfy.org/?utm_source=docs"},{"label":"갤러리","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"다운로드","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"회사 정보","items":[{"label":"소개","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"채용","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"이용약관","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"개인정보 처리방침","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ko/tutorials/partner-nodes/pricing","label":"가격 정책"},{"href":"https://comfy.org/download?utm_source=docs","label":"다운로드"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"href":"ko"},{"language":"es","href":"es"},{"language":"de","href":"de"},{"language":"ru","href":"ru"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dripart","hasAudioNarration":false,"actualSubdomain":"dripart","customDomains":["docs.comfy.org"],"gitSource":{"type":"github","owner":"comfy-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10a4c49ffae5051c3f9d3b"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b151f2514fcf836635674ea","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"en","tag":"Built-in Nodes","count":1224},{"language":"ja","tag":"組み込みノード","count":1224},{"language":"zh","tag":"内置节点","count":1224},{"language":"en","tag":"Nodes","count":1223},{"language":"ja","tag":"ノード","count":1223},{"language":"zh","tag":"节点","count":1223},{"language":"ko","tag":"내장 노드 (Built-in Nodes)","count":1182},{"language":"ko","tag":"노드","count":1181},{"language":"es","tag":"Nodos integrados","count":1116},{"language":"es","tag":"Nodes","count":1115},{"language":"ru","tag":"Встроенные узлы","count":1115},{"language":"ru","tag":"Узлы","count":1114},{"language":"de","tag":"Tutorials","count":458},{"language":"en","tag":"Partner","count":395},{"language":"ja","tag":"Partner","count":395},{"language":"ko","tag":"Partner","count":395},{"language":"zh","tag":"Partner","count":395},{"language":"es","tag":"Partner","count":393},{"language":"ru","tag":"Partner","count":392},{"language":"en","tag":"Model","count":385},{"language":"es","tag":"Modelo","count":385},{"language":"ja","tag":"Model","count":385},{"language":"ko","tag":"Model","count":385},{"language":"ru","tag":"Model","count":385},{"language":"zh","tag":"Model","count":385},{"language":"en","tag":"Image","count":369},{"language":"en","tag":"Comfy Router","count":368},{"language":"de","tag":"Comfy Router","count":363},{"language":"es","tag":"Comfy Router","count":363},{"language":"ja","tag":"Comfy Router","count":363},{"language":"ko","tag":"Comfy Router","count":363},{"language":"ru","tag":"Comfy Router","count":363},{"language":"zh","tag":"Comfy Router","count":363},{"language":"es","tag":"Imagen","count":339},{"language":"en","tag":"Tutorials","count":337},{"language":"es","tag":"Tutoriales","count":337},{"language":"ja","tag":"チュートリアル","count":337},{"language":"ko","tag":"튜토리얼","count":337},{"language":"ru","tag":"Руководства","count":337},{"language":"zh","tag":"教程","count":337},{"language":"en","tag":"Models","count":328},{"language":"en","tag":"Agent tools","count":327},{"language":"en","tag":"All Models","count":325},{"language":"de","tag":"Modelle","count":323},{"language":"es","tag":"Models","count":323},{"language":"ja","tag":"Models","count":323},{"language":"ko","tag":"Models","count":323},{"language":"ru","tag":"Модели","count":323},{"language":"zh","tag":"Models","count":323},{"language":"de","tag":"Alle Modelle","count":320},{"language":"es","tag":"All Models","count":320},{"language":"ja","tag":"All Models","count":320},{"language":"ko","tag":"All Models","count":320},{"language":"ru","tag":"Все модели","count":320},{"language":"zh","tag":"All Models","count":320},{"language":"es","tag":"Video","count":291},{"language":"de","tag":"Entwickler","count":236},{"language":"ja","tag":"開発者向け","count":236},{"language":"ko","tag":"개발자","count":236},{"language":"ru","tag":"Для разработчиков","count":236},{"language":"zh","tag":"开发者","count":236},{"language":"ko","tag":"이미지","count":227},{"language":"ja","tag":"画像","count":223},{"language":"zh","tag":"图像","count":223},{"language":"ru","tag":"Video","count":184},{"language":"de","tag":"Partner-Nodes","count":171},{"language":"de","tag":"Partner-Modelle","count":164},{"language":"de","tag":"ComfyUI bereitstellen","count":139},{"language":"de","tag":"Video","count":107},{"language":"de","tag":"Bild","count":96}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"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":"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":"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":"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":"turbopuffer-dual-write","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":"editor-metadata","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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--ink-900: #151417;--hub-shell-light: #f7f6f9;--accent-purple: #49378b;--accent-yellow: #f2ff59;--primary: 73 55 139 !important;--primary-light: 242 255 89 !important;--primary-dark: 242 255 89 !important}html.dark{--primary: 242 255 89 !important;--background-dark: 14 14 13 !important}html.dark body{background-color:#0e0e0d!important}html.dark #navbar,html.dark #navbar-transition{background-color:var(--ink-900)!important}html.dark #sidebar,html.dark #sidebar-content{background-color:rgb(var(--background-dark))!important}html.dark #navbar,html.dark #navbar-transition{box-shadow:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.dark #navbar-transition{border-bottom:1px solid rgba(255, 255, 255, 0.08)!important;opacity:1!important}html.dark img.nav-logo{filter:none}html.dark #sidebar-content a:not([aria-current=\"page\"]){color:rgba(255, 255, 255, 0.72)!important}html.dark #sidebar-content a:not([aria-current=\"page\"]) *{color:inherit!important}html.dark #sidebar-content a[aria-current=\"page\"]{color:var(--accent-yellow)!important;background-color:rgba(242, 255, 89, 0.10)!important}html.dark #sidebar-content a[aria-current=\"page\"] *{color:inherit!important}html.dark .nav-tabs-item[data-active],html.dark mobile-nav-tabs-item[data-active]{color:var(--accent-yellow)!important}html.dark #navbar a[href*=\"comfy.org/cloud\"] span.absolute{background-color:var(--accent-yellow)!important}html.dark #navbar a[href*=\"comfy.org/cloud\"] span.text-white{color:#151417!important}html:not(.dark) #background-color,html:not(.dark) #navbar,html:not(.dark) #navbar-transition,html:not(.dark) #sidebar,html:not(.dark) #sidebar-content{background-color:var(--hub-shell-light)!important}html:not(.dark) .nav-tabs-item[data-active],html:not(.dark) mobile-nav-tabs-item[data-active],html:not(.dark) nav-dropdown-item[data-active]{background-color:transparent!important;box-shadow:none!important;color:var(--accent-purple)!important;font-weight:600!important}html:not(.dark) .nav-tabs-item[data-active] *,html:not(.dark) mobile-nav-tabs-item[data-active] *,html:not(.dark) nav-dropdown-item[data-active] *{color:inherit!important}html:not(.dark) #sidebar-content li:has(>a[aria-current=\"page\"]){background-color:transparent!important;box-shadow:none!important}html:not(.dark) #sidebar-content a[aria-current=\"page\"]{color:var(--accent-purple)!important;background-color:rgba(73, 55, 139, 0.1)!important;font-weight:600!important}html:not(.dark) #sidebar-content a[aria-current=\"page\"] *{color:inherit!important}html:not(.dark) toc-item[data-active],html:not(.dark) toc-item[data-active-deepest],html:not(.dark) toc-item[data-active] a,html:not(.dark) toc-item[data-active-deepest] a{background-color:transparent!important;color:var(--accent-purple)!important;font-weight:600!important}html:not(.dark) #header :where(h1,h2,h3,h4,h5,h6),html:not(.dark) #content-area :where(h1,h2,h3,h4,h5,h6){color:#151417!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"]{background-color:transparent!important;color:var(--accent-purple)!important;border-radius:0.75rem;box-shadow:inset 0 0 0 1px var(--accent-purple)!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"] span.absolute{background-color:transparent!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"] *{color:inherit!important}#sidebar .sticky.top-0.pointer-events-none.bg-linear-to-b{background-image:none!important}@media (min-width: 1024px){#navbar.is-not-custom.is-not-center+div:has(>#sidebar),.max-w-8xl.mx-auto.relative,.max-w-8xl.mx-auto{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}#navbar [class*=\"px-12\"],#navbar [class*=\"mx-4\"]{padding-left:0!important;padding-right:1.5rem!important;margin-left:0!important;margin-right:0!important}#navbar a.select-none,#navbar .nav-logo{margin-left:1rem!important}#navbar .nav-tabs{padding-left:2rem!important}#sidebar{left:0!important;margin-left:0!important;box-shadow:none!important}#sidebar-content{margin-left:0!important;padding-left:1rem!important;box-sizing:border-box!important}#navbar,#navbar-transition{left:0!important;right:0!important;width:100%!important;max-width:none!important}#content-area{margin-left:0!important;max-width:none!important;width:100%!important;padding-left:18rem!important}#sidebar.sticky~#content-container #content-area{padding-left:2rem!important;padding-right:2rem!important}#content-container,#body-content{max-width:none!important;width:100%!important}:root{--content-width: 100%;--sidebar-width: 18rem}}@media (min-width: 1024px){nav#sidebar,#sidebar[style]{left:0!important;right:auto!important;margin-left:0!important;transform:none!important}#navbar li.navbar-link:has(a[href*=\"comfy.org/download\"]){margin-right:0!important}#navbar a[href*=\"comfy.org/download\"]{box-sizing:border-box;border:1px solid rgb(255 255 255 / 0.22);border-radius:0.75rem;padding:7px 0.875rem!important;color:#fff!important;font-size:0.875rem;line-height:1.25rem}html:not(.dark) #navbar a[href*=\"comfy.org/download\"]{border-color:rgb(0 0 0 / 0.16);color:#151417!important}#navbar a[href*=\"comfy.org/download\"]:hover{background:rgb(255 255 255 / 0.06)}html:not(.dark) #navbar a[href*=\"comfy.org/download\"]:hover{background:rgb(0 0 0 / 0.04)}#navbar li.navbar-link:has(a[href*=\"comfy.org/download\"])+.whitespace-nowrap,#navbar .flex.space-x-6>.whitespace-nowrap.hidden{margin-left:0.5rem!important}}body:has(.router-api-reference-marker) #content,body:has(.router-api-reference-marker) #header{max-width:48rem}body:has(.router-api-reference-marker) #content-area table{width:100%;table-layout:auto}body:has(.router-api-reference-marker) #content-area th,body:has(.router-api-reference-marker) #content-area td{min-width:4rem!important;overflow-wrap:anywhere}body:has(.router-api-reference-marker) #content-area table:has(th:nth-child(6)) th:nth-child(3),body:has(.router-api-reference-marker) #content-area table:has(th:nth-child(6)) td:nth-child(3){min-width:5rem!important}@media (max-width: 1535px){body:has(.router-api-reference-marker) #content-side-layout{display:none!important}}body:has(.router-provider-coverage-marker) #content,body:has(.router-provider-coverage-marker) #header{max-width:64rem}body:has(.router-provider-coverage-marker) #content-area table{width:100%;table-layout:auto}body:has(.router-provider-coverage-marker) #content-area th,body:has(.router-provider-coverage-marker) #content-area td{min-width:5rem!important;overflow-wrap:anywhere}body:has(.router-provider-coverage-marker) #content-area th:first-child,body:has(.router-provider-coverage-marker) #content-area td:first-child{min-width:12rem!important}body:has(.router-quickstart-marker) [data-component-part=\"card-content\"] [data-component-part=\"code-block-root\"][style*=\"height:190px\"],body:has(.router-quickstart-marker) [data-component-part=\"card-content\"] [data-component-part=\"code-block-root\"][style*=\"height: 190px\"]{height:86px!important}#content img:not([data-component-part=\"card-image\"]){max-width:min(100%, 750px)}#content .frame:has(img){max-width:calc(750px + 1rem)}"},{"filePath":"samples-cards.css","content":".sample-card-grid{display:grid;gap:20px;grid-template-columns:repeat(2, minmax(0, 1fr));margin-top:28px}.sample-card{min-width:0;perspective:1200px}.sample-card-inner{height:565px;position:relative;transform-style:preserve-3d;transition:transform 560ms cubic-bezier(.2, .75, .3, 1)}.sample-card[data-flipped=\"true\"] .sample-card-inner{transform:rotateY(180deg)}.sample-card-face{backface-visibility:hidden;background:#fff;border:1px solid #e5e1eb;border-radius:12px;box-sizing:border-box;height:100%;inset:0;overflow:hidden;position:absolute;width:100%}.sample-card-front{display:flex;flex-direction:column}.sample-card-back{opacity:0;pointer-events:none;transform:rotateY(180deg);visibility:hidden}.sample-card[data-flipped=\"true\"] .sample-card-front{pointer-events:none;transition:visibility 0s linear 280ms;visibility:hidden}.sample-card[data-flipped=\"true\"][data-active-path=\"api\"] .sample-card-back[data-sample-path=\"api\"],.sample-card[data-flipped=\"true\"][data-active-path=\"endpoint\"] .sample-card-back[data-sample-path=\"endpoint\"]{opacity:1;pointer-events:auto;visibility:visible}.sample-card-preview{border-bottom:1px solid #e5e1eb;cursor:pointer;display:block;width:100%}.sample-card-body{display:flex;flex:1;flex-direction:column;padding:20px}.sample-card-body h2,.sample-path-body h2{color:#49378b;font-size:18px;font-weight:700;letter-spacing:-.02em;margin:0 0 8px}.sample-path-body h2{text-align:center}.sample-card-body>p{color:#5f5966;font-size:14px;line-height:1.55;margin:0;min-height:66px}.sample-card-actions{display:flex;gap:8px;margin-top:20px}.sample-card-actions button{background:#fff;border:1px solid #cfc8de;border-radius:6px;color:#49378b;cursor:pointer;flex:1;font-size:13px;font-weight:700;padding:10px 12px}.sample-card-links{border-top:1px solid #eeeaf1;display:flex;gap:8px;margin-top:16px;padding-top:12px}.sample-card-links a{color:#625b6c;font-size:12px;font-weight:650;text-decoration:none}.sample-card-links span{color:#b3adba}.sample-path-body{padding:20px}.sample-path-body>button{background:transparent;border:0;color:#625b6c;cursor:pointer;font-size:12px;font-weight:700;padding:0}.sample-path-eyebrow{color:#857a9e;font-size:10px;font-weight:700;letter-spacing:.08em;margin:19px 0 5px;text-align:center;text-transform:uppercase}.sample-path-body>p:not(.sample-path-eyebrow){color:#5f5966;font-size:12px;line-height:1.5;margin:0 0 15px}.sample-path-steps{display:grid;gap:8px}.sample-path-step{align-items:center;background:#faf9fc;border:1px solid #e5e1ea;border-radius:8px;display:flex;gap:10px;padding:10px 11px}.sample-path-number{align-items:center;background:#49378b;border-radius:999px;color:#fff;display:inline-flex;flex:0 0 21px;font-size:11px;font-weight:700;height:21px;justify-content:center}.sample-path-copy{flex:1;min-width:0}.sample-path-copy strong{color:#312c36;display:block;font-size:12px}.sample-path-copy span{color:#706a75;display:block;font-size:11px;line-height:1.35;margin-top:2px}.sample-path-step a{color:#49378b;flex:0 0 auto;font-size:11px;font-weight:700;text-decoration:none}@media (max-width: 768px){.sample-card-grid{grid-template-columns:1fr}.sample-card-inner{height:clamp(620px, 180vw, 760px)}}"}]}
{"page":{"pagePath":"ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","slug":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","pageMetadata":{"title":"Submit a Kling 4.0 text-to-video task in Kling's native shape.","description":"Optional provider-native alternative to `/v2/models/kling/kling-4.0`: the body is Kling's own text-to-video request and the answer is Kling's own task response shape. Poll the task on `GET /v2/native/kling/tasks`. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. `callback_url` and `external_task_id` are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (`data.id`). Only `application/json` bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers `404`.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/native/kling/text-to-video/kling-4.0","href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","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: [\"Optional provider-native alternative to \", _jsx(_components.code, {\n children: \"/v2/models/kling/kling-4.0\"\n }), \": the body is Kling’s own text-to-video request and the answer is Kling’s own task response shape. Poll the task on \", _jsx(_components.code, {\n children: \"GET /v2/native/kling/tasks\"\n }), \". The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. \", _jsx(_components.code, {\n children: \"callback_url\"\n }), \" and \", _jsx(_components.code, {\n children: \"external_task_id\"\n }), \" are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (\", _jsx(_components.code, {\n children: \"data.id\"\n }), \"). Only \", _jsx(_components.code, {\n children: \"application/json\"\n }), \" bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers \", _jsx(_components.code, {\n children: \"404\"\n }), \".\"]\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":"Submit a Kling 4.0 text-to-video task in Kling's native shape.","description":"Optional provider-native alternative to `/v2/models/kling/kling-4.0`: the body is Kling's own text-to-video request and the answer is Kling's own task response shape. Poll the task on `GET /v2/native/kling/tasks`. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. `callback_url` and `external_task_id` are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (`data.id`). Only `application/json` bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers `404`.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/native/kling/text-to-video/kling-4.0","href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dripart/0598a3d384a97986/giscus-comments.js","/_mintlify/custom/dripart/bd0341946f3c75a6/syft.js","/_mintlify/custom/dripart/042392a43b5e681e/samples-cards.js"],"openApiReferenceData":{"operation":{"summary":"Submit a Kling 4.0 text-to-video task in Kling's native shape.","description":"Optional provider-native alternative to `/v2/models/kling/kling-4.0`: the body is Kling's own text-to-video request and the answer is Kling's own task response shape. Poll the task on `GET /v2/native/kling/tasks`. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. `callback_url` and `external_task_id` are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (`data.id`). Only `application/json` bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers `404`.","operationId":"createRouterNativeKlingTextToVideo","x-comfy-hand-wired":true,"tags":["Comfy Router"],"security":["efcd5a15-6abf-4e12-88a7-2b45afd72af0","dd96fd6d-7fc4-4d3c-b7ec-f186f7cae881"],"requestBody":"456d4450-2898-4fbe-928e-1447b0121e35","responses":{"200":"a684476d-5100-4d3f-94f7-666e241c733f","400":"075748f3-8b23-45a8-8883-4c6796820854","401":"d2384160-712b-4151-9ef6-39794474c030","403":"0abf77e0-fe37-4d0a-ab3f-e07b1cffba90","404":"d1a821f4-a8a7-46ec-9b56-16c530981c55","413":"ddc97202-525f-439c-8d94-76b3453b7e35","415":"8a5cb555-f488-4036-a2f6-f3e42b66a91e","429":"844c7fa6-f667-40eb-a1cf-465131062a18","500":"9c60f0b0-d577-40c4-8bb9-931d94e435ef","503":"b70f1a41-17cb-42cd-97c0-7facc42c54ba","default":"5df22265-bedb-4de2-905d-d65ccb7146b9"},"method":"post","type":"path","servers":["070c1d93-4005-4265-a8d8-cf7d9969770d"],"path":"/v2/native/kling/text-to-video/kling-4.0","baseUrlOptions":["https://api.comfy.org"],"title":"Submit a Kling 4.0 text-to-video task in Kling's native shape.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Kling's native Kling 4.0 text-to-video request.","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request body for a Kling 4.0 text-to-video generation. `settings.duration` and `settings.resolution` are required so the request never falls back to Kling's own defaults, which are the most expensive configuration.","example":{"prompt":"A neon-lit alley in the rain, slow dolly forward.","settings":{"resolution":"1080p","aspect_ratio":"16:9","duration":5}},"required":["prompt","settings"],"properties":{"prompt":{"type":"string","minLength":1,"maxLength":26000,"description":"Prompt that may include positive and negative descriptions. Up to 26,000 English characters or 11,000 non-English characters; comfy-api enforces 1 to 26,000 characters, and Kling itself refuses longer non-English text.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"settings":{"type":"object","description":"Output configuration such as resolution, aspect ratio and duration.","required":["duration","resolution"],"properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"description":"Resolution of the generated video. One of \"720p\", \"1080p\" or \"4k\". Required.","isRequired":true,"uniqueKey":"settings.resolution","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","minimum":3,"maximum":30,"description":"Video length in seconds, 3 through 30. Required.","isRequired":true,"uniqueKey":"settings.duration","typeLabel":"integer"},"dynamic_range":{"oneOf":[{"type":"string","enum":["sdr","hdr"],"description":"Dynamic range of the generated video. One of \"sdr\" or \"hdr\". Default \"sdr\". \"hdr\" needs a \"1080p\" or \"4k\" resolution and is refused at \"720p\". An HDR video costs more per output second. An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","uniqueKey":"settings.dynamic_range.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sdr","hdr"],"description":"Dynamic range of the generated video. One of \"sdr\" or \"hdr\". Default \"sdr\". \"hdr\" needs a \"1080p\" or \"4k\" resolution and is refused at \"720p\". An HDR video costs more per output second. An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","uniqueKey":"settings.dynamic_range.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.dynamic_range","typeLabel":"enum\u003cstring> | null"},"aspect_ratio":{"oneOf":[{"type":"string","enum":["21:9","16:9","9:16","1:1","4:3","3:4"],"description":"Aspect ratio (width:height) of the generated frames. One of \"21:9\", \"16:9\", \"9:16\", \"1:1\", \"4:3\" or \"3:4\". Default \"16:9\". An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","uniqueKey":"settings.aspect_ratio.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["21:9","16:9","9:16","1:1","4:3","3:4"],"description":"Aspect ratio (width:height) of the generated frames. One of \"21:9\", \"16:9\", \"9:16\", \"1:1\", \"4:3\" or \"3:4\". Default \"16:9\". An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","uniqueKey":"settings.aspect_ratio.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.aspect_ratio","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"settings","typeLabel":"object"},"options":{"oneOf":[{"type":"object","description":"General configuration such as watermark options. `options.callback_url` and `options.external_task_id` are not supported on Kling 4.0; Comfy Router refuses a request that sets either inside `options`. A top-level `callback_url` or `external_task_id` is not part of this schema and is removed before the request reaches Kling. An explicit null `options` is treated as absent, as the /proxy Kling 4.0 check and Kling do.","x-go-type":"KlingV2Options","properties":{"watermark_info":{"oneOf":[{"type":"object","description":"Whether to generate watermarked results simultaneously. Custom watermarks are not supported. An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","properties":{"enabled":{"type":"boolean","description":"true means generate watermarked result, false means do not generate. Default false.","uniqueKey":"options.oneOf.0.watermark_info.oneOf.0.enabled","typeLabel":"boolean"}},"uniqueKey":"options.oneOf.0.watermark_info.oneOf.0","typeLabel":"object"},{"type":"null","description":"Whether to generate watermarked results simultaneously. Custom watermarks are not supported. An explicit null is treated as absent, as the /proxy Kling 4.0 check and Kling do.","properties":{"enabled":{"type":"boolean","description":"true means generate watermarked result, false means do not generate. Default false."}},"uniqueKey":"options.oneOf.0.watermark_info.oneOf.1","typeLabel":"null"}],"uniqueKey":"options.oneOf.0.watermark_info","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"options.oneOf.1","typeLabel":"null"}],"uniqueKey":"options","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"prompt":"A neon-lit alley in the rain, slow dolly forward.","settings":{"resolution":"1080p","aspect_ratio":"16:9","duration":5}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a684476d-5100-4d3f-94f7-666e241c733f":{"description":"OK - the task-creation response, in Kling's own shape.","headers":{"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"type":"object","description":"Response returned when a Kling 3.0 Turbo task is created.","properties":{"code":{"type":"integer","description":"Error code. 0 indicates success.","uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Error message.","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Request ID generated by the system.","uniqueKey":"request_id","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"type":"string","description":"The created task ID.","uniqueKey":"data.id","typeLabel":"string"},"status":{"type":"string","description":"Task status. One of \"submitted\", \"processing\", \"succeeded\" or \"failed\".","uniqueKey":"data.status","typeLabel":"string"},"create_time":{"type":"integer","format":"int64","description":"Task creation time. Unix timestamp in milliseconds.","uniqueKey":"data.create_time","typeLabel":"integer\u003cint64>"},"update_time":{"type":"integer","format":"int64","description":"Task update time. Unix timestamp in milliseconds.","uniqueKey":"data.update_time","typeLabel":"integer\u003cint64>"},"external_id":{"type":"string","description":"The custom task ID for this task, if any.","uniqueKey":"data.external_id","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"message":"\u003cstring>","request_id":"\u003cstring>","data":{"id":"\u003cstring>","status":"\u003cstring>","create_time":123,"update_time":123,"external_id":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"075748f3-8b23-45a8-8883-4c6796820854":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d2384160-712b-4151-9ef6-39794474c030":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"0abf77e0-fe37-4d0a-ab3f-e07b1cffba90":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d1a821f4-a8a7-46ec-9b56-16c530981c55":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ddc97202-525f-439c-8d94-76b3453b7e35":{"description":"A Router request-level failure - the request never reached the model, or failed for a reason the model itself did not report. The body is `RouterErrorResponse` and the bucket is repeated on `X-Comfy-Error-Type`.","headers":{"X-Comfy-Error-Type":{"description":"Coarse, machine-readable bucket for the failure, set by Router on every error response. It carries the same value as `RouterErrorResponse.error_type`, and on the `422` it is the only machine-readable bucket, because that body is the FastAPI `detail[]` shape and has no `error_type` field of its own. A client can therefore branch on this header alone, before deciding which of the two Router error bodies it received.","required":true,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"type":"object","description":"Router's request-level error body: what is returned when the request never reached the model, or failed for a reason the model itself did not report - auth, quota, an unknown model ID, or provider transport. A model-level validation failure has its own shape, `RouterValidationErrorResponse`, because flattening a FastAPI `detail[]` array into this `detail` string would destroy the per-field granularity an SDK branches on.","properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"credential_kind","typeLabel":"string"}},"required":["detail","error_type"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8a5cb555-f488-4036-a2f6-f3e42b66a91e":{"description":"A Router request-level failure - the request never reached the model, or failed for a reason the model itself did not report. The body is `RouterErrorResponse` and the bucket is repeated on `X-Comfy-Error-Type`.","headers":{"X-Comfy-Error-Type":{"description":"Coarse, machine-readable bucket for the failure, set by Router on every error response. It carries the same value as `RouterErrorResponse.error_type`, and on the `422` it is the only machine-readable bucket, because that body is the FastAPI `detail[]` shape and has no `error_type` field of its own. A client can therefore branch on this header alone, before deciding which of the two Router error bodies it received.","required":true,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"type":"object","description":"Router's request-level error body: what is returned when the request never reached the model, or failed for a reason the model itself did not report - auth, quota, an unknown model ID, or provider transport. A model-level validation failure has its own shape, `RouterValidationErrorResponse`, because flattening a FastAPI `detail[]` array into this `detail` string would destroy the per-field granularity an SDK branches on.","properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"credential_kind","typeLabel":"string"}},"required":["detail","error_type"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"844c7fa6-f667-40eb-a1cf-465131062a18":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"9c60f0b0-d577-40c4-8bb9-931d94e435ef":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b70f1a41-17cb-42cd-97c0-7facc42c54ba":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5df22265-bedb-4de2-905d-d65ccb7146b9":{"description":"An error on the native pass-through. A refusal the pass-through itself raises is `RouterErrorResponse`, with the bucket repeated on `X-Comfy-Error-Type`. A refusal from a shared gateway check that runs before it (missing or invalid credentials, provider availability, workspace provider governance) uses the gateway's generic error body instead and sends no `X-Comfy-Error-Type`. Once the call has reached Kling, Kling's answer is returned as Kling sent it, so a Kling error keeps Kling's own error body, also with no `X-Comfy-Error-Type`; a poll for a task the caller did not submit answers `404` with the generic error body.","headers":{"X-Comfy-Error-Type":{"description":"The Router error bucket, sent only when the pass-through itself raised the refusal; absent on a gateway refusal and on an answer returned from Kling.","required":false,"schema":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}]}},"X-Comfy-Request-Id":{"description":"Server-generated identifier for this call, present on every Router response - success, 4xx and 5xx alike, because an error response is exactly when a user needs an id to quote in a support request. The same value is written into the call's usage/audit event, which is what lets a complaint about a charge be joined to the charge itself instead of searched for by timestamp.","required":true,"schema":{"type":"string","format":"uuid","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","required":["detail","error_type"],"properties":{"detail":{"type":"string","description":"Human-readable description of the failure, safe to surface to an end user. Not machine-parsed - branch on `error_type` instead. For `model_not_found` on a retired model, `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and visible to the caller, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of the usual suggestion list. A successor named here is always a live catalog ID the call can be re-pointed at. A model whose sunset date is still in the future is not retired: it stays listed by `GET /v2/models` and stays runnable until that date. Like the rest of `detail`, this retirement wording is for display and carries no compatibility guarantee.","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"error_type":{"type":"string","description":"Coarse, machine-readable bucket for a Router failure, mirrored on the `X-Comfy-Error-Type` response header so a caller can branch without parsing the body. The set is closed at twenty-five values: the seven request-level buckets `invalid_input`, `content_policy_violation`, `provider_error`, `provider_timeout`, `insufficient_credits`, `budget_exceeded` and `model_not_found`, plus the transport-level `unauthorized`, `forbidden`, `concurrency_limit_exceeded`, `client_disconnected`, `internal_error`, `deadline_exceeded`, `not_enabled`, `service_unavailable`, `budget_check_unavailable`, `rate_limited`, `cancelled`, `queue_timeout`, `request_not_found`, `queue_backlog_full` and `result_expired`, plus the request-level `byok_credential_rejected`, `no_output` and `persist_outputs_forbidden`. Closed describes the set as documented today, not a bound that holds forever: the set is expected to grow, which is why this is deliberately a plain string and not an `enum`, so a client must treat an unrecognised value as `internal_error` rather than switch exhaustively over the list above and break on the next addition.","example":"invalid_input","x-comfy-error-types":[{"value":"invalid_input","tier":"request","meaning":"The request was rejected before it reached the model - a malformed body, a malformed or expired pagination cursor, an input the model's own schema does not accept, or an `Idempotency-Key` that cannot serve this request (already used for a different request - the method, the path and query, or the body differ - or already consumed by a call whose response cannot be replayed). Sent with `409` in the key cases and with `400`/`422` in the others; the status says which, and the key cases are the ones answered by using a new key rather than by editing the request."},{"value":"content_policy_violation","tier":"request","meaning":"The provider refused the request on content-policy grounds. A refusal of the caller's input is deterministic: re-sending the same input will be refused again. On the synchronous route, when Router can tell that the provider refused the model's own generated output instead, `detail` says so and what may succeed: a changed prompt or references, or for some providers the same input retried. The queued collect says so only for the providers whose same input may succeed on a retry."},{"value":"provider_error","tier":"request","meaning":"The partner provider reported a failure of its own, or returned a response Router could not interpret as a result."},{"value":"provider_timeout","tier":"request","meaning":"The partner provider did not answer within its deadline. This bucket is the provider timing out and never Router's own server deadline, which is reported as `deadline_exceeded` - the two share `504` and are separated because they name different causes: this one says the partner failed, that one says Comfy stopped holding the connection."},{"value":"insufficient_credits","tier":"request","meaning":"The calling workspace does not have enough credits to run the model."},{"value":"budget_exceeded","tier":"request","meaning":"A hard spend cap has been reached. The HTTP status is 402."},{"value":"budget_check_unavailable","tier":"transport","meaning":"A hard spend cap could not be checked. Retry a 503 after the Retry-After delay."},{"value":"model_not_found","tier":"request","meaning":"The `{provider}/{model}` ID names no model Router can run: an unknown provider, an unenrolled id, one the catalog has retired past its sunset date, or a catalogued ID the provider does not currently serve for Comfy. A retired id's `detail` reads `\u003cid> was retired on \u003cYYYY-MM-DD>; use \u003csuccessor>` when a successor is recorded and not withheld, or just `\u003cid> was retired on \u003cYYYY-MM-DD>` when it is not, instead of a suggestion list; the successor named for a retired id is always a live catalog ID you can re-point the call at, and a successor is dropped from `detail` either because the table records none, or because the recorded one is currently withheld behind an embargo the caller cannot see. A model whose sunset is still in the future is not withdrawn: it stays listed by `GET /v2/models` and stays runnable until the date, so a listing taken today remains the answer to what runs today. Otherwise `detail` carries up to three suggestions drawn from the models the caller is entitled to see, except for a catalogued ID the provider does not currently serve for Comfy, whose response carries no suggestions."},{"value":"unauthorized","tier":"transport","meaning":"The request carried no usable credential."},{"value":"forbidden","tier":"transport","meaning":"The credential is valid but is not entitled to this model or this operation."},{"value":"concurrency_limit_exceeded","tier":"transport","meaning":"The workspace already has as many calls in flight as it is allowed; retry once one of them finishes. It carries one further condition on the run route, on a `409` rather than the `429` above: another call is already in flight for the `Idempotency-Key` this request presented. Re-send the same key after `Retry-After` seconds to collect that call's result."},{"value":"client_disconnected","tier":"transport","meaning":"The caller closed the connection before Router could return a result. It is logged rather than delivered - there is no socket left to write it to - and it is an attribution, not a billing outcome: a provider generation that completed is billed regardless of whether the caller received the response."},{"value":"internal_error","tier":"transport","meaning":"Router itself failed. It is also the value a client should treat any unrecognized bucket as, so a later addition to the set does not break a client generated before it."},{"value":"deadline_exceeded","tier":"transport","meaning":"Comfy stopped holding the connection at its own configured bound before an answer arrived. It shares `504` with `provider_timeout` and the pair says which side ran out of time; this one is Comfy's own bound, so nothing about the request was rejected and the same request may be retried. It says nothing about the charge: a provider generation that completed is billed regardless of whether the caller received the response. Retry it with the same `Idempotency-Key`: when the provider had already accepted the generation, the retry collects that generation rather than dispatching another, and a `Retry-After` on the `504` says when to ask."},{"value":"not_enabled","tier":"transport","meaning":"Comfy Router is not switched on for this caller yet. Nothing about the request is wrong and the model exists, which is why this is not `model_not_found`; it shares `403` with `forbidden` and is not the same thing, because `forbidden` is an entitlement decision about the caller while this is a state of the rollout. It is terminal: do not retry, and do not treat it as an outage. The one exception to \"about the caller\" is the queued submit, which also answers `not_enabled` for a model whose partner answers a generation directly as bytes: that model cannot yet be queued, so it is the model and not the caller that is refused, nothing is queued or charged, and the synchronous route `POST /v2/models/{provider}/{model}` runs it instead."},{"value":"service_unavailable","tier":"transport","meaning":"A service Comfy Router depends on is temporarily unavailable and the caller did nothing wrong. Retry it with backoff: it is the one bucket here whose condition clears on its own, without the caller changing the request and without a concurrency slot freeing, which is what distinguishes it from the other retryable answers (`concurrency_limit_exceeded`, `deadline_exceeded`). It is separate from `internal_error` - which is a `500` and means Router itself failed - so a client can tell \"come back shortly\" from \"this call is not going to work\"."},{"value":"rate_limited","tier":"transport","meaning":"The caller has spent an allowance measured over a window and must wait for that window to roll, or the model provider throttled the call before starting any generation. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one clears the moment one of the caller's own in-flight calls finishes, so retrying in seconds is right, whereas nothing the caller does drains this one early. `detail` names the window, and `Retry-After` the seconds to wait. On a provider's limit, `X-Comfy-Upstream-Status` carries its `429`, and `Retry-After` carries the provider's own wait only when it sent one."},{"value":"cancelled","tier":"transport","meaning":"A queued request was withdrawn — through the cancel route, or by an operator — before it produced a result; it is terminal, and it is not by itself a statement about the charge. Cancelling stops Comfy waiting and it does not always stop the partner working, so a request cancelled while it was still `IN_QUEUE` was never dispatched and cannot be charged, whereas one cancelled after it was admitted may still be charged — a partner generation that completes is charged whether or not anyone collected it, which is why the cancel route calls the ask a request rather than a guarantee. It is not `client_disconnected`: that one says nobody is listening any more while a generation may still be running and billable, whereas this says the request itself was withdrawn. A caller polling the status read sees `200` with this in the body, because the request ended and so the read succeeded. Collecting the result of such a request answers `409` in Router's error envelope: that read also worked, and what it found is a request whose terminal state - the caller's own decision - leaves nothing to return. It is deliberately not `410`, which on that route means the result aged out of its retention window, and not a `5xx`, which would report the caller's own cancellation as a Router fault and read to a polling client as worth retrying."},{"value":"queue_timeout","tier":"transport","meaning":"A queued request waited past its queue timeout without ever being admitted. Terminal, unbilled, and it never took a concurrency slot — the job never reached a provider. Deliberately not `deadline_exceeded`, which is the synchronous route's connection bound: a `deadline_exceeded` generation may be running and billable, whereas this one provably never started. It is returned under `504`, which it shares with `provider_timeout` and `deadline_exceeded` because a status can only say that a clock ran out; which clock - the partner's, Comfy's connection bound, or the queue's admission bound - is what `error_type` carries. The request itself is terminal, so submit a new one rather than re-reading this one."},{"value":"request_not_found","tier":"transport","meaning":"The `request_id` names no request of the caller's under this model. It is the second of the two conditions the queued reads' `404` covers; the first is the `{provider}/{model}` ID resolving to no partner model, which is `model_not_found` and carries fuzzy model suggestions. It also covers the right-id / wrong-model URL the path shape refuses, and it is deliberately indistinguishable from a request in another workspace, so a probe with a guessed id learns nothing. A request that has merely aged out of its retention window is `410`, not this."},{"value":"queue_backlog_full","tier":"transport","meaning":"The caller already has too many queued requests waiting to run, so this submit was refused. It shares `429` with `concurrency_limit_exceeded` and is not the same thing: that one is the synchronous route's answer for too many calls in flight at once, whereas the queue accepts a submit at that limit and parks it, and this bucket is the separate bound on how many a caller may leave waiting so that parking cannot mean enqueuing without end. It clears as the caller's own queued requests finish, so retry once some of them complete."},{"value":"result_expired","tier":"transport","meaning":"The request existed and finished, but its result is no longer stored, so the collect has nothing to return. It is returned under `410` and is permanent for that id: re-reading will answer the same way, so do not retry it. It is deliberately not `request_not_found`, which would tell you the id was never valid and invite re-submitting a generation that has already run. Running the model again means submitting a new request. If Comfy could not copy a result's files to its own storage, the result keeps the provider's own short-lived link instead; such a result is served for only 5 minutes after the request finishes and then answers this way, so collect it promptly and save the output on your side. For a workspace under a zero-data-retention agreement, a queued request's result is not kept after it is delivered: it is removed shortly after the first collect, and an uncollected result is removed after a grace period once the request finishes, so store the result on your side when you first collect it."},{"value":"byok_credential_rejected","tier":"request","meaning":"The provider rejected the key supplied for this call. It is returned under `401`. Check the key stored for this provider; sending the same key again will be refused the same way. An upstream `403` is the same refusal and is returned as this `401`, with the provider's own status on `X-Comfy-Upstream-Status`. This names the caller's provider key, not the caller's Comfy credential (`unauthorized`, `forbidden`) and not an outage of the provider (`provider_error`). The provider's response body is not included."},{"value":"no_output","tier":"request","meaning":"The model finished without producing the image it was asked for and named no content policy for it, so the request is retryable, and `detail` says whether a retry with the same `Idempotency-Key` runs it again. The provider answered successfully; this is returned under `502` because nothing about the request was wrong, and the same request usually succeeds. `detail` names the model's finish reason when the provider gave one. When no attempt of a synchronous request was billed, the key is released, `detail` says so, and a retry with the same key runs the request again. Otherwise retry with a new `Idempotency-Key`; a retry with the same key does not run the request again. On a queued request a resubmit with the same key can be answered with this stored failure rather than run again, so resubmit with a new key. It is distinct from `content_policy_violation`, which says a retry of the same input is pointless, and from `provider_error`, which says the provider failed. Outside the released case it says nothing about the charge."},{"value":"persist_outputs_forbidden","tier":"request","meaning":"A queued submit asked for `persist_outputs=true` from a workspace that has zero data retention enabled. Saving an output into the workspace would keep it, so such a workspace can never use the option. It is returned under `403`, which it shares with `forbidden` and `not_enabled`: it is not a judgement about the credential and not a rollout state, and it does not clear on its own. Nothing was queued and nothing was charged. Submit again without `persist_outputs` to run the request without saving its output, or ask a workspace admin about the workspace's retention setting."}],"isRequired":true,"uniqueKey":"oneOf.0.error_type","typeLabel":"string"},"upstream_detail":{"type":"string","description":"A bounded, sanitized reason for an `invalid_input` rejection, or the provider's moderation sentence for a `content_policy_violation`. On the synchronous route it is the reason the model provider gave, and it is present only when `X-Comfy-Upstream-Status` is a provider `4xx` or `2xx` and one of two things holds. Either `error_type` is `invalid_input` - i.e. the provider refused the request as malformed and said why - or `error_type` is `content_policy_violation` and the provider's refusal is one of a fixed set of moderation sentences Router recognizes, such as `Azure MAI blocked this request through content moderation.`; Router never forwards a refusal's free-form text. Usually that status is a `4xx`; it is a `2xx` for a provider that reports a rejected generation inside a success envelope (a BytePlus failed-task poll is HTTP `200` with the reason in its body). Router reads the reason of some providers only, so branch on its presence. It is absent on every other failure, including provider `5xx`, transport failures, other content-policy refusals and any refusal Router raised about itself, and it mirrors the `X-Comfy-Upstream-Detail` header. The queued collect (`GET /v2/models/{provider}/{model}/requests/{request_id}`) of a run that ended `invalid_input` or `content_policy_violation` carries the same reason in this field on its first collect, which then deletes it from the request: a later collect normally answers the same `error_type` and `detail` without it, so read it from the first collect. That read sends neither header. The queued collect also uses this field for Router's own reason when Router refused the request before sending it to the provider and can state why in one sentence, which the synchronous route answers in `detail`; a refusal that names individual fields carries none.","uniqueKey":"oneOf.0.upstream_detail","typeLabel":"string"},"refusal_subject":{"type":"string","description":"Which input or output a content-policy refusal was about, as a Router-level closed vocabulary: `input`, `output`, `input_text`, `input_image`, `input_video`, `input_audio`, `output_text`, `output_image`, `output_video`, `output_audio`. The bare `input` / `output` values name the side when the provider did not name a modality. Present only when `error_type` is `content_policy_violation` and the provider named the refused subject with a machine-readable code; absent otherwise. Never provider text. Named today for BytePlus, Runway, BFL, Gemini, Veo, Vertex, xAI and Wan refusals, and for the MiniMax Router's Nano Banana legs' Gemini refusals; a provider whose refusal does not say which side it was about leaves it absent. A queued request's result read names it too, except for BytePlus, whose queued refusals leave it absent. It mirrors the `X-Comfy-Refusal-Subject` header.","uniqueKey":"oneOf.0.refusal_subject","typeLabel":"string"},"budget":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.budget.resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.budget.set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.budget.id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.budget.scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.budget.mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.budget.spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.budget","typeLabel":"object"},"blocking_budgets":{"type":"array","description":"All exhausted hard budgets, visible to the workspace Owner.","items":{"type":"object","required":["scope_kind","resets_at","set_by"],"properties":{"scope_kind":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_kind","typeLabel":"string"},"resets_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time>"},"set_by":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].set_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].id","typeLabel":"string"},"scope_id":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].scope_id","typeLabel":"string"},"mode":{"type":"string","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].mode","typeLabel":"string"},"limit_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_micro_usd","typeLabel":"integer\u003cint64>"},"spent_micro_usd":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_micro_usd","typeLabel":"integer\u003cint64>"},"limit_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].limit_credits","typeLabel":"integer\u003cint64>"},"spent_credits":{"type":"integer","format":"int64","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX].spent_credits","typeLabel":"integer\u003cint64>"}},"description":"The exhausted budget. Identifiers, mode and amounts are visible to workspace Owners.","uniqueKey":"oneOf.0.blocking_budgets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.blocking_budgets","typeLabel":"object[]"},"denied_reason":{"type":"string","description":"Billing's policy branch for a partner-node spend denial - `no_funds` when the billed wallet is empty, `unspecified` when the call was refused without a funds reading saying so. Present only when `error_type` is `insufficient_credits` and the deployment reports wallet facts; absent otherwise. A machine-readable code, not display text: show `detail`, branch on this.","uniqueKey":"oneOf.0.denied_reason","typeLabel":"string"},"billed_workspace":{"type":"object","description":"The wallet a refused call would have charged, on `RouterErrorResponse.billed_workspace`. Answers \"which wallet is empty?\" - it is not necessarily the workspace the caller's UI currently has selected, and a team member's personal credential names their personal wallet here even while a funded team is open. Present only alongside `denied_reason`.","properties":{"type":{"type":"string","description":"`personal` or `team`. An open string: treat any other value as personal.","isRequired":true,"uniqueKey":"oneOf.0.billed_workspace.type","typeLabel":"string"},"id":{"type":"string","description":"The Cloud workspace id. Absent on the legacy rail.","uniqueKey":"oneOf.0.billed_workspace.id","typeLabel":"string"},"rail":{"type":"string","description":"`legacy` when the call bills the caller's pre-workspace Metronome customer rather than a Cloud workspace; that customer has no workspace id. Absent for a Cloud workspace.","uniqueKey":"oneOf.0.billed_workspace.rail","typeLabel":"string"}},"required":["type"],"uniqueKey":"oneOf.0.billed_workspace","typeLabel":"object"},"credential_kind":{"type":"string","description":"How the refused request authenticated - `personal_api_key`, `team_api_key`, `personal_session` or `team_session`. Answers \"which credential do I switch to bill the other wallet?\". It is not a permission and grants nothing. Present only alongside `denied_reason`.","uniqueKey":"oneOf.0.credential_kind","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","description":"The refusal, when the gateway check reports it as an object.","properties":{"message":{"type":"string","description":"Human-readable description of the refusal.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable refusal code, when the check sets one.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"type":{"type":"string","description":"Machine-readable refusal type, when the check sets one.","uniqueKey":"oneOf.1.error.type","typeLabel":"string"},"provider":{"type":"string","description":"The provider the refusal concerns, when the check names one.","uniqueKey":"oneOf.1.error.provider","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The native pass-through's error body: `RouterErrorResponse` when the pass-through raised the refusal (`X-Comfy-Error-Type` is set), `RouterNativeKlingErrorResponse` when Kling's own error is returned, otherwise `RouterNativeGatewayErrorResponse`.","properties":{"code":{"type":"integer","description":"Kling's error code.","uniqueKey":"oneOf.2.code","typeLabel":"integer"},"message":{"type":"string","description":"Kling's human-readable error message.","uniqueKey":"oneOf.2.message","typeLabel":"string"},"request_id":{"type":"string","description":"Kling's request ID for the failed call.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","error_type":"invalid_input","upstream_detail":"\u003cstring>","refusal_subject":"\u003cstring>","budget":{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123},"blocking_budgets":[{"scope_kind":"\u003cstring>","resets_at":"2023-11-07T05:31:56Z","set_by":"\u003cstring>","id":"\u003cstring>","scope_id":"\u003cstring>","mode":"\u003cstring>","limit_micro_usd":123,"spent_micro_usd":123,"limit_credits":123,"spent_credits":123}],"denied_reason":"\u003cstring>","billed_workspace":{"type":"\u003cstring>","id":"\u003cstring>","rail":"\u003cstring>"},"credential_kind":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"efcd5a15-6abf-4e12-88a7-2b45afd72af0":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key.","scopes":[],"schemeName":"BearerAuth"}},"dd96fd6d-7fc4-4d3c-b7ec-f186f7cae881":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key authentication. Send the key in the X-API-Key header; keys are prefixed with 'comfyui-' and are generated from user account settings. The same 'comfyui-' key is also accepted in Authorization: Bearer (see BearerAuth), and when both headers carry a key, X-API-Key wins.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"070c1d93-4005-4265-a8d8-cf7d9969770d":{"url":"https://api.comfy.org"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key authentication. Send the key in the X-API-Key header; keys are prefixed with 'comfyui-' and are generated from user account settings. The same 'comfyui-' key is also accepted in Authorization: Bearer (see BearerAuth), and when both headers carry a key, X-API-Key wins.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key authentication. Send the key in the X-API-Key header; keys are prefixed with 'comfyui-' and are generated from user account settings. The same 'comfyui-' key is also accepted in Authorization: Bearer (see BearerAuth), and when both headers carry a key, X-API-Key wins.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"router-openapi.yaml"},"subdomain":"dripart","siteName":"ComfyUI","title":"Submit a Kling 4.0 text-to-video task in Kling's native shape. - ComfyUI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1},"zh":{"href":"/zh/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1},"ja":{"href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":0},"ko":{"href":"/ko/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1},"es":{"href":"/es/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1},"de":{"href":"/de/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1},"ru":{"href":"/ru/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape","matchLevel":1}}},"lastModified":"2026-12-06T08:40:58.144Z","originalFileLocation":"ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape.mdx","locale":"ja"},"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=\"Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling\u0026#x27;s own text-to-video request and the answer is Kling\u0026#x27;s own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ComfyUI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_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/dripart/lS3H5I41bE6LSXEf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Submit a Kling 4.0 text-to-video task in Kling\u0026#x27;s native shape. - ComfyUI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling\u0026#x27;s own text-to-video request and the answer is Kling\u0026#x27;s own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ComfyUI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dripart.mintlify.site/_mintlify/api/og/v2?division=Comfy+Router\u0026amp;title=Submit+a+Kling+4.0+text-to-video+task+in+Kling%27s+native+shape.\u0026amp;description=Optional+provider-native+alternative+to+%60%2Fv2%2Fmodels%2Fkling%2Fkling-4.0%60%3A+the+body+is+Kling%27s+own+text-to-video+request+and+the+answer+is+Kling%27s+own+task+response+\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=5c6f46f4e5237b666e8d61c8fe5c8b0caee7f234934dd3e2fbcfd18f6238239a\">\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=\"Submit a Kling 4.0 text-to-video task in Kling\u0026#x27;s native shape. - ComfyUI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling\u0026#x27;s own text-to-video request and the answer is Kling\u0026#x27;s own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dripart.mintlify.site/_mintlify/api/og/v2?division=Comfy+Router\u0026amp;title=Submit+a+Kling+4.0+text-to-video+task+in+Kling%27s+native+shape.\u0026amp;description=Optional+provider-native+alternative+to+%60%2Fv2%2Fmodels%2Fkling%2Fkling-4.0%60%3A+the+body+is+Kling%27s+own+text-to-video+request+and+the+answer+is+Kling%27s+own+task+response+\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=5c6f46f4e5237b666e8d61c8fe5c8b0caee7f234934dd3e2fbcfd18f6238239a\">\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/dripart/lS3H5I41bE6LSXEf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ComfyUI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#49378B\">\u003cmeta data-mint-head name=\"googlebot\" content=\"max-video-preview:0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.comfy.org/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.comfy.org/zh/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.comfy.org/ko/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.comfy.org/es/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.comfy.org/ru/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.comfy.org/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.comfy.org/#organization\",\"name\":\"ComfyUI\",\"url\":\"https://docs.comfy.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dripart/WCFdTagRdhtvk9-o/logo/light.svg?fit=max\u0026auto=format\u0026n=WCFdTagRdhtvk9-o\u0026q=85\u0026s=ec112de87239058f5a931a7e4b594965\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.comfy.org#website\",\"name\":\"ComfyUI\",\"url\":\"https://docs.comfy.org\",\"publisher\":{\"@id\":\"https://docs.comfy.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape#webpage\",\"url\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\",\"name\":\"Submit a Kling 4.0 text-to-video task in Kling's native shape.\",\"description\":\"Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling's own text-to-video request and the answer is Kling's own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.\",\"dateModified\":\"2026-12-06T08:40:58.144Z\",\"isPartOf\":{\"@id\":\"https://docs.comfy.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.comfy.org/ja/development/comfy-router/reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Comfy Router APIリファレンス\",\"item\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/list-the-models-comfy-router-can-run\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Comfy Router\",\"item\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/list-the-models-comfy-router-can-run\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Submit a Kling 4.0 text-to-video task in Kling's native shape.\",\"item\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape#apireference\",\"headline\":\"Submit a Kling 4.0 text-to-video task in Kling's native shape.\",\"name\":\"Submit a Kling 4.0 text-to-video task in Kling's native shape.\",\"description\":\"Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling's own text-to-video request and the answer is Kling's own task response shape. Poll the task on GET /v2/native/kling/tasks. The call is authenticated, admitted against the same caller limits and concurrency slots, and billed like a Router call to the same model, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so no callback is ever sent: poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.\",\"url\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape\",\"mainEntityOfPage\":{\"@id\":\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape#webpage\"},\"dateModified\":\"2026-12-06T08:40:58.144Z\",\"publisher\":{\"@id\":\"https://docs.comfy.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.comfy.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ComfyUI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ComfyUI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape.md","siteName":"ComfyUI","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]},{"language":"zh","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"资源","items":[{"label":"安装","href":"/zh/installation/system_requirements"},{"label":"教程","href":"/zh/tutorials/basic/text-to-image"},{"label":"开发","href":"/zh/development/overview"}]},{"header":"产品","items":[{"label":"功能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"画廊","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"下载","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"公司","items":[{"label":"关于","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"招聘","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"服务条款","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"隐私政策","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"pages":[{"title":"zh","href":"/zh/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]},{"language":"ja","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"リソース","items":[{"label":"インストール","href":"/ja/installation/system_requirements"},{"label":"チュートリアル","href":"/ja/tutorials/basic/text-to-image"},{"label":"開発","href":"/ja/development/overview"}]},{"header":"プロダクト","items":[{"label":"機能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"ギャラリー","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"ダウンロード","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"会社情報","items":[{"label":"概要","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"採用情報","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"利用規約","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"プライバシーポリシー","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ja/tutorials/partner-nodes/pricing","label":"料金"},{"href":"https://comfy.org/download?utm_source=docs","label":"ダウンロード"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"tabs":[{"tab":"はじめに","pages":[{"title":"はじめに","href":"/ja"}]},{"tab":"チュートリアル","pages":[{"title":"チュートリアル","href":"/ja/basic-concepts/workflow"}]},{"tab":"Comfy Router","pages":[{"title":"Comfy Router クイックスタート","sidebarTitle":"クイックスタート","href":"/ja/development/comfy-router/quickstart"},{"group":"Router API","pages":[{"title":"Comfy Router API の概要","sidebarTitle":"概要","href":"/ja/development/comfy-router/api"},{"title":"Comfy Router モデルを検出する","sidebarTitle":"モデルを検出","href":"/ja/development/comfy-router/discover-models"},{"title":"Comfy Router モデルスキーマと結果","sidebarTitle":"スキーマと結果","href":"/ja/development/comfy-router/schemas"},{"title":"Comfy Router リクエストのキューイング","sidebarTitle":"キューのリクエスト","href":"/ja/development/comfy-router/queue"},{"title":"Comfy Router のエラーとリトライ","sidebarTitle":"エラーとリトライ","href":"/ja/development/comfy-router/errors"},{"title":"Comfy Router の課金","sidebarTitle":"課金","href":"/ja/development/comfy-router/billing"},{"title":"LiteLLMでComfy Routerを使用する","sidebarTitle":"LiteLLM","href":"/ja/development/comfy-router/litellm"},{"title":"Comfy Router リアルタイムモデル","sidebarTitle":"リアルタイムモデル","href":"/ja/development/comfy-router/realtime"},{"title":"Kling 4.0: Comfy Router のエレメントとボイス","sidebarTitle":"Kling 4.0 エレメントとボイス","href":"/ja/development/comfy-router/kling-4-0-elements-voices"},{"title":"Stability API から Comfy Router への移行","sidebarTitle":"Stability API からの移行","href":"/ja/development/comfy-router/stability-migration"}]},{"group":"Reference","pages":[{"title":"Comfy Router API リファレンス","sidebarTitle":"API リファレンス","href":"/ja/development/comfy-router/reference"},{"title":"Comfy Router ヘッダー","sidebarTitle":"ヘッダー","href":"/ja/development/comfy-router/headers"},{"title":"Comfy Router の機能と制限","sidebarTitle":"機能と制限","href":"/ja/development/comfy-router/limitations"},{"group":"Comfy Router APIリファレンス","pages":[{"group":"Comfy Router","pages":[{"title":"List the models Comfy Router can run.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models","href":"/ja/api-reference/router/comfy-router/list-the-models-comfy-router-can-run"},{"title":"Read one partner model's catalog entry by canonical model ID.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}","href":"/ja/api-reference/router/comfy-router/read-one-partner-models-catalog-entry-by-canonical-model-id"},{"title":"Run a partner model synchronously by canonical model ID.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/models/{provider}/{model}","href":"/ja/api-reference/router/comfy-router/run-a-partner-model-synchronously-by-canonical-model-id"},{"title":"Price a model call before running it, without running it.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/models/{provider}/{model}/estimate","href":"/ja/api-reference/router/comfy-router/price-a-model-call-before-running-it-without-running-it"},{"title":"Read one partner model's input and output schemas as an OpenAPI document.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}/openapi.json","href":"/ja/api-reference/router/comfy-router/read-one-partner-models-input-and-output-schemas-as-an-openapi-document"},{"title":"Submit a partner model run to the queue and return immediately.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/models/{provider}/{model}/requests","href":"/ja/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"},{"title":"Collect the result of one submitted request.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}/requests/{request_id}","href":"/ja/api-reference/router/comfy-router/collect-the-result-of-one-submitted-request"},{"title":"Ask for one submitted request to be cancelled.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml put /v2/models/{provider}/{model}/requests/{request_id}/cancel","href":"/ja/api-reference/router/comfy-router/ask-for-one-submitted-request-to-be-cancelled"},{"title":"Read the queue state of one submitted request.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}/requests/{request_id}/status","href":"/ja/api-reference/router/comfy-router/read-the-queue-state-of-one-submitted-request"},{"title":"Submit a Kling 4.0 image-to-video task in Kling's native shape.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/native/kling/image-to-video/kling-4.0","href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-image-to-video-task-in-klings-native-shape"},{"title":"Submit a Kling 4.0 omni-video task in Kling's native shape.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/native/kling/omni-video/kling-4.0","href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-omni-video-task-in-klings-native-shape"},{"title":"Poll Kling tasks submitted on the native pass-through.","description":"Polls tasks submitted on `/v2/native/kling/...` and answers in Kling's own query response shape. Pass the task ids the submits returned (`data.id`) in `task_ids`; a task can only be polled by the account that submitted it, and only here. `external_task_ids` is refused, because `external_task_id` is never forwarded on submit. When the poll returns a task finished, `X-Comfy-Credits-Used` carries the credits Comfy charges for it at the Kling 4.0 Router list price. It is absent whenever no cost is reported (an unfinished task, for one), and absent means \"not reported\", not \"free\". This pass-through is enabled per workspace; where it is not enabled the route answers `404`.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/native/kling/tasks","href":"/ja/api-reference/router/comfy-router/poll-kling-tasks-submitted-on-the-native-pass-through"},{"title":"Submit a Kling 4.0 text-to-video task in Kling's native shape.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/native/kling/text-to-video/kling-4.0","href":"/ja/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]}]}]},{"group":"Models","pages":[{"title":"Comfy Router モデル","sidebarTitle":"すべてのモデル","description":"Comfy Router で利用できるすべてのモデルを、各モデルの入力と出力のモダリティとあわせて、プロバイダー別にまとめています。","href":"/ja/development/comfy-router/models"},{"title":"Comfy Router の料金","sidebarTitle":"料金","href":"/ja/development/comfy-router/pricing"},{"title":"Comfy Router の配信プロバイダー","sidebarTitle":"配信プロバイダー","href":"/ja/development/comfy-router/providers"},{"group":"All Models","pages":[{"group":"Anthropic","pages":[{"title":"Comfy Router で Claude Fable 5.1 を使う","sidebarTitle":"Claude Fable 5.1","href":"/ja/development/comfy-router/models/anthropic/claude-fable-5-1/code"},{"title":"Comfy Router で Claude Fable 5.2 を使用する","sidebarTitle":"Claude Fable 5.2","href":"/ja/development/comfy-router/models/anthropic/claude-fable-5-2/code"},{"title":"Comfy Router で Claude Fable 5 を使う","sidebarTitle":"Claude Fable 5","href":"/ja/development/comfy-router/models/anthropic/claude-fable-5/code"},{"title":"Comfy Router で Claude Haiku 4.5 20251001 を使用する","sidebarTitle":"Claude Haiku 4.5 20251001","href":"/ja/development/comfy-router/models/anthropic/claude-haiku-4-5-20251001/code"},{"title":"Comfy Router で Claude Opus 4.6 を使う","sidebarTitle":"Claude Opus 4.6","href":"/ja/development/comfy-router/models/anthropic/claude-opus-4-6/code"},{"title":"Comfy Router で Claude Opus 4.7 を使用する","sidebarTitle":"Claude Opus 4.7","href":"/ja/development/comfy-router/models/anthropic/claude-opus-4-7/code"},{"title":"Comfy Router で Claude Opus 4.8 を使用する","sidebarTitle":"Claude Opus 4.8","href":"/ja/development/comfy-router/models/anthropic/claude-opus-4-8/code"},{"title":"Comfy Router で Claude Opus 5.5 を使う","sidebarTitle":"Claude Opus 5.5","href":"/ja/development/comfy-router/models/anthropic/claude-opus-5-5/code"},{"title":"Comfy Router で Claude Opus 5 を使用する","sidebarTitle":"Claude Opus 5","href":"/ja/development/comfy-router/models/anthropic/claude-opus-5/code"},{"title":"Claude Sonnet 4.6 を Comfy Router で使用する","sidebarTitle":"Claude Sonnet 4.6","href":"/ja/development/comfy-router/models/anthropic/claude-sonnet-4-6/code"},{"title":"Comfy Router で Claude Sonnet 5.5 を使う","sidebarTitle":"Claude Sonnet 5.5","href":"/ja/development/comfy-router/models/anthropic/claude-sonnet-5-5/code"},{"title":"Comfy Router で Claude Sonnet 5 を使う","sidebarTitle":"Claude Sonnet 5","href":"/ja/development/comfy-router/models/anthropic/claude-sonnet-5/code"}]},{"group":"Beeble","pages":[{"title":"Comfy Router で SwitchX を使用する","sidebarTitle":"SwitchX","href":"/ja/development/comfy-router/models/beeble/switchx/code"}]},{"group":"Black Forest Labs","pages":[{"title":"Comfy Router で Erase V1 を使う","sidebarTitle":"Erase V1","href":"/ja/development/comfy-router/models/black-forest-labs/erase-v1/code"},{"title":"Comfy Router で Flux 1.1 Pro Ultra Image を使用する","sidebarTitle":"Flux 1.1 Pro Ultra Image","href":"/ja/development/comfy-router/models/black-forest-labs/flux-1-1-pro-ultra-image/code"},{"title":"Comfy Router で FLUX.1 Kontext を使用する","sidebarTitle":"FLUX.1 Kontext","href":"/ja/development/comfy-router/models/black-forest-labs/flux-1-kontext/code"},{"title":"Comfy Router で FLUX 2 Max を使う","sidebarTitle":"FLUX 2 Max","href":"/ja/development/comfy-router/models/black-forest-labs/flux-2-max/code"},{"title":"Comfy Router で FLUX 2 Pro を使用する","sidebarTitle":"FLUX 2 Pro","href":"/ja/development/comfy-router/models/black-forest-labs/flux-2-pro/code"},{"title":"FLUX 3.1 Image を Comfy Router で使用する","sidebarTitle":"FLUX 3.1 Image","href":"/ja/development/comfy-router/models/black-forest-labs/flux-3-1-image/code"},{"title":"Comfy Router で FLUX 3 Image を使用する","sidebarTitle":"FLUX 3 Image","href":"/ja/development/comfy-router/models/black-forest-labs/flux-3-image/code"},{"title":"Comfy Router で FLUX 3 Video を使用する","sidebarTitle":"FLUX 3 Video","href":"/ja/development/comfy-router/models/black-forest-labs/flux-3-video/code"},{"title":"Comfy Router で FLUX Pro 1.0 Expand を使用する","sidebarTitle":"FLUX Pro 1.0 Expand","href":"/ja/development/comfy-router/models/black-forest-labs/flux-pro-1-0-expand/code"},{"title":"Comfy Router で FLUX Pro 1.0 Fill を使う","sidebarTitle":"FLUX Pro 1.0 Fill","href":"/ja/development/comfy-router/models/black-forest-labs/flux-pro-1-0-fill/code"},{"title":"FLUX Video Upscale を Comfy Router で使用する","sidebarTitle":"FLUX Video Upscale","href":"/ja/development/comfy-router/models/black-forest-labs/flux-video-upscale/code"},{"title":"Comfy Router で Video Edit V1 を使用する","sidebarTitle":"Video Edit V1","href":"/ja/development/comfy-router/models/black-forest-labs/video-edit-v1/code"},{"title":"Comfy Router で VTO V1 を使用する","sidebarTitle":"VTO V1","href":"/ja/development/comfy-router/models/black-forest-labs/vto-v1/code"}]},{"group":"Bria","pages":[{"title":"Comfy Router で Fibo を使用する","sidebarTitle":"Fibo","href":"/ja/development/comfy-router/models/bria/fibo/code"},{"title":"Comfy Router で Image Edit Add Object By Text を使用する","sidebarTitle":"Image Edit Add Object By Text","href":"/ja/development/comfy-router/models/bria/image-edit-add-object-by-text/code"},{"title":"Comfy Router で Image Edit Erase By Text を使用する","sidebarTitle":"Image Edit Erase By Text","href":"/ja/development/comfy-router/models/bria/image-edit-erase-by-text/code"},{"title":"Comfy Router で Image Edit Erase Foreground を使用する","sidebarTitle":"Image Edit Erase Foreground","href":"/ja/development/comfy-router/models/bria/image-edit-erase-foreground/code"},{"title":"Comfy Router で Image Edit Erase を使用する","sidebarTitle":"Image Edit Erase","href":"/ja/development/comfy-router/models/bria/image-edit-erase/code"},{"title":"Comfy Router で Image Edit Expand を使用する","sidebarTitle":"Image Edit Expand","href":"/ja/development/comfy-router/models/bria/image-edit-expand/code"},{"title":"Comfy Router で Image Edit Gen Fill を使う","sidebarTitle":"Image Edit Gen Fill","href":"/ja/development/comfy-router/models/bria/image-edit-gen-fill/code"},{"title":"Comfy Router で Image Edit Increase Resolution を使用する","sidebarTitle":"Image Edit Increase Resolution","href":"/ja/development/comfy-router/models/bria/image-edit-increase-resolution/code"},{"title":"Comfy Router で Image Edit Product Holding を使用する","sidebarTitle":"Image Edit Product Holding","href":"/ja/development/comfy-router/models/bria/image-edit-product-holding/code"},{"title":"Comfy Router で Image Edit Product Virtual Tryon を使用する","sidebarTitle":"Image Edit Product Virtual Tryon","href":"/ja/development/comfy-router/models/bria/image-edit-product-virtual-tryon/code"},{"title":"Comfy Router で Image Edit Relight を使う","sidebarTitle":"Image Edit Relight","href":"/ja/development/comfy-router/models/bria/image-edit-relight/code"},{"title":"Comfy Router で Image Edit Remove Background Guided を使用する","sidebarTitle":"Image Edit Remove Background Guided","href":"/ja/development/comfy-router/models/bria/image-edit-remove-background-guided/code"},{"title":"Comfy Router で Image Edit Remove Background を使用する","sidebarTitle":"Image Edit Remove Background","href":"/ja/development/comfy-router/models/bria/image-edit-remove-background/code"},{"title":"Comfy Router で Image Edit Replace Background を使う","sidebarTitle":"Image Edit Replace Background","href":"/ja/development/comfy-router/models/bria/image-edit-replace-background/code"},{"title":"Comfy Router で Image Edit Replace Object By Text を使う","sidebarTitle":"Image Edit Replace Object By Text","href":"/ja/development/comfy-router/models/bria/image-edit-replace-object-by-text/code"},{"title":"Comfy Router で Image Edit Reseason を使う","sidebarTitle":"Image Edit Reseason","href":"/ja/development/comfy-router/models/bria/image-edit-reseason/code"},{"title":"Comfy Router で Image Edit Restore を使用する","sidebarTitle":"Image Edit Restore","href":"/ja/development/comfy-router/models/bria/image-edit-restore/code"},{"title":"Comfy Router で Image Upscale Exact を使用する","sidebarTitle":"Image Upscale Exact","href":"/ja/development/comfy-router/models/bria/image-upscale-exact/code"},{"title":"Comfy RouterでImageを使用する","sidebarTitle":"Image","href":"/ja/development/comfy-router/models/bria/image/code"},{"title":"Video Edit Erase を Comfy Router で使用する","sidebarTitle":"Video Edit Erase","href":"/ja/development/comfy-router/models/bria/video-edit-erase/code"},{"title":"Comfy Router で Video Edit Green Screen を使用する","sidebarTitle":"Video Edit Green Screen","href":"/ja/development/comfy-router/models/bria/video-edit-green-screen/code"},{"title":"Comfy Router で Video Edit Remove Background を使用する","sidebarTitle":"Video Edit Remove Background","href":"/ja/development/comfy-router/models/bria/video-edit-remove-background/code"},{"title":"Comfy Router で Video Edit Replace Background を使用する","sidebarTitle":"Video Edit Replace Background","href":"/ja/development/comfy-router/models/bria/video-edit-replace-background/code"}]},{"group":"BytePlus","pages":[{"title":"Dreamina Seedance 2.0 260128 を Comfy Router で使用する","sidebarTitle":"Dreamina Seedance 2.0 260128","href":"/ja/development/comfy-router/models/byteplus/dreamina-seedance-2-0-260128/code"},{"title":"Comfy Router で Dreamina Seedance 2.0 Fast 260128 を使用する","sidebarTitle":"Dreamina Seedance 2.0 Fast 260128","href":"/ja/development/comfy-router/models/byteplus/dreamina-seedance-2-0-fast-260128/code"},{"title":"Comfy Router で Dreamina Seedance 2.0 Mini を使用する","sidebarTitle":"Dreamina Seedance 2.0 Mini","href":"/ja/development/comfy-router/models/byteplus/dreamina-seedance-2-0-mini/code"},{"title":"Dreamina Seedance 2.5 260628 を Comfy Router で使用する","sidebarTitle":"Dreamina Seedance 2.5 260628","href":"/ja/development/comfy-router/models/byteplus/dreamina-seedance-2-5-260628/code"},{"title":"Comfy Router で Dreamina Seedance 2.5 Flash 261115 を使用する","sidebarTitle":"Dreamina Seedance 2.5 Flash 261115","href":"/ja/development/comfy-router/models/byteplus/dreamina-seedance-2-5-flash-261115/code"},{"title":"Seed 2.0 Lite 260228 を Comfy Router で使用する","sidebarTitle":"Seed 2.0 Lite 260228","href":"/ja/development/comfy-router/models/byteplus/seed-2-0-lite-260228/code"},{"title":"Comfy Router で Seed 2.0 Mini 260215 を使用する","sidebarTitle":"Seed 2.0 Mini 260215","href":"/ja/development/comfy-router/models/byteplus/seed-2-0-mini-260215/code"},{"title":"Comfy Router で Seed 2.0 Pro 260328 を使う","sidebarTitle":"Seed 2.0 Pro 260328","href":"/ja/development/comfy-router/models/byteplus/seed-2-0-pro-260328/code"},{"title":"Comfy Router で Seed Audio 1.0 Multilingual を使用する","sidebarTitle":"Seed Audio 1.0 Multilingual","href":"/ja/development/comfy-router/models/byteplus/seed-audio-1-0-multilingual/code"},{"title":"Comfy Router で Seed Audio 1.0 を使用する","sidebarTitle":"Seed Audio 1.0","href":"/ja/development/comfy-router/models/byteplus/seed-audio-1-0/code"},{"title":"Seed Audio 1.5 261128 を Comfy Router で使用する","sidebarTitle":"Seed Audio 1.5 261128","href":"/ja/development/comfy-router/models/byteplus/seed-audio-1-5-261128/code"},{"title":"Comfy Router で Seedance 1.0 Pro 250528 を使用する","sidebarTitle":"Seedance 1.0 Pro 250528","href":"/ja/development/comfy-router/models/byteplus/seedance-1-0-pro-250528/code"},{"title":"Seedance 1.0 Pro Fast 251015 を Comfy Router で使用する","sidebarTitle":"Seedance 1.0 Pro Fast 251015","href":"/ja/development/comfy-router/models/byteplus/seedance-1-0-pro-fast-251015/code"},{"title":"Comfy Router で Seedream 4.0 250828 を使う","sidebarTitle":"Seedream 4.0 250828","href":"/ja/development/comfy-router/models/byteplus/seedream-4-0-250828/code"},{"title":"Comfy Router で Seedream 4.5 251128 を使用する","sidebarTitle":"Seedream 4.5 251128","href":"/ja/development/comfy-router/models/byteplus/seedream-4-5-251128/code"},{"title":"Comfy Router で Seedream 5.0 260128 を使用する","sidebarTitle":"Seedream 5.0 260128","href":"/ja/development/comfy-router/models/byteplus/seedream-5-0-260128/code"},{"title":"Comfy Router で Seedream 5.0 Flash 260915 を使う","sidebarTitle":"Seedream 5.0 Flash 260915","href":"/ja/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code"},{"title":"Seedream 5.0 Pro 260628 を Comfy Router で使用する","sidebarTitle":"Seedream 5.0 Pro 260628","href":"/ja/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code"},{"title":"Seedream 5.5 261028 を Comfy Router で使用する","sidebarTitle":"Seedream 5.5 261028","href":"/ja/development/comfy-router/models/byteplus/seedream-5-5-261028/code"}]},{"group":"Byteplusomnihuman","pages":[{"title":"Comfy Router で Omnihuman 2.0 を使用する","sidebarTitle":"Omnihuman 2.0","href":"/ja/development/comfy-router/models/byteplusomnihuman/omnihuman-2-0/code"}]},{"group":"Cartwheel","pages":[{"title":"Comfy Router で Swing Choreo を使用する","sidebarTitle":"Swing Choreo","href":"/ja/development/comfy-router/models/cartwheel/swing-choreo/code"},{"title":"Swing Sketch を Comfy Router で使用する","sidebarTitle":"Swing Sketch","href":"/ja/development/comfy-router/models/cartwheel/swing-sketch/code"}]},{"group":"Elevenlabs","pages":[{"title":"Eleven Multilingual V2 を Comfy Router で使用する","sidebarTitle":"Eleven Multilingual V2","href":"/ja/development/comfy-router/models/elevenlabs/eleven-multilingual-v2/code"},{"title":"Comfy Router で Eleven Sfx V2 を使う","sidebarTitle":"Eleven Sfx V2","href":"/ja/development/comfy-router/models/elevenlabs/eleven-sfx-v2/code"},{"title":"Eleven Sfx V3 を Comfy Router で使用する","sidebarTitle":"Eleven Sfx V3","href":"/ja/development/comfy-router/models/elevenlabs/eleven-sfx-v3/code"},{"title":"Comfy Router で Eleven V3 を使用する","sidebarTitle":"Eleven V3","href":"/ja/development/comfy-router/models/elevenlabs/eleven-v3/code"},{"title":"Eleven V4 Turbo を Comfy Router で使用する","sidebarTitle":"Eleven V4 Turbo","href":"/ja/development/comfy-router/models/elevenlabs/eleven-v4-turbo/code"},{"title":"Comfy Router で Eleven V4 を使用する","sidebarTitle":"Eleven V4","href":"/ja/development/comfy-router/models/elevenlabs/eleven-v4/code"}]},{"group":"fal","pages":[{"title":"Comfy Router で Crystal Upscaler を使用する","sidebarTitle":"Crystal Upscaler","href":"/ja/development/comfy-router/models/fal/crystal-upscaler/code"},{"title":"Comfy Router で Crystal Video Upscaler を使用する","sidebarTitle":"Crystal Video Upscaler","href":"/ja/development/comfy-router/models/fal/crystal-video-upscaler/code"},{"title":"Comfy Router で FLUX 3 Max を使用する","sidebarTitle":"FLUX 3 Max","href":"/ja/development/comfy-router/models/fal/flux-3-max/code"},{"title":"Comfy Router で H3 Max Turbo を使用する","sidebarTitle":"H3 Max Turbo","href":"/ja/development/comfy-router/models/fal/h3-max-turbo/code"},{"title":"Comfy Router で H3 Max を使用する","sidebarTitle":"H3 Max","href":"/ja/development/comfy-router/models/fal/h3-max/code"},{"title":"Comfy Router で Patina を使う","sidebarTitle":"Patina","href":"/ja/development/comfy-router/models/fal/patina/code"}]},{"group":"Freepik","pages":[{"title":"Comfy Router で AI Image Relight を使う","sidebarTitle":"AI Image Relight","href":"/ja/development/comfy-router/models/freepik/ai-image-relight/code"},{"title":"Comfy Router で AI Image Style Transfer を使用する","sidebarTitle":"AI Image Style Transfer","href":"/ja/development/comfy-router/models/freepik/ai-image-style-transfer/code"},{"title":"Comfy Router で AI Image Upscaler Precision V2 を使う","sidebarTitle":"AI Image Upscaler Precision V2","href":"/ja/development/comfy-router/models/freepik/ai-image-upscaler-precision-v2/code"},{"title":"Comfy Router で AI Skin Enhancer Creative を使う","sidebarTitle":"AI Skin Enhancer Creative","href":"/ja/development/comfy-router/models/freepik/ai-skin-enhancer-creative/code"},{"title":"AI Skin Enhancer Faithful を Comfy Router で使用する","sidebarTitle":"AI Skin Enhancer Faithful","href":"/ja/development/comfy-router/models/freepik/ai-skin-enhancer-faithful/code"},{"title":"Comfy Router で AI Skin Enhancer Flexible を使う","sidebarTitle":"AI Skin Enhancer Flexible","href":"/ja/development/comfy-router/models/freepik/ai-skin-enhancer-flexible/code"}]},{"group":"Gemini Interactions","pages":[{"title":"Gemini Omni 1.1 Flash を Comfy Router で使用する","sidebarTitle":"Gemini Omni 1.1 Flash","href":"/ja/development/comfy-router/models/gemini-interactions/gemini-omni-1-1-flash/code"},{"title":"Comfy Router で Gemini Omni 1.2 Flash を使用する","sidebarTitle":"Gemini Omni 1.2 Flash","href":"/ja/development/comfy-router/models/gemini-interactions/gemini-omni-1-2-flash/code"},{"title":"Comfy Router で Gemini Omni Flash Preview を使用する","sidebarTitle":"Gemini Omni Flash Preview","href":"/ja/development/comfy-router/models/gemini-interactions/gemini-omni-flash-preview/code"},{"title":"Comfy Router で Lyria 3.5 を使用する","sidebarTitle":"Lyria 3.5","href":"/ja/development/comfy-router/models/gemini-interactions/lyria-3-5/code"}]},{"group":"Google","pages":[{"title":"Comfy Router で Gemini 2.5 Flash Image を使用する","sidebarTitle":"Gemini 2.5 Flash Image","href":"/ja/development/comfy-router/models/google/gemini-2-5-flash-image/code"},{"title":"Comfy Router で Gemini 3.1 Flash Lite を使用する","sidebarTitle":"Gemini 3.1 Flash Lite","href":"/ja/development/comfy-router/models/google/gemini-3-1-flash-lite/code"},{"title":"Comfy Router で Gemini 3.7 Flash を使う","sidebarTitle":"Gemini 3.7 Flash","href":"/ja/development/comfy-router/models/google/gemini-3-7-flash/code"},{"title":"Comfy Router で Gemini 3.8 Flash を使う","sidebarTitle":"Gemini 3.8 Flash","href":"/ja/development/comfy-router/models/google/gemini-3-8-flash/code"},{"title":"Comfy Router で Gemini 4 Argon を使用する","sidebarTitle":"Gemini 4 Argon","href":"/ja/development/comfy-router/models/google/gemini-4-argon/code"},{"title":"Comfy Router で Gemini 4 Carbon を使用する","sidebarTitle":"Gemini 4 Carbon","href":"/ja/development/comfy-router/models/google/gemini-4-carbon/code"},{"title":"Gemini 4 Hydrogen を Comfy Router で使用する","sidebarTitle":"Gemini 4 Hydrogen","href":"/ja/development/comfy-router/models/google/gemini-4-hydrogen/code"},{"title":"Comfy Router で Gemini 4 Neon を使用する","sidebarTitle":"Gemini 4 Neon","href":"/ja/development/comfy-router/models/google/gemini-4-neon/code"},{"title":"Comfy RouterでGemini Nano Banana 2.1を使用する","sidebarTitle":"Gemini Nano Banana 2.1","href":"/ja/development/comfy-router/models/google/gemini-nano-banana-2-1/code"},{"title":"Comfy Router で Google Gemini を使用する","sidebarTitle":"Google Gemini","href":"/ja/development/comfy-router/models/google/gemini/code"},{"title":"Comfy Router で Nano Banana 2 Lite を使用する","sidebarTitle":"Nano Banana 2 Lite","href":"/ja/development/comfy-router/models/google/nano-banana-2-lite/code"},{"title":"Comfy Router で Nano Banana 2 を使う","sidebarTitle":"Nano Banana 2","href":"/ja/development/comfy-router/models/google/nano-banana-2/code"},{"title":"Comfy Router で Nano Banana Pro を使う","sidebarTitle":"Nano Banana Pro","href":"/ja/development/comfy-router/models/google/nano-banana-pro/code"}]},{"group":"HeyGen","pages":[{"title":"Comfy Router で Starfish を使う","sidebarTitle":"Starfish","href":"/ja/development/comfy-router/models/heygen/starfish/code"}]},{"group":"Higgsfield","pages":[{"title":"Higgsfield Genjutsu Motion Transfer V1.0 を Comfy Router で使用する","sidebarTitle":"Higgsfield Genjutsu Motion Transfer V1.0","href":"/ja/development/comfy-router/models/higgsfield/higgsfield-genjutsu-motion-transfer-v1-0/code"},{"title":"Comfy Router で Higgsfield Kling 3.4k を使用する","sidebarTitle":"Higgsfield Kling 3.4k","href":"/ja/development/comfy-router/models/higgsfield/higgsfield-kling-3-4k/code"},{"title":"Comfy Router で Higgsfield Kling 3 Pro を使用する","sidebarTitle":"Higgsfield Kling 3 Pro","href":"/ja/development/comfy-router/models/higgsfield/higgsfield-kling-3-pro/code"}]},{"group":"Ideogram","pages":[{"title":"Comfy Router で Ideogram 4.5 を使用する","sidebarTitle":"Ideogram 4.5","href":"/ja/development/comfy-router/models/ideogram/ideogram-4-5/code"},{"title":"Ideogram 4.6 を Comfy Router で使用する","sidebarTitle":"Ideogram 4.6","href":"/ja/development/comfy-router/models/ideogram/ideogram-4-6/code"},{"title":"Comfy Router で Ideogram V3 を使用する","sidebarTitle":"Ideogram V3","href":"/ja/development/comfy-router/models/ideogram/ideogram-v3/code"},{"title":"Comfy Router で Ideogram 4.0 を使用する","sidebarTitle":"Ideogram 4.0","href":"/ja/development/comfy-router/models/ideogram/ideogram-v4/code"},{"title":"P Image Ideogram を Comfy Router で使用する","sidebarTitle":"P Image Ideogram","href":"/ja/development/comfy-router/models/ideogram/p-image-ideogram/code"}]},{"group":"Kelly","pages":[{"title":"Kelly Kling 4.0 を Comfy Router で使用する","sidebarTitle":"Kelly Kling 4.0","href":"/ja/development/comfy-router/models/kelly/kelly-kling-4-0/code"},{"title":"Comfy Router で Kelly Seedance 2.0 Fast を使用する","sidebarTitle":"Kelly Seedance 2.0 Fast","href":"/ja/development/comfy-router/models/kelly/kelly-seedance-2-0-fast/code"},{"title":"Kelly Seedance 2.0 を Comfy Router で使用する","sidebarTitle":"Kelly Seedance 2.0","href":"/ja/development/comfy-router/models/kelly/kelly-seedance-2-0/code"},{"title":"Kelly Seedance 2.5 を Comfy Router で使用する","sidebarTitle":"Kelly Seedance 2.5","href":"/ja/development/comfy-router/models/kelly/kelly-seedance-2-5/code"}]},{"group":"Kling","pages":[{"title":"Comfy Router で Kling 3.0 Turbo を使用する","sidebarTitle":"Kling 3.0 Turbo","href":"/ja/development/comfy-router/models/kling/kling-3-0-turbo/code"},{"title":"Kling 4.0 Flash を Comfy Router で使用する","sidebarTitle":"Kling 4.0 Flash","href":"/ja/development/comfy-router/models/kling/kling-4-0-flash/code"},{"title":"Kling 4.0 を Comfy Router で使用する","sidebarTitle":"Kling 4.0","href":"/ja/development/comfy-router/models/kling/kling-4-0/code"},{"title":"Kling Image 4.0 を Comfy Router で使用する","sidebarTitle":"Kling Image 4.0","href":"/ja/development/comfy-router/models/kling/kling-image-4-0/code"},{"title":"Comfy Router で Kling Image O1 を使用する","sidebarTitle":"Kling Image O1","href":"/ja/development/comfy-router/models/kling/kling-image-o1/code"},{"title":"Comfy Router で Kling Long Image 4.0 を使用する","sidebarTitle":"Kling Long Image 4.0","href":"/ja/development/comfy-router/models/kling/kling-long-image-4-0/code"},{"title":"Kling V2.5 Turbo を Comfy Router で使用する","sidebarTitle":"Kling V2.5 Turbo","href":"/ja/development/comfy-router/models/kling/kling-v2-5-turbo/code"},{"title":"Comfy Router で Kling V2.6 を使用する","sidebarTitle":"Kling V2.6","href":"/ja/development/comfy-router/models/kling/kling-v2-6/code"},{"title":"Kling V3 Omni を Comfy Router で使用する","sidebarTitle":"Kling V3 Omni","href":"/ja/development/comfy-router/models/kling/kling-v3-omni/code"},{"title":"Comfy Router で Kling V3 を使用する","sidebarTitle":"Kling V3","href":"/ja/development/comfy-router/models/kling/kling-v3/code"},{"title":"Kling Video O1 を Comfy Router で使用する","sidebarTitle":"Kling Video O1","href":"/ja/development/comfy-router/models/kling/kling-video-o1/code"},{"title":"Comfy Router で Videos Avatar Image 2video を使用する","sidebarTitle":"Videos Avatar Image 2video","href":"/ja/development/comfy-router/models/kling/videos-avatar-image2video/code"},{"title":"Comfy Router で Videos Lip Sync を使う","sidebarTitle":"Videos Lip Sync","href":"/ja/development/comfy-router/models/kling/videos-lip-sync/code"}]},{"group":"Krea","pages":[{"title":"Comfy Router で Krea 2 Large を使う","sidebarTitle":"Krea 2 Large","href":"/ja/development/comfy-router/models/krea/krea-2-large/code"},{"title":"Krea 2 Medium Turbo を Comfy Router で使用する","sidebarTitle":"Krea 2 Medium Turbo","href":"/ja/development/comfy-router/models/krea/krea-2-medium-turbo/code"},{"title":"Krea 2 Medium を Comfy Router で使用する","sidebarTitle":"Krea 2 Medium","href":"/ja/development/comfy-router/models/krea/krea-2-medium/code"},{"title":"Comfy Router で Krea 2 を使う","sidebarTitle":"Krea 2","href":"/ja/development/comfy-router/models/krea/krea-2/code"},{"title":"Comfy Router で Krea 3 を使用する","sidebarTitle":"Krea 3","href":"/ja/development/comfy-router/models/krea/krea-3/code"}]},{"group":"LTX","pages":[{"title":"Comfy Router で LTX 2.5 Fast を使用する","sidebarTitle":"LTX 2.5 Fast","href":"/ja/development/comfy-router/models/ltx/ltx-2-5-fast/code"},{"title":"Comfy Router で LTX 2.5 Pro を使用する","sidebarTitle":"LTX 2.5 Pro","href":"/ja/development/comfy-router/models/ltx/ltx-2-5-pro/code"},{"title":"Comfy Router で LTX Video Alpha Gen を使用する","sidebarTitle":"LTX Video Alpha Gen","href":"/ja/development/comfy-router/models/ltx/ltx-video-alpha-gen/code"},{"title":"Comfy Router で LTX Video Compositing を使用する","sidebarTitle":"LTX ビデオ合成","href":"/ja/development/comfy-router/models/ltx/ltx-video-compositing/code"},{"title":"Comfy Router で LTX Video To Video Hdr を使用する","sidebarTitle":"LTX Video To Video Hdr","href":"/ja/development/comfy-router/models/ltx/ltx-video-to-video-hdr/code"},{"title":"Comfy Router で LTX Video To Video Reframe を使用する","sidebarTitle":"LTX Video To Video Reframe","href":"/ja/development/comfy-router/models/ltx/ltx-video-to-video-reframe/code"},{"title":"Comfy Router で LTX Video Upscale を使用する","sidebarTitle":"LTX Video Upscale","href":"/ja/development/comfy-router/models/ltx/ltx-video-upscale/code"}]},{"group":"Luma 2","pages":[{"title":"Ray 3.2 を Comfy Router で使用する","sidebarTitle":"Ray 3.2","href":"/ja/development/comfy-router/models/luma_2/ray-3-2/code"},{"title":"Comfy Router で Uni 1 Max を使う","sidebarTitle":"Uni 1 Max","href":"/ja/development/comfy-router/models/luma_2/uni-1-max/code"},{"title":"Comfy Router で Uni 1 を使用する","sidebarTitle":"Uni 1","href":"/ja/development/comfy-router/models/luma_2/uni-1/code"}]},{"group":"Meshy","pages":[{"title":"Comfy Router で Animations を使用する","sidebarTitle":"Animations","href":"/ja/development/comfy-router/models/meshy/animations/code"},{"title":"Comfy Router で Meshy 6 を使う","sidebarTitle":"Meshy 6","href":"/ja/development/comfy-router/models/meshy/meshy-6/code"},{"title":"Meshy 7.1 を Comfy Router で使用する","sidebarTitle":"Meshy 7.1","href":"/ja/development/comfy-router/models/meshy/meshy-7-1/code"},{"title":"Meshy 7 を Comfy Router で使用する","sidebarTitle":"Meshy 7","href":"/ja/development/comfy-router/models/meshy/meshy-7/code"},{"title":"Comfy Router で Meshy N1 を使用する","sidebarTitle":"Meshy N1","href":"/ja/development/comfy-router/models/meshy/meshy-n1/code"},{"title":"Comfy Router で Relief を使用する","sidebarTitle":"Relief","href":"/ja/development/comfy-router/models/meshy/relief/code"},{"title":"Comfy RouterでRemeshを使用する","sidebarTitle":"Remesh","href":"/ja/development/comfy-router/models/meshy/remesh/code"},{"title":"Comfy Router で Rigging を使用する","sidebarTitle":"Rigging","href":"/ja/development/comfy-router/models/meshy/rigging/code"}]},{"group":"MiniMax","pages":[{"title":"Comfy Router で MiniMax H3 Image Highspeed を使用する","sidebarTitle":"MiniMax H3 Image Highspeed","href":"/ja/development/comfy-router/models/minimax/minimax-h3-image-highspeed/code"},{"title":"Comfy Router で MiniMax H3 Image を使用する","sidebarTitle":"MiniMax H3 Image","href":"/ja/development/comfy-router/models/minimax/minimax-h3-image/code"},{"title":"MiniMax H3 を Comfy Router で使用する","sidebarTitle":"MiniMax H3","href":"/ja/development/comfy-router/models/minimax/minimax-h3/code"}]},{"group":"OpenAI","pages":[{"title":"Comfy Router で GPT 4.1 Mini を使用する","sidebarTitle":"GPT 4.1 Mini","href":"/ja/development/comfy-router/models/openai/gpt-4-1-mini/code"},{"title":"Comfy Router で GPT 4.1 を使用する","sidebarTitle":"GPT 4.1","href":"/ja/development/comfy-router/models/openai/gpt-4-1/code"},{"title":"Comfy Router で GPT 4o を使用する","sidebarTitle":"GPT 4o","href":"/ja/development/comfy-router/models/openai/gpt-4o/code"},{"title":"GPT 5.5 Pro を Comfy Router で使用する","sidebarTitle":"GPT 5.5 Pro","href":"/ja/development/comfy-router/models/openai/gpt-5-5-pro/code"},{"title":"Comfy Router で GPT 5.5 を使う","sidebarTitle":"GPT 5.5","href":"/ja/development/comfy-router/models/openai/gpt-5-5/code"},{"title":"Comfy Router で GPT 5.6 Luna を使う","sidebarTitle":"GPT 5.6 Luna","href":"/ja/development/comfy-router/models/openai/gpt-5-6-luna/code"},{"title":"Comfy Router で GPT 5.6 Sol を使用する","sidebarTitle":"GPT 5.6 Sol","href":"/ja/development/comfy-router/models/openai/gpt-5-6-sol/code"},{"title":"GPT 5.6 Terra を Comfy Router で使用する","sidebarTitle":"GPT 5.6 Terra","href":"/ja/development/comfy-router/models/openai/gpt-5-6-terra/code"},{"title":"Comfy Router で GPT 5 Mini を使用する","sidebarTitle":"GPT 5 Mini","href":"/ja/development/comfy-router/models/openai/gpt-5-mini/code"},{"title":"Comfy Router で GPT 5 Nano を使用する","sidebarTitle":"GPT 5 Nano","href":"/ja/development/comfy-router/models/openai/gpt-5-nano/code"},{"title":"Comfy Router で GPT 5 を使う","sidebarTitle":"GPT 5","href":"/ja/development/comfy-router/models/openai/gpt-5/code"},{"title":"GPT 6.1 Sol を Comfy Router で使用する","sidebarTitle":"GPT 6.1 Sol","href":"/ja/development/comfy-router/models/openai/gpt-6-1-sol/code"},{"title":"GPT 6.1 Terra を Comfy Router で使用する","sidebarTitle":"GPT 6.1 Terra","href":"/ja/development/comfy-router/models/openai/gpt-6-1-terra/code"},{"title":"Comfy Router で GPT 6.2 Astra を使用する","sidebarTitle":"GPT 6.2 Astra","href":"/ja/development/comfy-router/models/openai/gpt-6-2-astra/code"},{"title":"GPT 6.2 Sol を Comfy Router で使用する","sidebarTitle":"GPT 6.2 Sol","href":"/ja/development/comfy-router/models/openai/gpt-6-2-sol/code"},{"title":"Comfy Router で GPT 6 Astra を使用する","sidebarTitle":"GPT 6 Astra","href":"/ja/development/comfy-router/models/openai/gpt-6-astra/code"},{"title":"Comfy Router で GPT 6 Luna を使う","sidebarTitle":"GPT 6 Luna","href":"/ja/development/comfy-router/models/openai/gpt-6-luna/code"},{"title":"GPT 6 Sol を Comfy Router で使用する","sidebarTitle":"GPT 6 Sol","href":"/ja/development/comfy-router/models/openai/gpt-6-sol/code"},{"title":"Comfy Router で GPT Image 1.5 を使用する","sidebarTitle":"GPT Image 1.5","href":"/ja/development/comfy-router/models/openai/gpt-image-1-5/code"},{"title":"GPT Image 2.5 Flare を Comfy Router で使う","sidebarTitle":"GPT Image 2.5 Flare","href":"/ja/development/comfy-router/models/openai/gpt-image-2-5-flare/code"},{"title":"Comfy Router で GPT Image 2.5 Sunburst を使う","sidebarTitle":"GPT Image 2.5 Sunburst","href":"/ja/development/comfy-router/models/openai/gpt-image-2-5-sunburst/code"},{"title":"Comfy Router で GPT Image 2.6 Flare を使用する","sidebarTitle":"GPT Image 2.6 Flare","href":"/ja/development/comfy-router/models/openai/gpt-image-2-6-flare/code"},{"title":"Comfy Router で GPT Image 2.6 Sunburst を使用する","sidebarTitle":"GPT Image 2.6 Sunburst","href":"/ja/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code"},{"title":"Comfy Router で GPT Image 2 を使用する","sidebarTitle":"GPT Image 2","href":"/ja/development/comfy-router/models/openai/gpt-image-2/code"},{"title":"Comfy Router で o3 を使用する","sidebarTitle":"o3","href":"/ja/development/comfy-router/models/openai/o3/code"}]},{"group":"Openrouter","pages":[{"title":"Comfy Router で Chat Completions を使用する","sidebarTitle":"Chat Completions","href":"/ja/development/comfy-router/models/openrouter/chat-completions/code"},{"title":"Comfy Router で画像を使用する","sidebarTitle":"画像","href":"/ja/development/comfy-router/models/openrouter/images/code"}]},{"group":"Pika","pages":[{"title":"Comfy Router で Pika 2.5 Image To Video を使用する","sidebarTitle":"Pika 2.5 Image To Video","href":"/ja/development/comfy-router/models/pika/pika-2-5-image-to-video/code"},{"title":"Comfy Router で Pika 2.5 テキストから動画へを使用する","sidebarTitle":"Pika 2.5 テキストから動画へ","href":"/ja/development/comfy-router/models/pika/pika-2-5-text-to-video/code"},{"title":"Comfy RouterでPika H3 Flex Image To Videoを使用する","sidebarTitle":"Pika H3 Flex Image To Video","href":"/ja/development/comfy-router/models/pika/pika-h3-flex-image-to-video/code"},{"title":"Comfy Router で Pika H3 Flex Reference To Video を使用する","sidebarTitle":"Pika H3 Flex Reference To Video","href":"/ja/development/comfy-router/models/pika/pika-h3-flex-reference-to-video/code"},{"title":"Comfy Router で Pika H3 Flex Text To Video を使用する","sidebarTitle":"Pika H3 Flex Text To Video","href":"/ja/development/comfy-router/models/pika/pika-h3-flex-text-to-video/code"},{"title":"Comfy Router で Pika Music を使用する","sidebarTitle":"Pika Music","href":"/ja/development/comfy-router/models/pika/pika-music/code"},{"title":"Comfy Router で Pika Soundtrack を使用する","sidebarTitle":"Pika Soundtrack","href":"/ja/development/comfy-router/models/pika/pika-soundtrack/code"}]},{"group":"Pixverse","pages":[{"title":"Comfy Router で V3.5 を使用する","sidebarTitle":"V3.5","href":"/ja/development/comfy-router/models/pixverse/v3-5/code"},{"title":"Comfy Router で V6 Max を使用する","sidebarTitle":"V6 Max","href":"/ja/development/comfy-router/models/pixverse/v6-max/code"},{"title":"Comfy Router で V6 を使用する","sidebarTitle":"V6","href":"/ja/development/comfy-router/models/pixverse/v6/code"}]},{"group":"Pruna","pages":[{"title":"P Video 2 Pro Avatar を Comfy Router で使用する","sidebarTitle":"P Video 2 Pro Avatar","href":"/ja/development/comfy-router/models/pruna/p-video-2-pro-avatar/code"},{"title":"Comfy Router で P Video 2 Pro Reference を使用する","sidebarTitle":"P Video 2 Pro Reference","href":"/ja/development/comfy-router/models/pruna/p-video-2-pro-reference/code"},{"title":"P Video 2 を Comfy Router で使用する","sidebarTitle":"P Video 2","href":"/ja/development/comfy-router/models/pruna/p-video-2/code"},{"title":"P Video Upscale を Comfy Router で使用する","sidebarTitle":"P Video Upscale","href":"/ja/development/comfy-router/models/pruna/p-video-upscale/code"}]},{"group":"Quiver","pages":[{"title":"Comfy Router で Arrow 2 Telos を使用する","sidebarTitle":"Arrow 2 Telos","href":"/ja/development/comfy-router/models/quiver/arrow-2-telos/code"},{"title":"Comfy Router で Arrow 2 を使用する","sidebarTitle":"Arrow 2","href":"/ja/development/comfy-router/models/quiver/arrow-2/code"}]},{"group":"Qwen","pages":[{"title":"Comfy Router で Qwen Image 3.0 Pro を使用する","sidebarTitle":"Qwen Image 3.0 Pro","href":"/ja/development/comfy-router/models/qwen/qwen-image-3-0-pro/code"},{"title":"Comfy Router で Qwen Image 3.0 を使う","sidebarTitle":"Qwen Image 3.0","href":"/ja/development/comfy-router/models/qwen/qwen-image-3-0/code"}]},{"group":"Recraft","pages":[{"title":"Comfy Router で Images Vectorize を使用する","sidebarTitle":"Images Vectorize","href":"/ja/development/comfy-router/models/recraft/images-vectorize/code"},{"title":"Comfy Router で Recraft V2 を使用する","sidebarTitle":"Recraft V2","href":"/ja/development/comfy-router/models/recraft/recraftv2/code"},{"title":"Comfy Router で Recraft V3 を使う","sidebarTitle":"Recraft V3","href":"/ja/development/comfy-router/models/recraft/recraftv3/code"},{"title":"Comfy Router で Recraft V4.1 Flash V2 を使用する","sidebarTitle":"Recraft V4.1 Flash V2","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-flash-v2/code"},{"title":"Recraft V4.1 Pro Vector を Comfy Router で使用する","sidebarTitle":"Recraft V4.1 Pro Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-pro-vector/code"},{"title":"Comfy Router で Recraft V4.1 Pro を使用する","sidebarTitle":"Recraft V4.1 Pro","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-pro/code"},{"title":"Comfy Router で Recraft V4.1 Utility Pro Vector を使用する","sidebarTitle":"Recraft V4.1 Utility Pro Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-utility-pro-vector/code"},{"title":"Comfy Router で Recraft V4.1 Utility Pro を使う","sidebarTitle":"Recraft V4.1 Utility Pro","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-utility-pro/code"},{"title":"Comfy Router で Recraft V4.1 Utility Vector を使う","sidebarTitle":"Recraft V4.1 Utility Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-utility-vector/code"},{"title":"Comfy Router で Recraft V4.1 Utility を使う","sidebarTitle":"Recraft V4.1 Utility","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-utility/code"},{"title":"Comfy Router で Recraft V4.1 Vector を使用する","sidebarTitle":"Recraft V4.1 Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-1-vector/code"},{"title":"Comfy Router で Recraft V4.1 を使う","sidebarTitle":"Recraft V4.1","href":"/ja/development/comfy-router/models/recraft/recraftv4-1/code"},{"title":"Comfy Router で Recraft V4 Pro を使用する","sidebarTitle":"Recraft V4 Pro","href":"/ja/development/comfy-router/models/recraft/recraftv4-pro/code"},{"title":"Comfy Router で Recraft V4 Styles Pro Vector を使用する","sidebarTitle":"Recraft V4 Styles Pro Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-styles-pro-vector/code"},{"title":"Comfy Router で Recraft V4 Styles Pro を使用する","sidebarTitle":"Recraft V4 Styles Pro","href":"/ja/development/comfy-router/models/recraft/recraftv4-styles-pro/code"},{"title":"Recraft V4 Styles Vector を Comfy Router で使用する","sidebarTitle":"Recraft V4 Styles Vector","href":"/ja/development/comfy-router/models/recraft/recraftv4-styles-vector/code"},{"title":"Comfy Router で Recraft V4 Styles を使用する","sidebarTitle":"Recraft V4 Styles","href":"/ja/development/comfy-router/models/recraft/recraftv4-styles/code"},{"title":"Comfy RouterでRecraft V4を使用する","sidebarTitle":"Recraft V4","href":"/ja/development/comfy-router/models/recraft/recraftv4/code"}]},{"group":"Runway","pages":[{"title":"Comfy Router で Aleph 2 を使用する","sidebarTitle":"Aleph 2","href":"/ja/development/comfy-router/models/runway/aleph2/code"},{"title":"Comfy Router で Gen 4 Image を使用する","sidebarTitle":"Gen 4 Image","href":"/ja/development/comfy-router/models/runway/gen4-image/code"},{"title":"Comfy Router で Gen 4 Turbo を使用する","sidebarTitle":"Gen 4 Turbo","href":"/ja/development/comfy-router/models/runway/gen4-turbo/code"}]},{"group":"Sandbase","pages":[{"title":"Comfy Router で Magi 2 Image To Video を使う","sidebarTitle":"Magi 2 Image To Video","href":"/ja/development/comfy-router/models/sandbase/magi-2-image-to-video/code"},{"title":"Comfy Router で Magi 2 Reference To Video を使用する","sidebarTitle":"Magi 2 Reference To Video","href":"/ja/development/comfy-router/models/sandbase/magi-2-reference-to-video/code"},{"title":"Comfy Router で Magi 2 Text To Video を使用する","sidebarTitle":"Magi 2 Text To Video","href":"/ja/development/comfy-router/models/sandbase/magi-2-text-to-video/code"}]},{"group":"Stability","pages":[{"title":"Comfy Router で Control Sketch を使用する","sidebarTitle":"Control Sketch","href":"/ja/development/comfy-router/models/stability/control-sketch/code"},{"title":"Comfy Router で Control Structure を使用する","sidebarTitle":"Control Structure","href":"/ja/development/comfy-router/models/stability/control-structure/code"},{"title":"Comfy Router で Control Style Transfer を使用する","sidebarTitle":"Control Style Transfer","href":"/ja/development/comfy-router/models/stability/control-style-transfer/code"},{"title":"Comfy Router で Control Style を使用する","sidebarTitle":"Control Style","href":"/ja/development/comfy-router/models/stability/control-style/code"},{"title":"Comfy Router で Edit Erase を使用する","sidebarTitle":"Edit Erase","href":"/ja/development/comfy-router/models/stability/edit-erase/code"},{"title":"Comfy Router で Edit Inpaint を使用する","sidebarTitle":"Edit Inpaint","href":"/ja/development/comfy-router/models/stability/edit-inpaint/code"},{"title":"Comfy Router で Edit Outpaint を使用する","sidebarTitle":"Edit Outpaint","href":"/ja/development/comfy-router/models/stability/edit-outpaint/code"},{"title":"Comfy Router で Edit Remove Background を使用する","sidebarTitle":"Edit Remove Background","href":"/ja/development/comfy-router/models/stability/edit-remove-background/code"},{"title":"Comfy Router で Edit Replace Background And Relight を使う","sidebarTitle":"Edit Replace Background And Relight","href":"/ja/development/comfy-router/models/stability/edit-replace-background-and-relight/code"},{"title":"Comfy Router で Edit Search And Recolor を使用する","sidebarTitle":"Edit Search And Recolor","href":"/ja/development/comfy-router/models/stability/edit-search-and-recolor/code"},{"title":"Comfy Router で Edit Search And Replace を使用する","sidebarTitle":"Edit Search And Replace","href":"/ja/development/comfy-router/models/stability/edit-search-and-replace/code"},{"title":"Comfy Router で Generate Core を使用する","sidebarTitle":"Generate Core","href":"/ja/development/comfy-router/models/stability/generate-core/code"},{"title":"Comfy Router で Generate Ultra を使用する","sidebarTitle":"Generate Ultra","href":"/ja/development/comfy-router/models/stability/generate-ultra/code"},{"title":"Comfy Router で Sd3.5 Flash を使用する","sidebarTitle":"Sd3.5 Flash","href":"/ja/development/comfy-router/models/stability/sd3-5-flash/code"},{"title":"Comfy Router で Sd3.5 Large Turbo を使用する","sidebarTitle":"Sd3.5 Large Turbo","href":"/ja/development/comfy-router/models/stability/sd3-5-large-turbo/code"},{"title":"Sd3.5 Large を Comfy Router で使用する","sidebarTitle":"Sd3.5 Large","href":"/ja/development/comfy-router/models/stability/sd3-5-large/code"},{"title":"Sd3.5 Medium を Comfy Router で使用する","sidebarTitle":"Sd3.5 Medium","href":"/ja/development/comfy-router/models/stability/sd3-5-medium/code"},{"title":"Comfy Router で Sdxl 1.0 画像から画像へを使用する","sidebarTitle":"Sdxl 1.0 画像から画像へ","href":"/ja/development/comfy-router/models/stability/sdxl-1-0-image-to-image/code"},{"title":"Comfy Router で Sdxl 1.0 Masking を使用する","sidebarTitle":"Sdxl 1.0 Masking","href":"/ja/development/comfy-router/models/stability/sdxl-1-0-masking/code"},{"title":"Comfy Router で Sdxl 1.0 Text To Image を使用する","sidebarTitle":"Sdxl 1.0 Text To Image","href":"/ja/development/comfy-router/models/stability/sdxl-1-0-text-to-image/code"},{"title":"Comfy Router で Stable Fast 3D を使用する","sidebarTitle":"Stable Fast 3D","href":"/ja/development/comfy-router/models/stability/stable-fast-3d/code"},{"title":"Comfy Router で Stable Point Aware 3D を使用する","sidebarTitle":"Stable Point Aware 3D","href":"/ja/development/comfy-router/models/stability/stable-point-aware-3d/code"},{"title":"Comfy Router で Upscale Conservative を使用する","sidebarTitle":"Upscale Conservative","href":"/ja/development/comfy-router/models/stability/upscale-conservative/code"},{"title":"Comfy Router で Upscale Creative を使用する","sidebarTitle":"Upscale Creative","href":"/ja/development/comfy-router/models/stability/upscale-creative/code"},{"title":"Comfy Router で Upscale Fast を使う","sidebarTitle":"Upscale Fast","href":"/ja/development/comfy-router/models/stability/upscale-fast/code"}]},{"group":"Synclabs","pages":[{"title":"Sync 3 を Comfy Router で使用する","sidebarTitle":"Sync 3","href":"/ja/development/comfy-router/models/synclabs/sync-3/code"}]},{"group":"Tencent","pages":[{"title":"Comfy Router で Hunyuan 3D Part を使用する","sidebarTitle":"Hunyuan 3D Part","href":"/ja/development/comfy-router/models/tencent/hunyuan-3d-part/code"},{"title":"Comfy Router で Hunyuan 3D Smart Topology を使用する","sidebarTitle":"Hunyuan 3D Smart Topology","href":"/ja/development/comfy-router/models/tencent/hunyuan-3d-smart-topology/code"},{"title":"Comfy Router で Hunyuan 3D Texture Edit を使う","sidebarTitle":"Hunyuan 3D Texture Edit","href":"/ja/development/comfy-router/models/tencent/hunyuan-3d-texture-edit/code"},{"title":"Comfy Router で Hunyuan 3D Uv を使用する","sidebarTitle":"Hunyuan 3D Uv","href":"/ja/development/comfy-router/models/tencent/hunyuan-3d-uv/code"},{"title":"Comfy Router で Hunyuan Image 3.5 を使用する","sidebarTitle":"Hunyuan Image 3.5","href":"/ja/development/comfy-router/models/tencent/hunyuan-image-3-5/code"},{"title":"Comfy Router で Hy 3D 3.6 を使用する","sidebarTitle":"Hy 3D 3.6","href":"/ja/development/comfy-router/models/tencent/hy-3d-3-6/code"}]},{"group":"Tripo","pages":[{"title":"P1 20260311 Image To Model を Comfy Router で使用する","sidebarTitle":"P1 20260311 Image To Model","href":"/ja/development/comfy-router/models/tripo/p1-20260311-image-to-model/code"},{"title":"Comfy Router で P1 20260311 Multiview To Model を使用する","sidebarTitle":"P1 20260311 Multiview To Model","href":"/ja/development/comfy-router/models/tripo/p1-20260311-multiview-to-model/code"},{"title":"Comfy Router で P1 20260311 テキストからモデル生成を使用する","sidebarTitle":"P1 20260311 テキストからモデル生成","href":"/ja/development/comfy-router/models/tripo/p1-20260311-text-to-model/code"},{"title":"Comfy Router で P2 20260801 Image To Model を使用する","sidebarTitle":"P2 20260801 Image To Model","href":"/ja/development/comfy-router/models/tripo/p2-20260801-image-to-model/code"},{"title":"Comfy Router で P2 20260801 Multiview To Model を使用する","sidebarTitle":"P2 20260801 Multiview To Model","href":"/ja/development/comfy-router/models/tripo/p2-20260801-multiview-to-model/code"},{"title":"Comfy Router で P2 20260801 テキストからモデル生成を使用する","sidebarTitle":"P2 20260801 テキストからモデル生成","href":"/ja/development/comfy-router/models/tripo/p2-20260801-text-to-model/code"},{"title":"Comfy Router で V3.0 20250812 画像からモデル生成を使用する","sidebarTitle":"V3.0 20250812 画像からモデル生成","href":"/ja/development/comfy-router/models/tripo/v3-0-20250812-image-to-model/code"},{"title":"Comfy Router で V3.0 20250812 Multiview To Model を使用する","sidebarTitle":"V3.0 20250812 Multiview To Model","href":"/ja/development/comfy-router/models/tripo/v3-0-20250812-multiview-to-model/code"},{"title":"Comfy Router で V3.0 20250812 Text To Model を使用する","sidebarTitle":"V3.0 20250812 Text To Model","href":"/ja/development/comfy-router/models/tripo/v3-0-20250812-text-to-model/code"},{"title":"Comfy Router で V3.1 20260211 画像からモデル生成を使用する","sidebarTitle":"V3.1 20260211 画像からモデル生成","href":"/ja/development/comfy-router/models/tripo/v3-1-20260211-image-to-model/code"},{"title":"Comfy Router で V3.1 20260211 多視点からモデル生成を使用する","sidebarTitle":"V3.1 20260211 多視点からモデル生成","href":"/ja/development/comfy-router/models/tripo/v3-1-20260211-multiview-to-model/code"},{"title":"Comfy Router で V3.1 20260211 テキストからモデル生成を使用する","sidebarTitle":"V3.1 20260211 テキストからモデル生成","href":"/ja/development/comfy-router/models/tripo/v3-1-20260211-text-to-model/code"}]},{"group":"Typesafe","pages":[{"title":"Jev 1.13.0 を Comfy Router で使用する","sidebarTitle":"Jev 1.13.0","href":"/ja/development/comfy-router/models/typesafe/jev-1-13-0/code"},{"title":"Jev 1.14.0 を Comfy Router で使用する","sidebarTitle":"Jev 1.14.0","href":"/ja/development/comfy-router/models/typesafe/jev-1-14-0/code"}]},{"group":"Veed","pages":[{"title":"Comfy Router で Clean Audio Video を使用する","sidebarTitle":"Clean Audio Video","href":"/ja/development/comfy-router/models/veed/clean-audio-video/code"},{"title":"Comfy Router で Clean Audio を使用する","sidebarTitle":"Clean Audio","href":"/ja/development/comfy-router/models/veed/clean-audio/code"},{"title":"Comfy Router で Fabric 1.0 を使用する","sidebarTitle":"Fabric 1.0","href":"/ja/development/comfy-router/models/veed/fabric-1-0/code"},{"title":"Fabric H3 を Comfy Router で使用する","sidebarTitle":"Fabric H3","href":"/ja/development/comfy-router/models/veed/fabric-h3/code"},{"title":"Comfy Router で Lipsync 2.0 を使用する","sidebarTitle":"Lipsync 2.0","href":"/ja/development/comfy-router/models/veed/lipsync-2-0/code"},{"title":"Comfy Router で Video Background Removal Fast を使用する","sidebarTitle":"Video Background Removal Fast","href":"/ja/development/comfy-router/models/veed/video-background-removal-fast/code"},{"title":"Comfy Router で Video Background Removal Green Screen を使用する","sidebarTitle":"Video Background Removal Green Screen","href":"/ja/development/comfy-router/models/veed/video-background-removal-green-screen/code"},{"title":"Comfy Router でビデオ背景除去を使用する","sidebarTitle":"ビデオ背景除去","href":"/ja/development/comfy-router/models/veed/video-background-removal/code"}]},{"group":"Veo","pages":[{"title":"Comfy Router で Veo 3.1 Fast Generate 001 を使う","sidebarTitle":"Veo 3.1 Fast Generate 001","href":"/ja/development/comfy-router/models/veo/veo-3-1-fast-generate-001/code"},{"title":"Comfy Router で Veo 3.1 Generate 001 を使う","sidebarTitle":"Veo 3.1 Generate 001","href":"/ja/development/comfy-router/models/veo/veo-3-1-generate-001/code"},{"title":"Comfy Router で Veo 3.1 Lite Generate 001 を使用する","sidebarTitle":"Veo 3.1 Lite Generate 001","href":"/ja/development/comfy-router/models/veo/veo-3-1-lite-generate-001/code"}]},{"group":"Viggle","pages":[{"title":"Jst 2 Scene View を Comfy Router で使用する","sidebarTitle":"Jst 2 Scene View","href":"/ja/development/comfy-router/models/viggle/jst-2-scene-view/code"},{"title":"Comfy Router で Jst 2 Scene を使用する","sidebarTitle":"Jst 2 Scene","href":"/ja/development/comfy-router/models/viggle/jst-2-scene/code"},{"title":"Comfy Router で Motion Capture を使う","sidebarTitle":"Motion Capture","href":"/ja/development/comfy-router/models/viggle/motion-capture/code"},{"title":"Comfy Router で Text To Motion を使う","sidebarTitle":"Text To Motion","href":"/ja/development/comfy-router/models/viggle/text-to-motion/code"},{"title":"Comfy Router でビデオリミックスを使用する","sidebarTitle":"ビデオリミックス","href":"/ja/development/comfy-router/models/viggle/video-remix/code"}]},{"group":"Wan","pages":[{"title":"Comfy Router で HappyHorse 1.0 I2V を使用する","sidebarTitle":"HappyHorse 1.0 I2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-0-i2v/code"},{"title":"Comfy Router で HappyHorse 1.0 R2V を使用する","sidebarTitle":"HappyHorse 1.0 R2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-0-r2v/code"},{"title":"Comfy Router で HappyHorse 1.0 T2V を使用する","sidebarTitle":"HappyHorse 1.0 T2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-0-t2v/code"},{"title":"Comfy Router で HappyHorse 1.0 Video Edit を使う","sidebarTitle":"HappyHorse 1.0 Video Edit","href":"/ja/development/comfy-router/models/wan/happyhorse-1-0-video-edit/code"},{"title":"HappyHorse 1.1 I2V を Comfy Router で使用する","sidebarTitle":"HappyHorse 1.1 I2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-1-i2v/code"},{"title":"HappyHorse 1.1 R2V を Comfy Router で使用する","sidebarTitle":"HappyHorse 1.1 R2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-1-r2v/code"},{"title":"Comfy Router で HappyHorse 1.1 T2V を使う","sidebarTitle":"HappyHorse 1.1 T2V","href":"/ja/development/comfy-router/models/wan/happyhorse-1-1-t2v/code"},{"title":"Comfy Router で Wan 2.5 I2I Preview を使用する","sidebarTitle":"Wan 2.5 I2I Preview","href":"/ja/development/comfy-router/models/wan/wan2-5-i2i-preview/code"},{"title":"Wan 2.5 I2V Preview を Comfy Router で使用する","sidebarTitle":"Wan 2.5 I2V Preview","href":"/ja/development/comfy-router/models/wan/wan2-5-i2v-preview/code"},{"title":"Comfy Router で Wan 2.5 T2I Preview を使用する","sidebarTitle":"Wan 2.5 T2I Preview","href":"/ja/development/comfy-router/models/wan/wan2-5-t2i-preview/code"},{"title":"Comfy Router で Wan 2.5 T2V Preview を使う","sidebarTitle":"Wan 2.5 T2V Preview","href":"/ja/development/comfy-router/models/wan/wan2-5-t2v-preview/code"},{"title":"Comfy Router で Wan 2.6 I2V を使う","sidebarTitle":"Wan 2.6 I2V","href":"/ja/development/comfy-router/models/wan/wan2-6-i2v/code"},{"title":"Comfy Router で Wan 2.6 R2V を使う","sidebarTitle":"Wan 2.6 R2V","href":"/ja/development/comfy-router/models/wan/wan2-6-r2v/code"},{"title":"Comfy Router で Wan 2.6 T2V を使用する","sidebarTitle":"Wan 2.6 T2V","href":"/ja/development/comfy-router/models/wan/wan2-6-t2v/code"},{"title":"Comfy Router で Wan 2.7 I2V を使う","sidebarTitle":"Wan 2.7 I2V","href":"/ja/development/comfy-router/models/wan/wan2-7-i2v/code"},{"title":"Comfy Router で Wan 2.7 R2V を使用する","sidebarTitle":"Wan 2.7 R2V","href":"/ja/development/comfy-router/models/wan/wan2-7-r2v/code"},{"title":"Comfy Router で Wan 2.7 T2V を使用する","sidebarTitle":"Wan 2.7 T2V","href":"/ja/development/comfy-router/models/wan/wan2-7-t2v/code"},{"title":"Comfy Router で Wan 2.7 Video Edit を使用する","sidebarTitle":"Wan 2.7 Video Edit","href":"/ja/development/comfy-router/models/wan/wan2-7-videoedit/code"},{"title":"Wan 3.0 Video Prime を Comfy Router で使用する","sidebarTitle":"Wan 3.0 Video Prime","href":"/ja/development/comfy-router/models/wan/wan3-0-video-prime/code"},{"title":"Comfy RouterでWan 3.0 Videoを使用する","sidebarTitle":"Wan 3.0 Video","href":"/ja/development/comfy-router/models/wan/wan3-0-video/code"}]},{"group":"WaveSpeed","pages":[{"title":"Comfy Router で Flashvsr を使用する","sidebarTitle":"Flashvsr","href":"/ja/development/comfy-router/models/wavespeed/flashvsr/code"},{"title":"Comfy Router で Seedvr 2 を使用する","sidebarTitle":"Seedvr 2","href":"/ja/development/comfy-router/models/wavespeed/seedvr2/code"},{"title":"Comfy Router で Ultimate Image Upscaler を使用する","sidebarTitle":"Ultimate Image Upscaler","href":"/ja/development/comfy-router/models/wavespeed/ultimate-image-upscaler/code"}]},{"group":"xAI","pages":[{"title":"Comfy Router で Grok Imagine Image 2.0 を使用する","sidebarTitle":"Grok Imagine Image 2.0","href":"/ja/development/comfy-router/models/xai/grok-imagine-image-2-0/code"},{"title":"Grok Imagine Image Pro を Comfy Router で使用する","sidebarTitle":"Grok Imagine Image Pro","href":"/ja/development/comfy-router/models/xai/grok-imagine-image-pro/code"},{"title":"Comfy Router で Grok Imagine Image Quality を使用する","sidebarTitle":"Grok Imagine Image Quality","href":"/ja/development/comfy-router/models/xai/grok-imagine-image-quality/code"},{"title":"Comfy Router で Grok Imagine Image を使う","sidebarTitle":"Grok Imagine Image","href":"/ja/development/comfy-router/models/xai/grok-imagine-image/code"},{"title":"Comfy Router で Grok Imagine Video 1.5 Lite を使用する","sidebarTitle":"Grok Imagine Video 1.5 Lite","href":"/ja/development/comfy-router/models/xai/grok-imagine-video-1-5-lite/code"},{"title":"Comfy Router で Grok Imagine Video 1.5 Preview を使う","sidebarTitle":"Grok Imagine Video 1.5 Preview","href":"/ja/development/comfy-router/models/xai/grok-imagine-video-1-5-preview/code"},{"title":"Comfy Router で Grok Imagine Video 1.5 を使用する","sidebarTitle":"Grok Imagine Video 1.5","href":"/ja/development/comfy-router/models/xai/grok-imagine-video-1-5/code"},{"title":"Comfy Router で Grok Imagine Video を使用する","sidebarTitle":"Grok Imagine Video","href":"/ja/development/comfy-router/models/xai/grok-imagine-video/code"}]}]}]}]},{"tab":"エージェントツール","pages":[{"title":"エージェントツール","href":"/ja/agent-tools"}]},{"tab":"組み込みノード","pages":[{"title":"組み込みノード","href":"/ja/built-in-nodes/overview"}]},{"tab":"開発者向け","pages":[{"title":"開発者向け","href":"/ja/development/overview"}]},{"tab":"ランキング","pages":[{"title":"ランキング","href":"/ja/rankings"}]},{"tab":"サポート","pages":[{"title":"サポート","href":"/ja/support/contact-support"}]}]},{"language":"ko","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"리소스","items":[{"label":"설치","href":"/ko/installation/system_requirements"},{"label":"튜토리얼","href":"/ko/tutorials/basic/text-to-image"},{"label":"개발","href":"/ko/development/overview"}]},{"header":"제품","items":[{"label":"기능","href":"https://www.comfy.org/?utm_source=docs"},{"label":"갤러리","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"다운로드","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"회사 정보","items":[{"label":"소개","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"채용","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"이용약관","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"개인정보 처리방침","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ko/tutorials/partner-nodes/pricing","label":"가격 정책"},{"href":"https://comfy.org/download?utm_source=docs","label":"다운로드"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"pages":[{"title":"ko","href":"/ko/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/api-reference/router/comfy-router/submit-a-kling-40-text-to-video-task-in-klings-native-shape"}]}]},"basePath":"","title":"Submit a Kling 4.0 text-to-video task in Kling's native shape. - ComfyUI","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}