Submit a partner model run to the queue and return immediately.
Comfy Router’s queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.
POST
/
v2
/
models
/
{provider}
/
{model}
/
requests
Submit a partner model run to the queue and return immediately.
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.
Header
Idempotency-Key
string
Caller-generated key that makes retrying one logical call safe. A call that reached the caller with an answer is recorded against its key for 24 hours, and a retry carrying the same key is answered from that record instead of dispatching - and charging - the provider a second time, marked Idempotent-Replayed: true. Keys are scoped to the workspace your credential carries, or to your user when it carries none - so the keyspace is shared by every member of a workspace rather than private to one caller. Make a key unique across the whole workspace, not just within your own client: a second member who reuses a key string is answered from the first member's record, or refused 409 if the request differs. Because the scope follows the credential and not the person, a credential that carries no workspace at all scopes to your user id instead - so retrying one logical call under a different credential can land in a different namespace, where it is dispatched and charged again. Retry with the credential you started with. A keyed request with no authenticated caller is refused 401. The guarantee is a billing one: a key is charged at most once. It is not a promise that a key is dispatched at most once, and it does not make a lost call resumable. Some answers are recorded but not replayable for the full 24 hours, and the billing guarantee is the half that always holds: the key stays consumed - the retry never re-runs and never re-charges - but it is answered 409 invalid_input instead of being served the original body. That happens whenever Comfy does not hold a copy of the response it can still stand behind; a response past the replay size cap and a result addressed by an asset URL Comfy does not host are the two you are most likely to meet. The second is the one worth planning for, because it looks like an ordinary success: which models answer with a Comfy-hosted asset link, how long one stays valid, and what a result carries when an individual asset could not be copied are stated in one place, under Result assets in the API reference, and this paragraph does not restate them. On a model that returns its result on the original call, an answer still holding a partner's own asset link is replayed for a few minutes - which is where a dropped connection puts an SDK's automatic same-key re-send, and while the partner's link is certainly still alive - and refused after that rather than replayed dead. So a prompt retry of a partially re-hosted result behaves exactly like any other replay, and only a later one meets the 409. That short window is deliberately not offered on a model that submits and is polled, because there the partner may have minted the URL long before your call collected it and its remaining life is unknowable - and those models do not need it: a call cut off mid-generation keeps its key holding the generation, so the same-key retry collects the original result rather than a recorded copy of it. A response past the size cap has no window either and is refused from the start. The action on any of these 409 invalid_input refusals is the same: use a new key. Only an answer a provider actually produced is recorded, though. A refusal Router raises on its own before dispatching anything - not enabled for you yet (403), unknown model (404), not entitled to the model (403), a body the model's schema rejects or that names a different model than the path (422), a malformed request (400 invalid_input) - dispatched nothing and charged nothing, so it releases the key: re-send the same key once you are on the rollout ramp or have corrected the request and it runs for real, rather than replaying the refusal or colliding with it as a 409. That turns on whether a provider was reached, never on the status, so a 400 content_policy_violation - the partner's own answer to a call that ran, which some models meter - is recorded and replayed like any other answer. Releasing a refusal that dispatched nothing frees nothing chargeable, so it does not weaken the at-most-once billing guarantee above.
Required string length: 1 - 255
Beispiel:
"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21"
Pfadparameter
provider
string
erforderlich
Lowercase provider segment of the canonical {provider}/{model} model ID - the partner whose model is being run.
Lowercase provider segment of the canonical {provider}/{model} model ID - the partner whose model is being addressed. The invocation route's provider path parameter and a catalog entry's provider field both reference this one schema, which is what keeps the listed IDs and the accepted IDs from drifting apart.
Maximum string length: 64
Pattern: ^[a-z0-9]+([._-][a-z0-9]+)*$
Beispiel:
"bfl"
model
string
erforderlich
Lowercase model segment of the canonical {provider}/{model} model ID - the model to run within that provider.
Lowercase model segment of the canonical {provider}/{model} model ID - the model to run within that provider. Shared by the invocation route's model path parameter and a catalog entry's model field, for the same no-drift reason as RouterProviderSegment.
Maximum string length: 128
Pattern: ^[a-z0-9]+([._-][a-z0-9]+)*$
Beispiel:
"flux-2-pro"
Abfrageparameter
model_provider
string
Selects an alternate provider to serve this model, instead of its current default. Omitting it lets Comfy Router choose which provider serves the call: that may be the model's own provider or another provider Comfy routes the model to. The request body is always the model's native document. A call the model's own provider serves is billed at the model's published Router price; a call Comfy Router serves on another provider may instead be metered at that provider's own rate, as a fallback_provider retry is, and its response may carry that provider's own result shape and asset URLs. On the synchronous run route the provider that served the call is reported in the response's X-Comfy-Router-Provider header; the queued route does not report it, and the cost-estimate route, which serves no call, always quotes the model's own provider when this is omitted. default, comfy, and comfyui are accepted values that behave as an explicit request for the model's own provider on the first attempt and name no override, because Comfy Router is never itself a serving backend. The alternate providers Router can retarget a model onto are fal, wavespeed, runware, and higgsfield; which of them a given model supports is reported by GET /v2/models/{provider}/{model}. When an alternate provider is selected, the native request body is translated into that provider's real schema unless strict_mode=true; see strict_mode and fallback_provider. Its refusals are checked in a fixed order, and an earlier one answers whether or not a later one would. A value that is not a registered provider at all is refused 400 with error_type: invalid_input. Then a workspace configured for direct provider calls only refuses any non-default model_provider with 403 and error_type: forbidden, and Router never runs its fallback_provider retry for it; a resubmit carrying the Idempotency-Key of a request already accepted is answered as a replay of that request rather than refused. Then a request whose body selects a multipart operation (an edit - for example gpt-image's image field) is refused 409, also with error_type: invalid_input, whose detail begins "this request's image selects the edit operation" - but only when the named provider's translator for this model cannot itself serve that operation; a leg whose translator does carry the media is not refused and proceeds normally, so this is a per-leg refusal rather than a blanket one. Then a request that has already resolved a bring-your-own-key credential for the provider in the path is refused 409, also with error_type: invalid_input, whose detail begins this request resolved a BYOK credential - see the 409 on this route, where that detail is the only thing separating this case, and the multipart case above, from the Idempotency-Key one. That BYOK check runs whether or not the named provider has a leg for this model. Then the named provider's own gate refuses 403 with error_type: not_enabled when that provider is not turned on for you, and 503 with error_type: service_unavailable when the gate cannot be evaluated - a flag-evaluation failure, or a missing or nil gate entry. Only past all of those is a real provider that does not serve this model refused 400 with error_type: invalid_input, the same answer as a value that is not a registered provider at all - both mean the model_provider value cannot serve this model, and that 400's detail is human-readable and not a contract, so read GET /v2/models/{provider}/{model} to learn which providers a model does support rather than parsing it. Then, on a Seedance 2.x model, a body carrying an asset:// reference in any content[] image, video or audio url is refused 400 with error_type: invalid_input: those ids are BytePlus virtual-library assets no other provider can serve, so send the media itself as an http(s) URL or a data: URI to use model_provider. Past those 400s, this workspace's partner-provider policy for the named vendor is evaluated too and can refuse 403 or 503 of its own. Neither this parameter nor fallback_provider is available on a BYOK request, and the two are unavailable in different ways: the credential was resolved for the provider named in the path while every alternate leg dispatches on Comfy's own key, so an explicit model_provider is refused with that 409, and fallback_provider is inert rather than refused - no retry against an alternate provider is attempted and the first attempt's own failure is what the caller receives. The same split applies to a multipart body: only an explicit model_provider reaches the 409 above, and only for a leg whose translator cannot serve the operation, while the automatic on-failure retry fallback_provider controls is simply skipped (inert, not refused) for any multipart body. Router defines no provider_not_available or validation_errorerror_type: these conditions fold onto invalid_input. The error_type set can still grow, so treat any value you do not recognize as internal_error rather than switching exhaustively.
strict_mode
boolean
Standard:false
Only meaningful together with model_provider. false (the default): the request body must be this model's own native contract, translated to the alternate provider's real schema - any native field that cannot be expressed exactly is dropped and disclosed via the response's X-Comfy-Router-Dropped-Params header, never silently. true: the body must already be the alternate provider's own real schema, passed through unmodified in both directions - no translation, so X-Comfy-Router-Dropped-Params is never sent, and provider fallback is disabled for the call because a body shaped for one provider cannot be replayed against another (see fallback_provider).
reject_unknown_fields
boolean
Standard:false
Opt in to refusing a top-level request-body field this model's input schema does not declare, rather than accepting it; nested fields are not checked, and nothing is refused for a model whose schema allows undeclared fields or has no authored schema, or on a queued submit sent with strict_mode=true.
persist_outputs
boolean
Standard:false
Asks Comfy to save this request's finished output into your Comfy Cloud workspace, where it is kept like any other workspace asset instead of expiring with the result's links. Only true and false are accepted; any other value is refused 400 with error_type: invalid_input. Omitted, or false (the default): nothing is saved, exactly as before. true is checked before the request is queued, in this order. While saving is not turned on for this environment it is refused 403 with error_type: not_enabled. A workspace that has zero data retention enabled can never save outputs, and is refused 403 with error_type: persist_outputs_forbidden; submit again without persist_outputs to run the request without saving. If the workspace's retention setting cannot be confirmed yet, the request is refused 503 with error_type: service_unavailable; retry with backoff. Otherwise the request is queued as usual and the save is recorded on it. A resubmit with the same Idempotency-Key must send the same persist_outputs value as the original, or it is refused 409. Only the queued submit accepts it; the synchronous POST /v2/models/{provider}/{model} refuses persist_outputs=true.
Body
application/json
The partner model's native JSON input, identical to the body the synchronous route accepts for this model, and it selects the operation and is metered the same way: the body's own fields choose which operation Router runs on a model that supports more than one (an input image switches an editable image model to image-to-image, which may be metered on its own rate; a Seedance first-frame image selects image-to-video and a reference image or clip selects reference-to-video). When the model's own provider serves the call a Seedance request bills by the media kinds in content, not the roles: any video input bills as video-to-video, otherwise any image bills as image-to-video, otherwise text-to-video, except that a final render from a draft_task item bills as the operation of the Draft it renders, with some models charging the same rate for text-to-video and image-to-video; with model_provider selecting an alternate provider, or when Comfy Router serves the call on another provider, each conditioned operation may be metered on that provider's own rate. The same provider-selection contract applies at dispatch: without model_provider, or with model_provider and strict_mode=false (the default), the body is the model's native document and is validated against the model's own input schema before the run is admitted, so a body the model would reject is a 422 here rather than a queued request that fails minutes later - a non-strict alternate-provider body is additionally translated into that provider's real schema at dispatch. With strict_mode=true the body must already be the alternate provider's own schema and is forwarded unchanged: native-schema validation is skipped, exactly as on the synchronous route (see model_provider and strict_mode).
A partner model's native JSON input document, forwarded to the provider as-is. Its concrete shape is owned by the partner rather than by Comfy, so this is an open object: Router does not narrow, rename, or re-envelope the fields. It is a named component (never an inline anonymous object) because ComfyUI's spec-driven codegen needs a class to generate.
Antwort
Created - the run was admitted to the queue. The body is the handle: the request_id, status: IN_QUEUE, a queue_position snapshot, and the status_url, response_url and cancel_url that address the rest of this request's lifetime. It is deliberately 201 and not 202: a queued request is a resource this call created and the three URLs address it, whereas the 202 on the result read below means "not ready yet, ask again" and creates nothing.
The handle returned when a run is admitted to the queue: the request's identity and state, composed with the three URLs that address the rest of its lifetime.
The state of a queued Router request. It has exactly three values, and unlike RouterErrorType this one is a closed enum, because the two schemas are closed in opposite directions on purpose. RouterErrorType classifies failures and its set is expected to grow, so a generated client that hard-rejected an unrecognised bucket would fail hardest exactly when something had already gone wrong. This one is a lifecycle, and a lifecycle with a fourth state added later is a breaking change to every polling loop written against it whether it is declared as an enum or not - so it is declared as one, and the constraint is stated where a client can see it.
Verfügbare Optionen:
IN_QUEUE,
IN_PROGRESS,
COMPLETED
Beispiel:
"IN_QUEUE"
queue_position
integer
How many requests are ahead of this one in the queue, at the instant the response was composed. Zero means this request is at the front.
Erforderlicher Bereich: x >= 0
Beispiel:
3
estimate
object
The pre-flight cost estimate for this request, present on a fresh admission when the cost estimate is enabled for the caller. It quotes the provider leg this request was pinned to (the queue has no fallback loop, so fallback_provider never changes the leg that runs). When no figure can be given it is still present, with source: unknown; the submission never fails because of the estimate. Omitted on an idempotent replay (Idempotent-Replayed: true), because the original quote is not stored. It is an estimate, not the final charge, and not a price lock: the run is charged at the rates in force when it is rated, and the settled charge in your workspace's usage and billing records is final.
{"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":"6b12b146fbab6d15d8a6dec0","clientVersion":"0.0.4448","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":355},{"language":"de","tag":"Comfy Router","count":355},{"language":"es","tag":"Comfy Router","count":355},{"language":"ja","tag":"Comfy Router","count":355},{"language":"ko","tag":"Comfy Router","count":355},{"language":"ru","tag":"Comfy Router","count":355},{"language":"zh","tag":"Comfy Router","count":355},{"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":"Agent tools","count":327},{"language":"en","tag":"Models","count":323},{"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":"en","tag":"All Models","count":320},{"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":"de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","slug":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","pageMetadata":{"title":"Submit a partner model run to the queue and return immediately.","description":"Comfy Router's queued delivery mode. The request body is the same partner-native JSON input `POST /v2/models/{provider}/{model}` accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers `201` with a handle, and the caller collects the result later through the three reads below.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/models/{provider}/{model}/requests","href":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","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: [\"Comfy Router’s queued delivery mode. The request body is the same partner-native JSON input \", _jsx(_components.code, {\n children: \"POST /v2/models/{provider}/{model}\"\n }), \" accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers \", _jsx(_components.code, {\n children: \"201\"\n }), \" with a handle, and the caller collects the result later through the three reads below.\"]\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 partner model run to the queue and return immediately.","description":"Comfy Router's queued delivery mode. The request body is the same partner-native JSON input `POST /v2/models/{provider}/{model}` accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers `201` with a handle, and the caller collects the result later through the three reads below.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml post /v2/models/{provider}/{model}/requests","href":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","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 partner model run to the queue and return immediately.","description":"Comfy Router's queued delivery mode. The request body is the same partner-native JSON input `POST /v2/models/{provider}/{model}` accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers `201` with a handle, and the caller collects the result later through the three reads below.","operationId":"submitRouterModelRequest","tags":["Comfy Router"],"security":["e091e029-3885-4fae-a29d-6db0a3dbf401","70fa993f-b840-4aca-8c44-8a701da957c8"],"parameters":["691f4246-2869-450a-ae5e-7a2e8ff4b0d4","7e349418-ba19-4380-b274-6cc180e7285e","c8e8e5d2-6764-4df9-a964-c86be2c96cd5","d7efac4b-d2c3-442b-9bda-ea3117746218","57b9366a-3f9c-4c3e-b993-c21fbc783764","61e7a24b-79e2-4ec7-8308-1c7dc7e1a9d7","2d3c448e-0395-4ac7-b257-18eb236acace"],"requestBody":"d53da35b-c41a-460e-bbf3-b589446b624e","responses":{"201":"7fa8432d-25ad-4e4f-82a0-eb627c4a6c20","400":"794f296a-490b-4087-87f4-9df455d4958b","401":"81859c50-0147-4471-bbc8-dc586dbeda45","402":"fa5bd4f6-fe9f-46e1-a64d-dfd06961e0c1","403":"6fcaed07-ea0e-41e6-a052-99c1b69ad5f4","404":"06836329-56a0-4154-a83c-7e94543c20a7","409":"aaed2228-0a89-441b-ad8d-c26edc4cb932","413":"2c4423e2-a999-4c8e-9949-33bd29f52f98","422":"ecbedcbc-5b7c-4530-889e-cafc2098f7a8","429":"dbc1dd68-03ba-430f-b15e-5e9fa87095aa","503":"09af12d8-407b-492e-8946-56f44db269e1","504":"05c88273-4485-4221-8083-d11ab8ad2802"},"method":"post","type":"path","servers":["8a3a1a83-7c10-43f2-899f-2773b588de10"],"path":"/v2/models/{provider}/{model}/requests","baseUrlOptions":["https://api.comfy.org"],"title":"Submit a partner model run to the queue and return immediately.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"691f4246-2869-450a-ae5e-7a2e8ff4b0d4":{"name":"provider","in":"path","required":true,"description":"Lowercase provider segment of the canonical `{provider}/{model}` model ID - the partner whose model is being run.","schema":{"type":"string","description":"Lowercase provider segment of the canonical `{provider}/{model}` model ID - the partner whose model is being run.\nLowercase `provider` segment of the canonical `{provider}/{model}` model ID - the partner whose model is being addressed. The invocation route's `provider` path parameter and a catalog entry's `provider` field both reference this one schema, which is what keeps the listed IDs and the accepted IDs from drifting apart.","pattern":"^[a-z0-9]+([._-][a-z0-9]+)*$","maxLength":64,"example":"bfl","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"7e349418-ba19-4380-b274-6cc180e7285e":{"name":"model","in":"path","required":true,"description":"Lowercase model segment of the canonical `{provider}/{model}` model ID - the model to run within that provider.","schema":{"type":"string","description":"Lowercase model segment of the canonical `{provider}/{model}` model ID - the model to run within that provider.\nLowercase `model` segment of the canonical `{provider}/{model}` model ID - the model to run within that provider. Shared by the invocation route's `model` path parameter and a catalog entry's `model` field, for the same no-drift reason as `RouterProviderSegment`.","pattern":"^[a-z0-9]+([._-][a-z0-9]+)*$","maxLength":128,"example":"flux-2-pro","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"c8e8e5d2-6764-4df9-a964-c86be2c96cd5":{"name":"model_provider","in":"query","required":false,"description":"Selects an alternate provider to serve this model, instead of its current default. Omitting it lets Comfy Router choose which provider serves the call: that may be the model's own provider or another provider Comfy routes the model to. The request body is always the model's native document. A call the model's own provider serves is billed at the model's published Router price; a call Comfy Router serves on another provider may instead be metered at that provider's own rate, as a `fallback_provider` retry is, and its response may carry that provider's own result shape and asset URLs. On the synchronous run route the provider that served the call is reported in the response's `X-Comfy-Router-Provider` header; the queued route does not report it, and the cost-estimate route, which serves no call, always quotes the model's own provider when this is omitted. `default`, `comfy`, and `comfyui` are accepted values that behave as an explicit request for the model's own provider on the first attempt and name no override, because Comfy Router is never itself a serving backend. The alternate providers Router can retarget a model onto are `fal`, `wavespeed`, `runware`, and `higgsfield`; which of them a given model supports is reported by `GET /v2/models/{provider}/{model}`. When an alternate provider is selected, the native request body is translated into that provider's real schema unless `strict_mode=true`; see `strict_mode` and `fallback_provider`. Its refusals are checked in a fixed order, and an earlier one answers whether or not a later one would. A value that is not a registered provider at all is refused `400` with `error_type: invalid_input`. Then a workspace configured for direct provider calls only refuses any non-default `model_provider` with `403` and `error_type: forbidden`, and Router never runs its `fallback_provider` retry for it; a resubmit carrying the `Idempotency-Key` of a request already accepted is answered as a replay of that request rather than refused. Then a request whose body selects a multipart operation (an edit - for example gpt-image's `image` field) is refused `409`, also with `error_type: invalid_input`, whose `detail` begins \"this request's `image` selects the edit operation\" - but only when the named provider's translator for this model cannot itself serve that operation; a leg whose translator does carry the media is not refused and proceeds normally, so this is a per-leg refusal rather than a blanket one. Then a request that has already resolved a bring-your-own-key credential for the provider in the path is refused `409`, also with `error_type: invalid_input`, whose `detail` begins `this request resolved a BYOK credential` - see the `409` on this route, where that `detail` is the only thing separating this case, and the multipart case above, from the `Idempotency-Key` one. That BYOK check runs whether or not the named provider has a leg for this model. Then the named provider's own gate refuses `403` with `error_type: not_enabled` when that provider is not turned on for you, and `503` with `error_type: service_unavailable` when the gate cannot be evaluated - a flag-evaluation failure, or a missing or nil gate entry. Only past all of those is a real provider that does not serve this model refused `400` with `error_type: invalid_input`, the same answer as a value that is not a registered provider at all - both mean the `model_provider` value cannot serve this model, and that `400`'s `detail` is human-readable and not a contract, so read `GET /v2/models/{provider}/{model}` to learn which providers a model does support rather than parsing it. Then, on a Seedance 2.x model, a body carrying an `asset://` reference in any `content[]` image, video or audio url is refused `400` with `error_type: invalid_input`: those ids are BytePlus virtual-library assets no other provider can serve, so send the media itself as an http(s) URL or a `data:` URI to use `model_provider`. Past those `400`s, this workspace's partner-provider policy for the named vendor is evaluated too and can refuse `403` or `503` of its own. Neither this parameter nor `fallback_provider` is available on a BYOK request, and the two are unavailable in different ways: the credential was resolved for the provider named in the path while every alternate leg dispatches on Comfy's own key, so an explicit `model_provider` is refused with that `409`, and `fallback_provider` is inert rather than refused - no retry against an alternate provider is attempted and the first attempt's own failure is what the caller receives. The same split applies to a multipart body: only an explicit `model_provider` reaches the `409` above, and only for a leg whose translator cannot serve the operation, while the automatic on-failure retry `fallback_provider` controls is simply skipped (inert, not refused) for any multipart body. Router defines no `provider_not_available` or `validation_error` `error_type`: these conditions fold onto `invalid_input`. The `error_type` set can still grow, so treat any value you do not recognize as `internal_error` rather than switching exhaustively.","schema":{"type":"string","isRequired":false,"description":"Selects an alternate provider to serve this model, instead of its current default. Omitting it lets Comfy Router choose which provider serves the call: that may be the model's own provider or another provider Comfy routes the model to. The request body is always the model's native document. A call the model's own provider serves is billed at the model's published Router price; a call Comfy Router serves on another provider may instead be metered at that provider's own rate, as a `fallback_provider` retry is, and its response may carry that provider's own result shape and asset URLs. On the synchronous run route the provider that served the call is reported in the response's `X-Comfy-Router-Provider` header; the queued route does not report it, and the cost-estimate route, which serves no call, always quotes the model's own provider when this is omitted. `default`, `comfy`, and `comfyui` are accepted values that behave as an explicit request for the model's own provider on the first attempt and name no override, because Comfy Router is never itself a serving backend. The alternate providers Router can retarget a model onto are `fal`, `wavespeed`, `runware`, and `higgsfield`; which of them a given model supports is reported by `GET /v2/models/{provider}/{model}`. When an alternate provider is selected, the native request body is translated into that provider's real schema unless `strict_mode=true`; see `strict_mode` and `fallback_provider`. Its refusals are checked in a fixed order, and an earlier one answers whether or not a later one would. A value that is not a registered provider at all is refused `400` with `error_type: invalid_input`. Then a workspace configured for direct provider calls only refuses any non-default `model_provider` with `403` and `error_type: forbidden`, and Router never runs its `fallback_provider` retry for it; a resubmit carrying the `Idempotency-Key` of a request already accepted is answered as a replay of that request rather than refused. Then a request whose body selects a multipart operation (an edit - for example gpt-image's `image` field) is refused `409`, also with `error_type: invalid_input`, whose `detail` begins \"this request's `image` selects the edit operation\" - but only when the named provider's translator for this model cannot itself serve that operation; a leg whose translator does carry the media is not refused and proceeds normally, so this is a per-leg refusal rather than a blanket one. Then a request that has already resolved a bring-your-own-key credential for the provider in the path is refused `409`, also with `error_type: invalid_input`, whose `detail` begins `this request resolved a BYOK credential` - see the `409` on this route, where that `detail` is the only thing separating this case, and the multipart case above, from the `Idempotency-Key` one. That BYOK check runs whether or not the named provider has a leg for this model. Then the named provider's own gate refuses `403` with `error_type: not_enabled` when that provider is not turned on for you, and `503` with `error_type: service_unavailable` when the gate cannot be evaluated - a flag-evaluation failure, or a missing or nil gate entry. Only past all of those is a real provider that does not serve this model refused `400` with `error_type: invalid_input`, the same answer as a value that is not a registered provider at all - both mean the `model_provider` value cannot serve this model, and that `400`'s `detail` is human-readable and not a contract, so read `GET /v2/models/{provider}/{model}` to learn which providers a model does support rather than parsing it. Then, on a Seedance 2.x model, a body carrying an `asset://` reference in any `content[]` image, video or audio url is refused `400` with `error_type: invalid_input`: those ids are BytePlus virtual-library assets no other provider can serve, so send the media itself as an http(s) URL or a `data:` URI to use `model_provider`. Past those `400`s, this workspace's partner-provider policy for the named vendor is evaluated too and can refuse `403` or `503` of its own. Neither this parameter nor `fallback_provider` is available on a BYOK request, and the two are unavailable in different ways: the credential was resolved for the provider named in the path while every alternate leg dispatches on Comfy's own key, so an explicit `model_provider` is refused with that `409`, and `fallback_provider` is inert rather than refused - no retry against an alternate provider is attempted and the first attempt's own failure is what the caller receives. The same split applies to a multipart body: only an explicit `model_provider` reaches the `409` above, and only for a leg whose translator cannot serve the operation, while the automatic on-failure retry `fallback_provider` controls is simply skipped (inert, not refused) for any multipart body. Router defines no `provider_not_available` or `validation_error` `error_type`: these conditions fold onto `invalid_input`. The `error_type` set can still grow, so treat any value you do not recognize as `internal_error` rather than switching exhaustively.","uniqueKey":"","typeLabel":"string"}},"d7efac4b-d2c3-442b-9bda-ea3117746218":{"name":"strict_mode","in":"query","required":false,"description":"Only meaningful together with `model_provider`. `false` (the default): the request body must be this model's own native contract, translated to the alternate provider's real schema - any native field that cannot be expressed exactly is dropped and disclosed via the response's `X-Comfy-Router-Dropped-Params` header, never silently. `true`: the body must already be the alternate provider's own real schema, passed through unmodified in both directions - no translation, so `X-Comfy-Router-Dropped-Params` is never sent, and provider fallback is disabled for the call because a body shaped for one provider cannot be replayed against another (see `fallback_provider`).","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Only meaningful together with `model_provider`. `false` (the default): the request body must be this model's own native contract, translated to the alternate provider's real schema - any native field that cannot be expressed exactly is dropped and disclosed via the response's `X-Comfy-Router-Dropped-Params` header, never silently. `true`: the body must already be the alternate provider's own real schema, passed through unmodified in both directions - no translation, so `X-Comfy-Router-Dropped-Params` is never sent, and provider fallback is disabled for the call because a body shaped for one provider cannot be replayed against another (see `fallback_provider`).","uniqueKey":"","typeLabel":"boolean"}},"57b9366a-3f9c-4c3e-b993-c21fbc783764":{"name":"Idempotency-Key","in":"header","required":false,"description":"Caller-generated key that makes retrying one logical call safe. A call that reached the caller with an answer is recorded against its key for 24 hours, and a retry carrying the same key is answered from that record instead of dispatching - and charging - the provider a second time, marked `Idempotent-Replayed: true`. Keys are scoped to the workspace your credential carries, or to your user when it carries none - so the keyspace is shared by every member of a workspace rather than private to one caller. Make a key unique across the whole workspace, not just within your own client: a second member who reuses a key string is answered from the first member's record, or refused `409` if the request differs. Because the scope follows the credential and not the person, a credential that carries no workspace at all scopes to your user id instead - so retrying one logical call under a different credential can land in a different namespace, where it is dispatched and charged again. Retry with the credential you started with. A keyed request with no authenticated caller is refused `401`. The guarantee is a billing one: a key is charged at most once. It is not a promise that a key is dispatched at most once, and it does not make a lost call resumable. Some answers are recorded but not replayable for the full 24 hours, and the billing guarantee is the half that always holds: the key stays consumed - the retry never re-runs and never re-charges - but it is answered `409 invalid_input` instead of being served the original body. That happens whenever Comfy does not hold a copy of the response it can still stand behind; a response past the replay size cap and a result addressed by an asset URL Comfy does not host are the two you are most likely to meet. The second is the one worth planning for, because it looks like an ordinary success: which models answer with a Comfy-hosted asset link, how long one stays valid, and what a result carries when an individual asset could not be copied are stated in one place, under Result assets in the API reference, and this paragraph does not restate them. On a model that returns its result on the original call, an answer still holding a partner's own asset link is replayed for a few minutes - which is where a dropped connection puts an SDK's automatic same-key re-send, and while the partner's link is certainly still alive - and refused after that rather than replayed dead. So a prompt retry of a partially re-hosted result behaves exactly like any other replay, and only a later one meets the `409`. That short window is deliberately not offered on a model that submits and is polled, because there the partner may have minted the URL long before your call collected it and its remaining life is unknowable - and those models do not need it: a call cut off mid-generation keeps its key holding the generation, so the same-key retry collects the original result rather than a recorded copy of it. A response past the size cap has no window either and is refused from the start. The action on any of these `409 invalid_input` refusals is the same: use a new key. Only an answer a provider actually produced is recorded, though. A refusal Router raises on its own before dispatching anything - not enabled for you yet (`403`), unknown model (`404`), not entitled to the model (`403`), a body the model's schema rejects or that names a different model than the path (`422`), a malformed request (`400 invalid_input`) - dispatched nothing and charged nothing, so it releases the key: re-send the same key once you are on the rollout ramp or have corrected the request and it runs for real, rather than replaying the refusal or colliding with it as a `409`. That turns on whether a provider was reached, never on the status, so a `400 content_policy_violation` - the partner's own answer to a call that ran, which some models meter - is recorded and replayed like any other answer. Releasing a refusal that dispatched nothing frees nothing chargeable, so it does not weaken the at-most-once billing guarantee above.","schema":{"type":"string","minLength":1,"maxLength":255,"example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21","isRequired":false,"description":"Caller-generated key that makes retrying one logical call safe. A call that reached the caller with an answer is recorded against its key for 24 hours, and a retry carrying the same key is answered from that record instead of dispatching - and charging - the provider a second time, marked `Idempotent-Replayed: true`. Keys are scoped to the workspace your credential carries, or to your user when it carries none - so the keyspace is shared by every member of a workspace rather than private to one caller. Make a key unique across the whole workspace, not just within your own client: a second member who reuses a key string is answered from the first member's record, or refused `409` if the request differs. Because the scope follows the credential and not the person, a credential that carries no workspace at all scopes to your user id instead - so retrying one logical call under a different credential can land in a different namespace, where it is dispatched and charged again. Retry with the credential you started with. A keyed request with no authenticated caller is refused `401`. The guarantee is a billing one: a key is charged at most once. It is not a promise that a key is dispatched at most once, and it does not make a lost call resumable. Some answers are recorded but not replayable for the full 24 hours, and the billing guarantee is the half that always holds: the key stays consumed - the retry never re-runs and never re-charges - but it is answered `409 invalid_input` instead of being served the original body. That happens whenever Comfy does not hold a copy of the response it can still stand behind; a response past the replay size cap and a result addressed by an asset URL Comfy does not host are the two you are most likely to meet. The second is the one worth planning for, because it looks like an ordinary success: which models answer with a Comfy-hosted asset link, how long one stays valid, and what a result carries when an individual asset could not be copied are stated in one place, under Result assets in the API reference, and this paragraph does not restate them. On a model that returns its result on the original call, an answer still holding a partner's own asset link is replayed for a few minutes - which is where a dropped connection puts an SDK's automatic same-key re-send, and while the partner's link is certainly still alive - and refused after that rather than replayed dead. So a prompt retry of a partially re-hosted result behaves exactly like any other replay, and only a later one meets the `409`. That short window is deliberately not offered on a model that submits and is polled, because there the partner may have minted the URL long before your call collected it and its remaining life is unknowable - and those models do not need it: a call cut off mid-generation keeps its key holding the generation, so the same-key retry collects the original result rather than a recorded copy of it. A response past the size cap has no window either and is refused from the start. The action on any of these `409 invalid_input` refusals is the same: use a new key. Only an answer a provider actually produced is recorded, though. A refusal Router raises on its own before dispatching anything - not enabled for you yet (`403`), unknown model (`404`), not entitled to the model (`403`), a body the model's schema rejects or that names a different model than the path (`422`), a malformed request (`400 invalid_input`) - dispatched nothing and charged nothing, so it releases the key: re-send the same key once you are on the rollout ramp or have corrected the request and it runs for real, rather than replaying the refusal or colliding with it as a `409`. That turns on whether a provider was reached, never on the status, so a `400 content_policy_violation` - the partner's own answer to a call that ran, which some models meter - is recorded and replayed like any other answer. Releasing a refusal that dispatched nothing frees nothing chargeable, so it does not weaken the at-most-once billing guarantee above.","uniqueKey":"","typeLabel":"string"}},"61e7a24b-79e2-4ec7-8308-1c7dc7e1a9d7":{"name":"reject_unknown_fields","in":"query","required":false,"description":"Opt in to refusing a top-level request-body field this model's input schema does not declare, rather than accepting it; nested fields are not checked, and nothing is refused for a model whose schema allows undeclared fields or has no authored schema, or on a queued submit sent with `strict_mode=true`.","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Opt in to refusing a top-level request-body field this model's input schema does not declare, rather than accepting it; nested fields are not checked, and nothing is refused for a model whose schema allows undeclared fields or has no authored schema, or on a queued submit sent with `strict_mode=true`.","uniqueKey":"","typeLabel":"boolean"}},"2d3c448e-0395-4ac7-b257-18eb236acace":{"name":"persist_outputs","in":"query","required":false,"description":"Asks Comfy to save this request's finished output into your Comfy Cloud workspace, where it is kept like any other workspace asset instead of expiring with the result's links. Only `true` and `false` are accepted; any other value is refused `400` with `error_type: invalid_input`. Omitted, or `false` (the default): nothing is saved, exactly as before. `true` is checked before the request is queued, in this order. While saving is not turned on for this environment it is refused `403` with `error_type: not_enabled`. A workspace that has zero data retention enabled can never save outputs, and is refused `403` with `error_type: persist_outputs_forbidden`; submit again without `persist_outputs` to run the request without saving. If the workspace's retention setting cannot be confirmed yet, the request is refused `503` with `error_type: service_unavailable`; retry with backoff. Otherwise the request is queued as usual and the save is recorded on it. A resubmit with the same `Idempotency-Key` must send the same `persist_outputs` value as the original, or it is refused `409`. Only the queued submit accepts it; the synchronous `POST /v2/models/{provider}/{model}` refuses `persist_outputs=true`.","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Asks Comfy to save this request's finished output into your Comfy Cloud workspace, where it is kept like any other workspace asset instead of expiring with the result's links. Only `true` and `false` are accepted; any other value is refused `400` with `error_type: invalid_input`. Omitted, or `false` (the default): nothing is saved, exactly as before. `true` is checked before the request is queued, in this order. While saving is not turned on for this environment it is refused `403` with `error_type: not_enabled`. A workspace that has zero data retention enabled can never save outputs, and is refused `403` with `error_type: persist_outputs_forbidden`; submit again without `persist_outputs` to run the request without saving. If the workspace's retention setting cannot be confirmed yet, the request is refused `503` with `error_type: service_unavailable`; retry with backoff. Otherwise the request is queued as usual and the save is recorded on it. A resubmit with the same `Idempotency-Key` must send the same `persist_outputs` value as the original, or it is refused `409`. Only the queued submit accepts it; the synchronous `POST /v2/models/{provider}/{model}` refuses `persist_outputs=true`.","uniqueKey":"","typeLabel":"boolean"}}},"requestBody":{"required":true,"description":"The partner model's native JSON input, identical to the body the synchronous route accepts for this model, and it selects the operation and is metered the same way: the body's own fields choose which operation Router runs on a model that supports more than one (an input image switches an editable image model to image-to-image, which may be metered on its own rate; a Seedance first-frame image selects image-to-video and a reference image or clip selects reference-to-video). When the model's own provider serves the call a Seedance request bills by the media kinds in `content`, not the roles: any video input bills as video-to-video, otherwise any image bills as image-to-video, otherwise text-to-video, except that a final render from a `draft_task` item bills as the operation of the Draft it renders, with some models charging the same rate for text-to-video and image-to-video; with `model_provider` selecting an alternate provider, or when Comfy Router serves the call on another provider, each conditioned operation may be metered on that provider's own rate. The same provider-selection contract applies at dispatch: without `model_provider`, or with `model_provider` and `strict_mode=false` (the default), the body is the model's native document and is validated against the model's own input schema before the run is admitted, so a body the model would reject is a `422` here rather than a queued request that fails minutes later - a non-strict alternate-provider body is additionally translated into that provider's real schema at dispatch. With `strict_mode=true` the body must already be the alternate provider's own schema and is forwarded unchanged: native-schema validation is skipped, exactly as on the synchronous route (see `model_provider` and `strict_mode`).","content":{"application/json":{"schema":{"type":"object","description":"A partner model's native JSON input document, forwarded to the provider as-is. Its concrete shape is owned by the partner rather than by Comfy, so this is an open object: Router does not narrow, rename, or re-envelope the fields. It is a named component (never an inline anonymous object) because ComfyUI's spec-driven codegen needs a class to generate.","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7fa8432d-25ad-4e4f-82a0-eb627c4a6c20":{"description":"Created - the run was admitted to the queue. The body is the handle: the `request_id`, `status: IN_QUEUE`, a `queue_position` snapshot, and the `status_url`, `response_url` and `cancel_url` that address the rest of this request's lifetime. It is deliberately `201` and not `202`: a queued request is a resource this call created and the three URLs address it, whereas the `202` on the result read below means \"not ready yet, ask again\" and creates nothing.","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"}},"Idempotent-Replayed":{"description":"Present and `true` when this response was served from an `Idempotency-Key`'s record rather than by running the model again. It carries the original call's status, body and content type, and it is not billed a second time - the charge settled when the original completed. The header is absent on a fresh run rather than sent as `false`, so branch on its presence.","required":false,"schema":{"type":"boolean","example":true}},"X-Comfy-Router-Dropped-Params":{"description":"One JSON-encoded string holding an array of strings - decode it with a JSON parser rather than splitting it on commas, because it is a single string on the wire, not a comma-separated OpenAPI array, and each entry is a sentence carrying commas of its own - present whenever a translation produced this call's request body and could not express one or more native fields exactly on the provider that served it, naming each dropped field and why, whether the caller asked for that translation with `model_provider` (`strict_mode=false`, the default) or an automatic `fallback_provider` retry ran it. Absent when no translation ran, when translation ran but dropped nothing, and on an error response. On a queued submit it is on the `201` and any same-key replay of it, naming what the `model_provider` leg will drop; the queued status and result responses do not carry it. On a fallback retry it names what that retry's own translation (into the provider that actually served the call) dropped, never the primary attempt's. The disclosure is bounded three ways, so that it stays a fixed size rather than one that grows with the request body — some native arrays (`input.media` on the Wan video family) are deliberately uncapped, and entries quote caller-supplied values: at most 64 entries, each at most 300 bytes plus an elision mark, summing to at most 4096 bytes of the encoded header value. Whichever bound binds first wins. Shortening is never silent: an entry cut to the per-entry bound ends in `…`, and when entries are left out entirely a final summarising entry states how many. Treat that count as a lower bound on the fields affected rather than a tally of them: it counts disclosure entries, and a translator may collapse many dropped elements into one entry (the Wan video family's media groups do exactly that). Entries are also sanitised before publication — a media URL is stripped of its query string, which is what carries its credential — so an entry names the field it dropped rather than reproducing the value verbatim. It is stored with the `Idempotency-Key` record and replayed unchanged on a same-key retry (alongside `Idempotent-Replayed: true`), so a retry carries the same disclosure the original call did rather than reading as a drop-free run. In the one case where the stored headers were too large to keep in full, the record is marked non-replayable and the retry is refused with `409` rather than served without this header - a refusal a caller can act on, where a replay that silently carried no disclosure is the outcome this header exists to prevent.","required":false,"schema":{"type":"string","example":"[\"moderation (fal applies its own, non-configurable safety filtering)\"]"}}},"content":{"application/json":{"schema":{"type":"object","description":"The handle returned when a run is admitted to the queue: the request's identity and state, composed with the three URLs that address the rest of its lifetime.","required":["request_id","status","status_url","response_url","cancel_url"],"properties":{"status_url":{"type":"string","format":"uri","description":"Absolute URL of this request's status read.","example":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21/status","isRequired":true,"uniqueKey":"status_url","typeLabel":"string\u003curi>"},"response_url":{"type":"string","format":"uri","description":"Absolute URL this request's result is collected from.","example":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21","isRequired":true,"uniqueKey":"response_url","typeLabel":"string\u003curi>"},"cancel_url":{"type":"string","format":"uri","description":"Absolute URL a cancellation is asked for at.","example":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21/cancel","isRequired":true,"uniqueKey":"cancel_url","typeLabel":"string\u003curi>"},"request_id":{"type":"string","format":"uuid","x-go-type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","maxLength":36,"description":"Identifier of one queued Router request - the handle a caller polls, cancels and collects a result by.","example":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"The state of a queued Router request. It has exactly three values, and unlike `RouterErrorType` this one is a closed `enum`, because the two schemas are closed in opposite directions on purpose. `RouterErrorType` classifies failures and its set is expected to grow, so a generated client that hard-rejected an unrecognised bucket would fail hardest exactly when something had already gone wrong. This one is a lifecycle, and a lifecycle with a fourth state added later is a breaking change to every polling loop written against it whether it is declared as an enum or not - so it is declared as one, and the constraint is stated where a client can see it.","enum":["IN_QUEUE","IN_PROGRESS","COMPLETED"],"example":"IN_QUEUE","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"queue_position":{"type":"integer","minimum":0,"description":"How many requests are ahead of this one in the queue, at the instant the response was composed. Zero means this request is at the front.","example":3,"uniqueKey":"queue_position","typeLabel":"integer"},"estimate":{"type":"object","description":"The pre-flight cost estimate for this request, present on a fresh admission when the cost estimate is enabled for the caller. It quotes the provider leg this request was pinned to (the queue has no fallback loop, so `fallback_provider` never changes the leg that runs). When no figure can be given it is still present, with `source: unknown`; the submission never fails because of the estimate. Omitted on an idempotent replay (`Idempotent-Replayed: true`), because the original quote is not stored. It is an estimate, not the final charge, and not a price lock: the run is charged at the rates in force when it is rated, and the settled charge in your workspace's usage and billing records is final.","required":["source","currency","provider","model","pricing_as_of"],"properties":{"source":{"type":"string","description":"`exact` | `estimated` | `free` | `unknown`; read any other value as `unknown`. `exact` and `estimated` both label an estimate; neither is the final charge. `free` means the rate card prices this request at zero, so `amount` is \"0\". `unknown` carries no figure.","isRequired":true,"uniqueKey":"estimate.source","typeLabel":"string"},"currency":{"type":"string","description":"Always `USD`.","isRequired":true,"uniqueKey":"estimate.currency","typeLabel":"string"},"provider":{"type":"string","description":"The provider leg this quote is for. On a queued submit it is the leg that will run. When the caller named no `model_provider`, Comfy Router selects the serving provider, and this value may be `comfy` - meaning Comfy Router chose the leg - rather than a specific provider name.","isRequired":true,"uniqueKey":"estimate.provider","typeLabel":"string"},"model":{"type":"string","description":"A canonical Comfy Router model ID, `{provider}/{model}` - exactly the value that addresses the model on `POST /v2/models/{provider}/{model}`, so a caller can interpolate it into that path without re-deriving it from anything. Its `pattern` is `RouterProviderSegment` and `RouterModelSegment` joined by a single `/`, and `maxLength` is their sum plus that separator.","pattern":"^[a-z0-9]+([._-][a-z0-9]+)*/[a-z0-9]+([._-][a-z0-9]+)*$","maxLength":193,"example":"bfl/flux-2-pro","isRequired":true,"uniqueKey":"estimate.model","typeLabel":"string"},"pricing_as_of":{"type":"string","format":"date-time","description":"When the rate card this quote was priced from was fetched. The estimate is not a price lock: the run is charged at the rates in force when it is rated, not at this instant. An `estimated` quote taken from the vendor's published price list (a model billed the cost the vendor reports) carries the date that list was read instead. A quote whose billed quantity is predicted from a published vendor schedule and then priced from the rate card carries the older of that schedule's read date and the card's fetch time, for an `exact` answer and an `estimated` one alike (a model billed the credits its vendor reports is the `estimated` case). Whenever no rate card was read (`reason: pricing_unavailable`, `byok`, or a `not_quotable` call that cannot be priced from any card), this is when the quote was answered.","isRequired":true,"uniqueKey":"estimate.pricing_as_of","typeLabel":"string\u003cdate-time>"},"amount":{"type":"string","description":"The estimated cost in dollars as a decimal string, e.g. \"0.04\", with up to 8 decimals and no exponent. A chargeable sub-cent price is never rendered as \"0\"; only a `free` quote reads \"0\". Present only when `source` is `exact` or `free`. Not the final charge: the settled charge in your workspace's usage and billing records is.","uniqueKey":"estimate.amount","typeLabel":"string"},"min_amount":{"type":"string","description":"The low end of the estimate in dollars as a decimal string. It is an estimate, not a guaranteed floor: a call can be billed less, for example when the provider returns less than the request asked for (such as no images), when the estimate is a typical price learned from past calls, or when the price does not rise steadily with the amount requested. Present only when `source` is `estimated`.","uniqueKey":"estimate.min_amount","typeLabel":"string"},"max_amount":{"type":"string","description":"The high end of the estimate in dollars as a decimal string. It is an estimate, not a guaranteed cap: a call can be billed more, for example when the provider returns more than was asked (such as more images than requested), when the estimate is learned from past calls, or when the price does not rise steadily with the amount requested. Present only when `source` is `estimated`.","uniqueKey":"estimate.max_amount","typeLabel":"string"},"amount_cents":{"type":"number","format":"double","description":"The same figure in US cents, unrounded, for arithmetic. Present with `amount`.","uniqueKey":"estimate.amount_cents","typeLabel":"number\u003cdouble>"},"min_amount_cents":{"type":"number","format":"double","description":"`min_amount` in US cents, unrounded. Present with `min_amount`.","uniqueKey":"estimate.min_amount_cents","typeLabel":"number\u003cdouble>"},"max_amount_cents":{"type":"number","format":"double","description":"`max_amount` in US cents. Present with `max_amount`.","uniqueKey":"estimate.max_amount_cents","typeLabel":"number\u003cdouble>"},"credits":{"type":"number","format":"double","description":"`amount` in Comfy credits using the platform conversion ($1 = 211 credits), rounded to 2 decimals - the figure `X-Comfy-Credits-Used` is expected to carry for an `exact` quote. That header is a rounded post-hoc figure, not a receipt; the settled charge in your workspace's usage and billing records is final.","uniqueKey":"estimate.credits","typeLabel":"number\u003cdouble>"},"reason":{"type":"string","description":"Present only when `source` is `unknown`: `not_quotable` (Router cannot price this call before it runs - its price depends on what the provider reports back, or the body does not bound a billed quantity), `unpriced_model` (the rate card does not price this request), `byok` (queued submit only: the run uses your own provider key, so Comfy bills nothing for it), or `pricing_unavailable` (queued submit only: the rate card could not be read when the request was admitted; this is transient, and the run is still charged as usual). Read any other value as `not_quotable`.","uniqueKey":"estimate.reason","typeLabel":"string"}},"uniqueKey":"estimate","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status_url":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21/status","response_url":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21","cancel_url":"https://api.comfy.org/v2/models/bfl/flux-pro-1.1/requests/6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21/cancel","request_id":"6f1a1a6e-6a53-4a5f-9d3a-2b3b0a1f9c21","status":"IN_QUEUE","queue_position":3,"estimate":{"source":"\u003cstring>","currency":"\u003cstring>","provider":"\u003cstring>","model":"bfl/flux-2-pro","pricing_as_of":"2023-11-07T05:31:56Z","amount":"\u003cstring>","min_amount":"\u003cstring>","max_amount":"\u003cstring>","amount_cents":123,"min_amount_cents":123,"max_amount_cents":123,"credits":123,"reason":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"794f296a-490b-4087-87f4-9df455d4958b":{"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"},"81859c50-0147-4471-bbc8-dc586dbeda45":{"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"},"fa5bd4f6-fe9f-46e1-a64d-dfd06961e0c1":{"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"},"6fcaed07-ea0e-41e6-a052-99c1b69ad5f4":{"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`. On this route `not_enabled` also answers a model whose partner answers a generation directly as bytes: such a model cannot yet be queued, so the submit refuses it and nothing is queued or charged. For that refusal it is the model and not the account that is refused: run such a model on the synchronous route, `POST /v2/models/{provider}/{model}`, instead. The same redirect is given, in `detail`, to a bring-your-own-key request whose credential resolved but that the queue cannot carry. A credential that carries no Comfy workspace is refused `not_enabled` here too, with a `detail` naming the credential, while the synchronous route accepts it. A `persist_outputs=true` submit is refused `not_enabled` while saving outputs is not turned on for this environment, and `persist_outputs_forbidden` from a workspace with zero data retention enabled; the synchronous route does not accept `persist_outputs` at all, so resubmit here without it instead. Any other `not_enabled` or `forbidden` here is refused by the synchronous route the same way, so read `detail` rather than the bucket before re-sending elsewhere.","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"},"06836329-56a0-4154-a83c-7e94543c20a7":{"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"},"aaed2228-0a89-441b-ad8d-c26edc4cb932":{"description":"This request cannot be served as sent, and on `POST /v2/models/{provider}/{model}` three unrelated conditions answer this status. The first, which every route declaring this status can raise: the `Idempotency-Key` on this request is already held, and this request cannot be answered from its record. Two buckets share the status there and `X-Comfy-Error-Type` is what separates them, because they are acted on in opposite ways. `concurrency_limit_exceeded` means the original call for this key is still running: wait `Retry-After` seconds and re-send the same key, which collects that call's result rather than starting a second one. `invalid_input` means the key cannot serve this request at all - it was already used for a different request (the method, the path and query, or the body differ from the original; a body that differs only in the signature of a signed Comfy asset URL is not different, unless the original's recorded answer was an error), or the original completed (and, if it succeeded, was charged) and Router holds no copy of its response it can still stand behind - for example it was too large to store, or it names an asset Comfy does not host and so cannot promise still resolves, which on a direct-return model is replayed for a few minutes after the original call and refused after that - or the copy it holds is content-encoded in a way this request did not accept - and the answer for the key is always a new key, never a re-send of this one. There is no `Retry-After` on any of these, because waiting changes nothing. `detail` says which case it is; the different-request case says nothing about how the call that does own the key turned out. The second and third conditions are raised only by `POST /v2/models/{provider}/{model}`, are not about the `Idempotency-Key` at all, and are both reachable on a request that carries no key. Router checks the third before the second, so a request that would trip both is refused for the third: an explicit `model_provider` naming an alternate provider on a request whose body selects a multipart operation (an edit, for example gpt-image's `image` field), when that provider's translator for this model cannot itself serve the operation - the swap is refused rather than silently billing a plain generation for the edit the caller actually asked for. A leg whose translator does carry the media is not refused and proceeds normally, so this refusal is per-leg rather than blanket. This one is not raised by the automatic on-failure retry `fallback_provider` controls, which is simply skipped (inert, not refused) on any multipart body, whether or not a leg could have served it - see the `model_provider` parameter. Its `detail` begins \"this request's `image` selects the edit operation\". The second: `model_provider` named an alternate provider on a request that had already resolved a bring-your-own-key credential for the provider in the path. The three are mutually exclusive - the multipart case is decided from the request body and the named leg's own translator, before BYOK is even considered - and the BYOK case is exclusive with the key case because that credential was resolved for the path's provider while every alternate leg dispatches on Comfy's own key for its own provider, so the call is refused before anything is dispatched and nothing is charged. Both the second and third carry `invalid_input`, the same bucket as the terminal key case above, so `X-Comfy-Error-Type` does not separate any of the three and `detail` is what a client branches on: the BYOK case begins `this request resolved a BYOK credential`, and a new key does not help - drop `model_provider`, or send the request without the BYOK credential. See the `model_provider` parameter, which also records that `fallback_provider` is inert rather than refused on a BYOK request. 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"}},"Retry-After":{"description":"Seconds to wait before retrying the same request with the same `Idempotency-Key`. It is set on the three answers such a retry can actually collect from: a `409` carrying `error_type: concurrency_limit_exceeded`, where the original call for that key is still running; a `deadline_exceeded` `504`, where Comfy stopped holding the connection but still holds a handle to a generation the provider is running; and a `provider_error` `502` whose poll leg ended without a verdict on the generation, where the key is parked with that same handle. A retry after the `502` or the `504` normally collects, or is told to use a new key, rather than dispatching a second generation; the one exception is a `502` whose park itself failed (the reservation was gone, or the park write errored), which leaves no handle to collect and lets a same-key retry dispatch and bill a fresh generation. In every case the value is the interval Router itself would wait before asking again, which is the one honest number this route has for \"ask again later\". On an unkeyed call there is no handle to collect and the value is only a pacing hint. Absent when there is nothing to collect: a bound that expired before the provider accepted anything, or a `409` that refuses the key outright instead of asking the caller to wait.","required":false,"schema":{"type":"integer","minimum":1,"example":2}}},"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"},"2c4423e2-a999-4c8e-9949-33bd29f52f98":{"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"},"ecbedcbc-5b7c-4530-889e-cafc2098f7a8":{"description":"The request's contents were rejected against the model's schema. The body is `RouterValidationErrorResponse`, the FastAPI `detail[]` shape, so each offending field keeps its own specific `type` and `ctx`. `X-Comfy-Error-Type` carries the coarse bucket for the whole response. A JSON request body that is not an object at all (an array, a string, a number, `null`) is refused here too, as `dict_type` at `[\"body\"]`.","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"}},"Idempotent-Replayed":{"description":"Present and `true` when this response was served from an `Idempotency-Key`'s record rather than by running the model again. It carries the original call's status, body and content type, and it is not billed a second time - the charge settled when the original completed. The header is absent on a fresh run rather than sent as `false`, so branch on its presence.","required":false,"schema":{"type":"boolean","example":true}}},"content":{"application/json":{"schema":{"type":"object","description":"Router's model-level `422` body, in the FastAPI form: the request was well-formed enough to reach the model and the model rejected its contents. Note it carries no `error_type` of its own - that is what `X-Comfy-Error-Type` on the response is for, so a client can read the coarse bucket off the header without first deciding which of the two Router error bodies it received.","properties":{"detail":{"type":"array","description":"Every validation failure found on the request, one entry per offending field.","items":{"type":"object","description":"One model-level validation failure, in the FastAPI form. `type` carries the specific provider reason - `value_error`, `missing`, `image_too_small`, `unsupported_audio_format`, `greater_than`, `file_too_large` and the rest - which is the granularity `RouterErrorType`'s coarse bucket cannot express. It is an open string and not an `enum` for the same reason: the provider vocabulary runs to roughly 48 values across two tiers and grows on the provider's release cycle, not ours, and an unmodelled value must reach the caller rather than fail deserialization.","properties":{"loc":{"type":"array","description":"Path to the offending field, outermost segment first - for example `[\"body\", \"image_url\"]`, or `[\"body\", \"images\", 0]` where an integer indexes into an array.","items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","description":"Human-readable description of this single failure.","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","description":"Specific, machine-readable reason for this failure, passed through from the provider unchanged. This is the value a typed SDK exception hierarchy branches on; `error_type` on the response header is only its coarse bucket.","example":"image_too_small","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"ctx":{"type":"object","description":"The violated bound for one `RouterValidationErrorDetail`, carried from the provider verbatim - for example `{\"limit_value\": 8}` alongside `greater_than`, `{\"min_width\": 512}` alongside `image_too_small`, or `{\"max_size_bytes\": 10485760}` alongside `file_too_large`. The key set is specific to the provider and the error type, so this is deliberately an open object: narrowing it to a fixed field list, or folding it into the `msg` string, is precisely how a ported integration compiles and then silently loses the branch that read the bound. Absent when the error type carries no bound.","additionalProperties":true,"uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"object"},"input":{"description":"The offending input value, echoed back verbatim so a caller can see what was rejected without re-deriving it from `loc`. Any JSON type - string, number, boolean, array, object or null - so this schema is deliberately left untyped rather than narrowed to an object. Absent when the provider does not echo the input back.","uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"}},"required":["loc","msg","type"],"uniqueKey":"detail.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"detail","typeLabel":"object[]"}},"required":["detail"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"image_too_small","ctx":{},"input":"\u003cunknown>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"dbc1dd68-03ba-430f-b15e-5e9fa87095aa":{"description":"Inspect `X-Comfy-Error-Type`: `queue_backlog_full` means you already hold as many unfinished queued requests as you are allowed, so submit again once one of them finishes; `rate_limited` means wait the number of seconds in `Retry-After`. Nothing was queued or charged, and the `Idempotency-Key` is not consumed. A submit at your in-flight limit is queued rather than refused, so `concurrency_limit_exceeded` is never answered here.","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"}},"Retry-After":{"description":"Seconds to wait before sending another request after a `429` carrying `error_type: rate_limited`: the time until the caller's per-minute request allowance has refilled enough to admit one more request. It is sent on every `rate_limited` refusal and on no other answer, so it is absent on a `429` whose `X-Comfy-Error-Type` is `concurrency_limit_exceeded` or `queue_backlog_full`. Nothing the caller does drains it early; a request sent sooner is refused again and spends nothing, but gains nothing either.","required":false,"schema":{"type":"integer","minimum":1,"example":2}}},"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"},"09af12d8-407b-492e-8946-56f44db269e1":{"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`. A `503` that was refused for capacity - the in-flight request-body budget was full, or no slot was free to scan an oversized body - carries `Retry-After` naming when to re-send the identical request; a `503` raised because a dependency faulted does not, because none of those rails knows when it will recover.","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"}},"Retry-After":{"description":"Seconds to wait before re-sending the same request, unchanged. It is present only when Router refused the request body for capacity - the in-flight request-body budget was full, or no slot was free to scan an oversized body - and a capacity refusal submitted nothing and charged nothing, so re-sending the identical call once the interval has passed is the whole remedy. There is no `Idempotency-Key` to collect under and no queued request to poll for; this is the one `Retry-After` on Router that means simply \"send it again later\". It is absent on the dependency-fault `503`s that share this status - a credential rail, an idempotency store or a policy decision point that could not answer - because none of them knows when it will, and a wrong number is worse than none against a dependency that is already failing.","required":false,"schema":{"type":"integer","minimum":1,"example":4}}},"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"},"05c88273-4485-4221-8083-d11ab8ad2802":{"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"}},"security":{"e091e029-3885-4fae-a29d-6db0a3dbf401":{"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"}},"70fa993f-b840-4aca-8c44-8a701da957c8":{"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":{"8a3a1a83-7c10-43f2-899f-2773b588de10":{"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 partner model run to the queue and return immediately. - ComfyUI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1},"zh":{"href":"/zh/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1},"ja":{"href":"/ja/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1},"ko":{"href":"/ko/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1},"es":{"href":"/es/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1},"de":{"href":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":0},"ru":{"href":"/ru/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately","matchLevel":1}}},"lastModified":"2026-12-04T12:15:24.402Z","originalFileLocation":"de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately.mdx","locale":"de"},"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=\"Comfy Router\u0026#x27;s queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.\">\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 partner model run to the queue and return immediately. - ComfyUI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Comfy Router\u0026#x27;s queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ComfyUI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\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+partner+model+run+to+the+queue+and+return+immediately.\u0026amp;description=Comfy+Router%27s+queued+delivery+mode.+The+request+body+is+the+same+partner-native+JSON+input+%60POST+%2Fv2%2Fmodels%2F%7Bprovider%7D%2F%7Bmodel%7D%60+accepts+for+this+model+-+one+bo\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=f7538887f795d1eda401f26e98648008de71e7da4251f1c282b68a248dfdecb7\">\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 partner model run to the queue and return immediately. - ComfyUI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Comfy Router\u0026#x27;s queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dripart.mintlify.site/_mintlify/api/og/v2?division=Comfy+Router\u0026amp;title=Submit+a+partner+model+run+to+the+queue+and+return+immediately.\u0026amp;description=Comfy+Router%27s+queued+delivery+mode.+The+request+body+is+the+same+partner-native+JSON+input+%60POST+%2Fv2%2Fmodels%2F%7Bprovider%7D%2F%7Bmodel%7D%60+accepts+for+this+model+-+one+bo\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=f7538887f795d1eda401f26e98648008de71e7da4251f1c282b68a248dfdecb7\">\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/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.comfy.org/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.comfy.org/zh/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.comfy.org/ja/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.comfy.org/ko/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.comfy.org/es/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.comfy.org/ru/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.comfy.org/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\">\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/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately#webpage\",\"url\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\",\"name\":\"Submit a partner model run to the queue and return immediately.\",\"description\":\"Comfy Router's queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.\",\"dateModified\":\"2026-12-04T12:15:24.402Z\",\"isPartOf\":{\"@id\":\"https://docs.comfy.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Referenz\",\"item\":\"https://docs.comfy.org/de/development/comfy-router/reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API-Referenz\",\"item\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/list-the-models-comfy-router-can-run\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Comfy Router\",\"item\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/list-the-models-comfy-router-can-run\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Submit a partner model run to the queue and return immediately.\",\"item\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately#apireference\",\"headline\":\"Submit a partner model run to the queue and return immediately.\",\"name\":\"Submit a partner model run to the queue and return immediately.\",\"description\":\"Comfy Router's queued delivery mode. The request body is the same partner-native JSON input POST /v2/models/{provider}/{model} accepts for this model - one body shape, one per-model schema, two delivery modes - but this route does not hold the connection for the result. It admits the run, answers 201 with a handle, and the caller collects the result later through the three reads below.\",\"url\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately\",\"mainEntityOfPage\":{\"@id\":\"https://docs.comfy.org/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately#webpage\"},\"dateModified\":\"2026-12-04T12:15:24.402Z\",\"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":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately.md","siteName":"ComfyUI","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"}]},{"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-partner-model-run-to-the-queue-and-return-immediately"}]},{"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"}},"pages":[{"title":"ja","href":"/ja/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"}]},{"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-partner-model-run-to-the-queue-and-return-immediately"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"}]},{"language":"de","tabs":[{"tab":"Erste Schritte","pages":[{"title":"Erste Schritte","href":"/de"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/de/basic-concepts/workflow"}]},{"tab":"Comfy Router","pages":[{"title":"Comfy Router Schnellstart","sidebarTitle":"Schnellstart","href":"/de/development/comfy-router/quickstart"},{"group":"Router API","pages":[{"title":"Comfy Router API: Überblick","sidebarTitle":"Überblick","href":"/de/development/comfy-router/api"},{"title":"Comfy Router-Modelle entdecken","sidebarTitle":"Modelle entdecken","href":"/de/development/comfy-router/discover-models"},{"title":"Comfy Router: Modellschemas und Ergebnisse","sidebarTitle":"Schemas und Ergebnisse","href":"/de/development/comfy-router/schemas"},{"title":"Comfy Router-Anfragen in die Warteschlange stellen","sidebarTitle":"Anfragen in Warteschlange","href":"/de/development/comfy-router/queue"},{"title":"Comfy Router: Fehler und erneute Versuche","sidebarTitle":"Fehler und erneute Versuche","href":"/de/development/comfy-router/errors"},{"title":"Abrechnung bei Comfy Router","sidebarTitle":"Abrechnung","href":"/de/development/comfy-router/billing"},{"title":"Comfy Router mit LiteLLM verwenden","sidebarTitle":"LiteLLM","href":"/de/development/comfy-router/litellm"},{"title":"Comfy Router Echtzeitmodelle","sidebarTitle":"Echtzeitmodelle","href":"/de/development/comfy-router/realtime"},{"title":"Kling 4.0 Elemente und Stimmen in Comfy Router","sidebarTitle":"Kling 4.0 Elemente und Stimmen","href":"/de/development/comfy-router/kling-4-0-elements-voices"},{"title":"Von der Stability API zu Comfy Router migrieren","sidebarTitle":"Von der Stability API migrieren","href":"/de/development/comfy-router/stability-migration"}]},{"group":"Referenz","pages":[{"title":"Comfy Router API-Referenz","sidebarTitle":"API-Referenz","href":"/de/development/comfy-router/reference"},{"title":"Header für Comfy Router","sidebarTitle":"Header","href":"/de/development/comfy-router/headers"},{"title":"Funktionen und Grenzen von Comfy Router","sidebarTitle":"Funktionen und Grenzen","href":"/de/development/comfy-router/limitations"},{"group":"API-Referenz","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":"/de/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":"/de/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":"/de/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":"/de/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.","description":"The per-model input and output schemas for a single Comfy Router model, served as a standalone OpenAPI document, so a caller - an SDK, a codegen tool, or an agent - can discover a model's arguments, and the shape of what it returns, without reading Comfy's prose docs. It is the discovery mechanism the SDK quickstart depends on.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}/openapi.json","href":"/de/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":"/de/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"},{"title":"Collect the result of one submitted request.","description":"The collect endpoint. On a request that has finished successfully it returns the partner model's own native output, byte for byte what the synchronous route's `200` carries for the same model and the same input - so the two delivery modes produce one result shape and a caller can move between them without a second parser.","deprecated":null,"version":null,"openapi":"/router-openapi.yaml get /v2/models/{provider}/{model}/requests/{request_id}","href":"/de/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":"/de/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":"/de/api-reference/router/comfy-router/read-the-queue-state-of-one-submitted-request"}]}]}]},{"group":"Modelle","pages":[{"title":"Comfy Router-Modelle","sidebarTitle":"Alle Modelle","href":"/de/development/comfy-router/models"},{"title":"Comfy Router Preise","sidebarTitle":"Preise","href":"/de/development/comfy-router/pricing"},{"title":"Serving-Anbieter im Comfy Router","sidebarTitle":"Serving-Anbieter","href":"/de/development/comfy-router/providers"},{"group":"Alle Modelle","pages":[{"group":"Anthropic","pages":[{"title":"Claude Fable 5.1 mit Comfy Router verwenden","sidebarTitle":"Claude Fable 5.1","href":"/de/development/comfy-router/models/anthropic/claude-fable-5-1/code"},{"title":"Claude Fable 5.2 mit Comfy Router verwenden","sidebarTitle":"Claude Fable 5.2","href":"/de/development/comfy-router/models/anthropic/claude-fable-5-2/code"},{"title":"Claude Fable 5 mit Comfy Router verwenden","sidebarTitle":"Claude Fable 5","href":"/de/development/comfy-router/models/anthropic/claude-fable-5/code"},{"title":"Claude Haiku 4.5 20251001 mit Comfy Router verwenden","sidebarTitle":"Claude Haiku 4.5 20251001","href":"/de/development/comfy-router/models/anthropic/claude-haiku-4-5-20251001/code"},{"title":"Claude Opus 4.6 mit Comfy Router verwenden","sidebarTitle":"Claude Opus 4.6","href":"/de/development/comfy-router/models/anthropic/claude-opus-4-6/code"},{"title":"Claude Opus 4.7 mit Comfy Router verwenden","sidebarTitle":"Claude Opus 4.7","href":"/de/development/comfy-router/models/anthropic/claude-opus-4-7/code"},{"title":"Claude Opus 4.8 mit Comfy Router verwenden","sidebarTitle":"Claude Opus 4.8","href":"/de/development/comfy-router/models/anthropic/claude-opus-4-8/code"},{"title":"Claude Opus 5.5 mit Comfy Router verwenden","sidebarTitle":"Claude Opus 5.5","href":"/de/development/comfy-router/models/anthropic/claude-opus-5-5/code"},{"title":"Claude Opus 5 mit Comfy Router verwenden","sidebarTitle":"Claude Opus 5","href":"/de/development/comfy-router/models/anthropic/claude-opus-5/code"},{"title":"Claude Sonnet 4.6 mit Comfy Router verwenden","sidebarTitle":"Claude Sonnet 4.6","href":"/de/development/comfy-router/models/anthropic/claude-sonnet-4-6/code"},{"title":"Claude Sonnet 5.5 mit Comfy Router verwenden","sidebarTitle":"Claude Sonnet 5.5","href":"/de/development/comfy-router/models/anthropic/claude-sonnet-5-5/code"},{"title":"Claude Sonnet 5 mit Comfy Router verwenden","sidebarTitle":"Claude Sonnet 5","href":"/de/development/comfy-router/models/anthropic/claude-sonnet-5/code"}]},{"group":"Beeble","pages":[{"title":"SwitchX mit Comfy Router verwenden","sidebarTitle":"SwitchX","href":"/de/development/comfy-router/models/beeble/switchx/code"}]},{"group":"Black Forest Labs","pages":[{"title":"Erase V1 mit Comfy Router verwenden","sidebarTitle":"Erase V1","href":"/de/development/comfy-router/models/black-forest-labs/erase-v1/code"},{"title":"Flux 1.1 Pro Ultra Image mit Comfy Router verwenden","sidebarTitle":"Flux 1.1 Pro Ultra Image","href":"/de/development/comfy-router/models/black-forest-labs/flux-1-1-pro-ultra-image/code"},{"title":"FLUX.1 Kontext mit Comfy Router verwenden","sidebarTitle":"FLUX.1 Kontext","href":"/de/development/comfy-router/models/black-forest-labs/flux-1-kontext/code"},{"title":"FLUX 2 Max mit Comfy Router verwenden","sidebarTitle":"FLUX 2 Max","href":"/de/development/comfy-router/models/black-forest-labs/flux-2-max/code"},{"title":"FLUX 2 Pro mit Comfy Router verwenden","sidebarTitle":"FLUX 2 Pro","href":"/de/development/comfy-router/models/black-forest-labs/flux-2-pro/code"},{"title":"FLUX 3.1 Image mit Comfy Router verwenden","sidebarTitle":"FLUX 3.1 Image","href":"/de/development/comfy-router/models/black-forest-labs/flux-3-1-image/code"},{"title":"FLUX 3 Image mit Comfy Router verwenden","sidebarTitle":"FLUX 3 Image","href":"/de/development/comfy-router/models/black-forest-labs/flux-3-image/code"},{"title":"FLUX 3 Video mit Comfy Router verwenden","sidebarTitle":"FLUX 3 Video","href":"/de/development/comfy-router/models/black-forest-labs/flux-3-video/code"},{"title":"FLUX Pro 1.0 Expand mit Comfy Router verwenden","sidebarTitle":"FLUX Pro 1.0 Expand","href":"/de/development/comfy-router/models/black-forest-labs/flux-pro-1-0-expand/code"},{"title":"FLUX Pro 1.0 Fill mit Comfy Router verwenden","sidebarTitle":"FLUX Pro 1.0 Fill","href":"/de/development/comfy-router/models/black-forest-labs/flux-pro-1-0-fill/code"},{"title":"FLUX Video Upscale mit Comfy Router verwenden","sidebarTitle":"FLUX Video Upscale","href":"/de/development/comfy-router/models/black-forest-labs/flux-video-upscale/code"},{"title":"Video Edit V1 mit Comfy Router verwenden","sidebarTitle":"Video Edit V1","href":"/de/development/comfy-router/models/black-forest-labs/video-edit-v1/code"},{"title":"VTO V1 mit Comfy Router verwenden","sidebarTitle":"VTO V1","href":"/de/development/comfy-router/models/black-forest-labs/vto-v1/code"}]},{"group":"Bria","pages":[{"title":"Fibo mit Comfy Router verwenden","sidebarTitle":"Fibo","href":"/de/development/comfy-router/models/bria/fibo/code"},{"title":"Image Edit Add Object By Text mit Comfy Router verwenden","sidebarTitle":"Image Edit Add Object By Text","href":"/de/development/comfy-router/models/bria/image-edit-add-object-by-text/code"},{"title":"Image Edit Erase By Text mit Comfy Router verwenden","sidebarTitle":"Image Edit Erase By Text","href":"/de/development/comfy-router/models/bria/image-edit-erase-by-text/code"},{"title":"Image Edit Erase Foreground mit Comfy Router verwenden","sidebarTitle":"Image Edit Erase Foreground","href":"/de/development/comfy-router/models/bria/image-edit-erase-foreground/code"},{"title":"Image Edit Erase mit Comfy Router verwenden","sidebarTitle":"Image Edit Erase","href":"/de/development/comfy-router/models/bria/image-edit-erase/code"},{"title":"Image Edit Expand mit Comfy Router verwenden","sidebarTitle":"Image Edit Expand","href":"/de/development/comfy-router/models/bria/image-edit-expand/code"},{"title":"Image Edit Gen Fill mit Comfy Router verwenden","sidebarTitle":"Image Edit Gen Fill","href":"/de/development/comfy-router/models/bria/image-edit-gen-fill/code"},{"title":"Image Edit Increase Resolution mit Comfy Router verwenden","sidebarTitle":"Image Edit Increase Resolution","href":"/de/development/comfy-router/models/bria/image-edit-increase-resolution/code"},{"title":"Image Edit Product Holding mit Comfy Router verwenden","sidebarTitle":"Image Edit Product Holding","href":"/de/development/comfy-router/models/bria/image-edit-product-holding/code"},{"title":"Image Edit Product Virtual Tryon mit Comfy Router verwenden","sidebarTitle":"Image Edit Product Virtual Tryon","href":"/de/development/comfy-router/models/bria/image-edit-product-virtual-tryon/code"},{"title":"Image Edit Relight mit Comfy Router verwenden","sidebarTitle":"Image Edit Relight","href":"/de/development/comfy-router/models/bria/image-edit-relight/code"},{"title":"Image Edit Remove Background Guided mit Comfy Router verwenden","sidebarTitle":"Image Edit Remove Background Guided","href":"/de/development/comfy-router/models/bria/image-edit-remove-background-guided/code"},{"title":"Image Edit Remove Background mit Comfy Router verwenden","sidebarTitle":"Image Edit Remove Background","href":"/de/development/comfy-router/models/bria/image-edit-remove-background/code"},{"title":"Image Edit Replace Background mit Comfy Router verwenden","sidebarTitle":"Image Edit Replace Background","href":"/de/development/comfy-router/models/bria/image-edit-replace-background/code"},{"title":"Image Edit Replace Object By Text mit Comfy Router verwenden","sidebarTitle":"Image Edit Replace Object By Text","href":"/de/development/comfy-router/models/bria/image-edit-replace-object-by-text/code"},{"title":"Image Edit Reseason mit Comfy Router verwenden","sidebarTitle":"Image Edit Reseason","href":"/de/development/comfy-router/models/bria/image-edit-reseason/code"},{"title":"Image Edit Restore mit Comfy Router verwenden","sidebarTitle":"Image Edit Restore","href":"/de/development/comfy-router/models/bria/image-edit-restore/code"},{"title":"Image Upscale Exact mit Comfy Router verwenden","sidebarTitle":"Image Upscale Exact","href":"/de/development/comfy-router/models/bria/image-upscale-exact/code"},{"title":"Image mit Comfy Router verwenden","sidebarTitle":"Image","href":"/de/development/comfy-router/models/bria/image/code"},{"title":"Video Edit Erase mit Comfy Router verwenden","sidebarTitle":"Video Edit Erase","href":"/de/development/comfy-router/models/bria/video-edit-erase/code"},{"title":"Video Edit Green Screen mit Comfy Router verwenden","sidebarTitle":"Video Edit Green Screen","href":"/de/development/comfy-router/models/bria/video-edit-green-screen/code"},{"title":"Video Edit Remove Background mit Comfy Router verwenden","sidebarTitle":"Video Edit Remove Background","href":"/de/development/comfy-router/models/bria/video-edit-remove-background/code"},{"title":"Video Edit Replace Background mit Comfy Router verwenden","sidebarTitle":"Video Edit Replace Background","href":"/de/development/comfy-router/models/bria/video-edit-replace-background/code"}]},{"group":"BytePlus","pages":[{"title":"Dreamina Seedance 2.0 260128 mit Comfy Router verwenden","sidebarTitle":"Dreamina Seedance 2.0 260128","href":"/de/development/comfy-router/models/byteplus/dreamina-seedance-2-0-260128/code"},{"title":"Dreamina Seedance 2.0 Fast 260128 mit Comfy Router verwenden","sidebarTitle":"Dreamina Seedance 2.0 Fast 260128","href":"/de/development/comfy-router/models/byteplus/dreamina-seedance-2-0-fast-260128/code"},{"title":"Dreamina Seedance 2.0 Mini mit Comfy Router verwenden","sidebarTitle":"Dreamina Seedance 2.0 Mini","href":"/de/development/comfy-router/models/byteplus/dreamina-seedance-2-0-mini/code"},{"title":"Dreamina Seedance 2.5 260628 mit Comfy Router verwenden","sidebarTitle":"Dreamina Seedance 2.5 260628","href":"/de/development/comfy-router/models/byteplus/dreamina-seedance-2-5-260628/code"},{"title":"Dreamina Seedance 2.5 Flash 261115 mit Comfy Router verwenden","sidebarTitle":"Dreamina Seedance 2.5 Flash 261115","href":"/de/development/comfy-router/models/byteplus/dreamina-seedance-2-5-flash-261115/code"},{"title":"Seed 2.0 Lite 260228 mit Comfy Router verwenden","sidebarTitle":"Seed 2.0 Lite 260228","href":"/de/development/comfy-router/models/byteplus/seed-2-0-lite-260228/code"},{"title":"Seed 2.0 Mini 260215 mit Comfy Router verwenden","sidebarTitle":"Seed 2.0 Mini 260215","href":"/de/development/comfy-router/models/byteplus/seed-2-0-mini-260215/code"},{"title":"Seed 2.0 Pro 260328 mit Comfy Router verwenden","sidebarTitle":"Seed 2.0 Pro 260328","href":"/de/development/comfy-router/models/byteplus/seed-2-0-pro-260328/code"},{"title":"Seed Audio 1.0 Multilingual mit Comfy Router verwenden","sidebarTitle":"Seed Audio 1.0 Multilingual","href":"/de/development/comfy-router/models/byteplus/seed-audio-1-0-multilingual/code"},{"title":"Seed Audio 1.0 mit Comfy Router verwenden","sidebarTitle":"Seed Audio 1.0","href":"/de/development/comfy-router/models/byteplus/seed-audio-1-0/code"},{"title":"Seed Audio 1.5 261128 mit Comfy Router verwenden","sidebarTitle":"Seed Audio 1.5 261128","href":"/de/development/comfy-router/models/byteplus/seed-audio-1-5-261128/code"},{"title":"Seedance 1.0 Pro 250528 mit Comfy Router verwenden","sidebarTitle":"Seedance 1.0 Pro 250528","href":"/de/development/comfy-router/models/byteplus/seedance-1-0-pro-250528/code"},{"title":"Seedance 1.0 Pro Fast 251015 mit Comfy Router verwenden","sidebarTitle":"Seedance 1.0 Pro Fast 251015","href":"/de/development/comfy-router/models/byteplus/seedance-1-0-pro-fast-251015/code"},{"title":"Seedream 4.0 250828 mit Comfy Router verwenden","sidebarTitle":"Seedream 4.0 250828","href":"/de/development/comfy-router/models/byteplus/seedream-4-0-250828/code"},{"title":"Seedream 4.5 251128 mit Comfy Router verwenden","sidebarTitle":"Seedream 4.5 251128","href":"/de/development/comfy-router/models/byteplus/seedream-4-5-251128/code"},{"title":"Seedream 5.0 260128 mit Comfy Router verwenden","sidebarTitle":"Seedream 5.0 260128","href":"/de/development/comfy-router/models/byteplus/seedream-5-0-260128/code"},{"title":"Seedream 5.0 Flash 260915 mit Comfy Router verwenden","sidebarTitle":"Seedream 5.0 Flash 260915","href":"/de/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code"},{"title":"Seedream 5.0 Pro 260628 mit Comfy Router verwenden","sidebarTitle":"Seedream 5.0 Pro 260628","href":"/de/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code"},{"title":"Seedream 5.5 261028 mit Comfy Router verwenden","sidebarTitle":"Seedream 5.5 261028","href":"/de/development/comfy-router/models/byteplus/seedream-5-5-261028/code"}]},{"group":"Byteplusomnihuman","pages":[{"title":"Omnihuman 2.0 mit Comfy Router verwenden","sidebarTitle":"Omnihuman 2.0","href":"/de/development/comfy-router/models/byteplusomnihuman/omnihuman-2-0/code"}]},{"group":"Cartwheel","pages":[{"title":"Swing Choreo mit Comfy Router verwenden","sidebarTitle":"Swing Choreo","href":"/de/development/comfy-router/models/cartwheel/swing-choreo/code"},{"title":"Swing Sketch mit Comfy Router verwenden","sidebarTitle":"Swing Sketch","href":"/de/development/comfy-router/models/cartwheel/swing-sketch/code"}]},{"group":"Elevenlabs","pages":[{"title":"Eleven Multilingual V2 mit Comfy Router verwenden","sidebarTitle":"Eleven Multilingual V2","href":"/de/development/comfy-router/models/elevenlabs/eleven-multilingual-v2/code"},{"title":"Eleven Sfx V2 mit Comfy Router verwenden","sidebarTitle":"Eleven Sfx V2","href":"/de/development/comfy-router/models/elevenlabs/eleven-sfx-v2/code"},{"title":"Eleven Sfx V3 mit Comfy Router verwenden","sidebarTitle":"Eleven Sfx V3","href":"/de/development/comfy-router/models/elevenlabs/eleven-sfx-v3/code"},{"title":"Eleven V3 mit Comfy Router verwenden","sidebarTitle":"Eleven V3","href":"/de/development/comfy-router/models/elevenlabs/eleven-v3/code"},{"title":"Eleven V4 Turbo mit Comfy Router verwenden","sidebarTitle":"Eleven V4 Turbo","href":"/de/development/comfy-router/models/elevenlabs/eleven-v4-turbo/code"},{"title":"Eleven V4 mit Comfy Router verwenden","sidebarTitle":"Eleven V4","href":"/de/development/comfy-router/models/elevenlabs/eleven-v4/code"}]},{"group":"fal","pages":[{"title":"Crystal Upscaler mit Comfy Router verwenden","sidebarTitle":"Crystal Upscaler","href":"/de/development/comfy-router/models/fal/crystal-upscaler/code"},{"title":"Crystal Video Upscaler mit Comfy Router verwenden","sidebarTitle":"Crystal Video Upscaler","href":"/de/development/comfy-router/models/fal/crystal-video-upscaler/code"},{"title":"FLUX 3 Max mit Comfy Router verwenden","sidebarTitle":"FLUX 3 Max","href":"/de/development/comfy-router/models/fal/flux-3-max/code"},{"title":"H3 Max Turbo mit Comfy Router verwenden","sidebarTitle":"H3 Max Turbo","href":"/de/development/comfy-router/models/fal/h3-max-turbo/code"},{"title":"H3 Max mit Comfy Router verwenden","sidebarTitle":"H3 Max","href":"/de/development/comfy-router/models/fal/h3-max/code"},{"title":"Patina mit Comfy Router verwenden","sidebarTitle":"Patina","href":"/de/development/comfy-router/models/fal/patina/code"}]},{"group":"Freepik","pages":[{"title":"AI Image Relight mit Comfy Router verwenden","sidebarTitle":"AI Image Relight","href":"/de/development/comfy-router/models/freepik/ai-image-relight/code"},{"title":"AI Image Style Transfer mit Comfy Router verwenden","sidebarTitle":"AI Image Style Transfer","href":"/de/development/comfy-router/models/freepik/ai-image-style-transfer/code"},{"title":"AI Image Upscaler Precision V2 mit Comfy Router verwenden","sidebarTitle":"AI Image Upscaler Precision V2","href":"/de/development/comfy-router/models/freepik/ai-image-upscaler-precision-v2/code"},{"title":"AI Skin Enhancer Creative mit Comfy Router verwenden","sidebarTitle":"AI Skin Enhancer Creative","href":"/de/development/comfy-router/models/freepik/ai-skin-enhancer-creative/code"},{"title":"AI Skin Enhancer Faithful mit Comfy Router verwenden","sidebarTitle":"AI Skin Enhancer Faithful","href":"/de/development/comfy-router/models/freepik/ai-skin-enhancer-faithful/code"},{"title":"AI Skin Enhancer Flexible mit Comfy Router verwenden","sidebarTitle":"AI Skin Enhancer Flexible","href":"/de/development/comfy-router/models/freepik/ai-skin-enhancer-flexible/code"}]},{"group":"Gemini Interactions","pages":[{"title":"Gemini Omni 1.1 Flash mit Comfy Router verwenden","sidebarTitle":"Gemini Omni 1.1 Flash","href":"/de/development/comfy-router/models/gemini-interactions/gemini-omni-1-1-flash/code"},{"title":"Gemini Omni 1.2 Flash mit Comfy Router verwenden","sidebarTitle":"Gemini Omni 1.2 Flash","href":"/de/development/comfy-router/models/gemini-interactions/gemini-omni-1-2-flash/code"},{"title":"Gemini Omni Flash Preview mit Comfy Router verwenden","sidebarTitle":"Gemini Omni Flash Preview","href":"/de/development/comfy-router/models/gemini-interactions/gemini-omni-flash-preview/code"},{"title":"Lyria 3.5 mit Comfy Router verwenden","sidebarTitle":"Lyria 3.5","href":"/de/development/comfy-router/models/gemini-interactions/lyria-3-5/code"}]},{"group":"Google","pages":[{"title":"Gemini 2.5 Flash Image mit Comfy Router verwenden","sidebarTitle":"Gemini 2.5 Flash Image","href":"/de/development/comfy-router/models/google/gemini-2-5-flash-image/code"},{"title":"Gemini 3.1 Flash Lite mit Comfy Router verwenden","sidebarTitle":"Gemini 3.1 Flash Lite","href":"/de/development/comfy-router/models/google/gemini-3-1-flash-lite/code"},{"title":"Gemini 3.7 Flash mit Comfy Router verwenden","sidebarTitle":"Gemini 3.7 Flash","href":"/de/development/comfy-router/models/google/gemini-3-7-flash/code"},{"title":"Gemini 3.8 Flash mit Comfy Router verwenden","sidebarTitle":"Gemini 3.8 Flash","href":"/de/development/comfy-router/models/google/gemini-3-8-flash/code"},{"title":"Gemini 4 Argon mit Comfy Router verwenden","sidebarTitle":"Gemini 4 Argon","href":"/de/development/comfy-router/models/google/gemini-4-argon/code"},{"title":"Gemini 4 Carbon mit Comfy Router verwenden","sidebarTitle":"Gemini 4 Carbon","href":"/de/development/comfy-router/models/google/gemini-4-carbon/code"},{"title":"Gemini 4 Hydrogen mit Comfy Router verwenden","sidebarTitle":"Gemini 4 Hydrogen","href":"/de/development/comfy-router/models/google/gemini-4-hydrogen/code"},{"title":"Gemini 4 Neon mit Comfy Router verwenden","sidebarTitle":"Gemini 4 Neon","href":"/de/development/comfy-router/models/google/gemini-4-neon/code"},{"title":"Gemini Nano Banana 2.1 mit Comfy Router verwenden","sidebarTitle":"Gemini Nano Banana 2.1","href":"/de/development/comfy-router/models/google/gemini-nano-banana-2-1/code"},{"title":"Google Gemini mit Comfy Router verwenden","sidebarTitle":"Google Gemini","href":"/de/development/comfy-router/models/google/gemini/code"},{"title":"Nano Banana 2 Lite mit Comfy Router verwenden","sidebarTitle":"Nano Banana 2 Lite","href":"/de/development/comfy-router/models/google/nano-banana-2-lite/code"},{"title":"Nano Banana 2 mit Comfy Router verwenden","sidebarTitle":"Nano Banana 2","href":"/de/development/comfy-router/models/google/nano-banana-2/code"},{"title":"Nano Banana Pro mit Comfy Router verwenden","sidebarTitle":"Nano Banana Pro","href":"/de/development/comfy-router/models/google/nano-banana-pro/code"}]},{"group":"HeyGen","pages":[{"title":"Starfish mit Comfy Router verwenden","sidebarTitle":"Starfish","href":"/de/development/comfy-router/models/heygen/starfish/code"}]},{"group":"Higgsfield","pages":[{"title":"Higgsfield Genjutsu Motion Transfer V1.0 mit Comfy Router verwenden","sidebarTitle":"Higgsfield Genjutsu Motion Transfer V1.0","href":"/de/development/comfy-router/models/higgsfield/higgsfield-genjutsu-motion-transfer-v1-0/code"},{"title":"Higgsfield Kling 3.4k mit Comfy Router verwenden","sidebarTitle":"Higgsfield Kling 3.4k","href":"/de/development/comfy-router/models/higgsfield/higgsfield-kling-3-4k/code"},{"title":"Higgsfield Kling 3 Pro mit Comfy Router verwenden","sidebarTitle":"Higgsfield Kling 3 Pro","href":"/de/development/comfy-router/models/higgsfield/higgsfield-kling-3-pro/code"}]},{"group":"Ideogram","pages":[{"title":"Ideogram 4.5 mit Comfy Router verwenden","sidebarTitle":"Ideogram 4.5","href":"/de/development/comfy-router/models/ideogram/ideogram-4-5/code"},{"title":"Ideogram 4.6 mit Comfy Router verwenden","sidebarTitle":"Ideogram 4.6","href":"/de/development/comfy-router/models/ideogram/ideogram-4-6/code"},{"title":"Ideogram V3 mit Comfy Router verwenden","sidebarTitle":"Ideogram V3","href":"/de/development/comfy-router/models/ideogram/ideogram-v3/code"},{"title":"Ideogram 4.0 mit Comfy Router verwenden","sidebarTitle":"Ideogram 4.0","href":"/de/development/comfy-router/models/ideogram/ideogram-v4/code"},{"title":"P Image Ideogram mit Comfy Router verwenden","sidebarTitle":"P Image Ideogram","href":"/de/development/comfy-router/models/ideogram/p-image-ideogram/code"}]},{"group":"Kelly","pages":[{"title":"Kelly Kling 4.0 mit Comfy Router verwenden","sidebarTitle":"Kelly Kling 4.0","href":"/de/development/comfy-router/models/kelly/kelly-kling-4-0/code"},{"title":"Kelly Seedance 2.0 Fast mit Comfy Router verwenden","sidebarTitle":"Kelly Seedance 2.0 Fast","href":"/de/development/comfy-router/models/kelly/kelly-seedance-2-0-fast/code"},{"title":"Kelly Seedance 2.0 mit Comfy Router verwenden","sidebarTitle":"Kelly Seedance 2.0","href":"/de/development/comfy-router/models/kelly/kelly-seedance-2-0/code"},{"title":"Kelly Seedance 2.5 mit Comfy Router verwenden","sidebarTitle":"Kelly Seedance 2.5","href":"/de/development/comfy-router/models/kelly/kelly-seedance-2-5/code"}]},{"group":"Kling","pages":[{"title":"Kling 3.0 Turbo mit Comfy Router verwenden","sidebarTitle":"Kling 3.0 Turbo","href":"/de/development/comfy-router/models/kling/kling-3-0-turbo/code"},{"title":"Kling 4.0 Flash mit Comfy Router verwenden","sidebarTitle":"Kling 4.0 Flash","href":"/de/development/comfy-router/models/kling/kling-4-0-flash/code"},{"title":"Kling 4.0 mit Comfy Router verwenden","sidebarTitle":"Kling 4.0","href":"/de/development/comfy-router/models/kling/kling-4-0/code"},{"title":"Kling Image 4.0 mit Comfy Router verwenden","sidebarTitle":"Kling Image 4.0","href":"/de/development/comfy-router/models/kling/kling-image-4-0/code"},{"title":"Kling Image O1 mit Comfy Router verwenden","sidebarTitle":"Kling Image O1","href":"/de/development/comfy-router/models/kling/kling-image-o1/code"},{"title":"Kling Long Image 4.0 mit Comfy Router verwenden","sidebarTitle":"Kling Long Image 4.0","href":"/de/development/comfy-router/models/kling/kling-long-image-4-0/code"},{"title":"Kling V2.5 Turbo mit Comfy Router verwenden","sidebarTitle":"Kling V2.5 Turbo","href":"/de/development/comfy-router/models/kling/kling-v2-5-turbo/code"},{"title":"Kling V2.6 mit Comfy Router verwenden","sidebarTitle":"Kling V2.6","href":"/de/development/comfy-router/models/kling/kling-v2-6/code"},{"title":"Kling V3 Omni mit Comfy Router verwenden","sidebarTitle":"Kling V3 Omni","href":"/de/development/comfy-router/models/kling/kling-v3-omni/code"},{"title":"Kling V3 mit Comfy Router verwenden","sidebarTitle":"Kling V3","href":"/de/development/comfy-router/models/kling/kling-v3/code"},{"title":"Kling Video O1 mit Comfy Router verwenden","sidebarTitle":"Kling Video O1","href":"/de/development/comfy-router/models/kling/kling-video-o1/code"},{"title":"Videos Avatar Image 2video mit Comfy Router verwenden","sidebarTitle":"Videos Avatar Image 2video","href":"/de/development/comfy-router/models/kling/videos-avatar-image2video/code"},{"title":"Videos Lip Sync mit Comfy Router verwenden","sidebarTitle":"Videos Lip Sync","href":"/de/development/comfy-router/models/kling/videos-lip-sync/code"}]},{"group":"Krea","pages":[{"title":"Krea 2 Large mit Comfy Router verwenden","sidebarTitle":"Krea 2 Large","href":"/de/development/comfy-router/models/krea/krea-2-large/code"},{"title":"Krea 2 Medium Turbo mit Comfy Router verwenden","sidebarTitle":"Krea 2 Medium Turbo","href":"/de/development/comfy-router/models/krea/krea-2-medium-turbo/code"},{"title":"Krea 2 Medium mit Comfy Router verwenden","sidebarTitle":"Krea 2 Medium","href":"/de/development/comfy-router/models/krea/krea-2-medium/code"},{"title":"Krea 2 mit Comfy Router verwenden","sidebarTitle":"Krea 2","href":"/de/development/comfy-router/models/krea/krea-2/code"},{"title":"Krea 3 mit Comfy Router verwenden","sidebarTitle":"Krea 3","href":"/de/development/comfy-router/models/krea/krea-3/code"}]},{"group":"LTX","pages":[{"title":"LTX 2.5 Fast mit Comfy Router verwenden","sidebarTitle":"LTX 2.5 Fast","href":"/de/development/comfy-router/models/ltx/ltx-2-5-fast/code"},{"title":"LTX 2.5 Pro mit Comfy Router verwenden","sidebarTitle":"LTX 2.5 Pro","href":"/de/development/comfy-router/models/ltx/ltx-2-5-pro/code"},{"title":"LTX Video Alpha Gen mit Comfy Router verwenden","sidebarTitle":"LTX Video Alpha Gen","href":"/de/development/comfy-router/models/ltx/ltx-video-alpha-gen/code"},{"title":"LTX Video Compositing mit Comfy Router verwenden","sidebarTitle":"LTX Video Compositing","href":"/de/development/comfy-router/models/ltx/ltx-video-compositing/code"},{"title":"LTX Video To Video Hdr mit Comfy Router verwenden","sidebarTitle":"LTX Video To Video Hdr","href":"/de/development/comfy-router/models/ltx/ltx-video-to-video-hdr/code"},{"title":"LTX Video To Video Reframe mit Comfy Router verwenden","sidebarTitle":"LTX Video To Video Reframe","href":"/de/development/comfy-router/models/ltx/ltx-video-to-video-reframe/code"},{"title":"LTX Video Upscale mit Comfy Router verwenden","sidebarTitle":"LTX Video Upscale","href":"/de/development/comfy-router/models/ltx/ltx-video-upscale/code"}]},{"group":"Luma 2","pages":[{"title":"Ray 3.2 mit Comfy Router verwenden","sidebarTitle":"Ray 3.2","href":"/de/development/comfy-router/models/luma_2/ray-3-2/code"},{"title":"Uni 1 Max mit Comfy Router verwenden","sidebarTitle":"Uni 1 Max","href":"/de/development/comfy-router/models/luma_2/uni-1-max/code"},{"title":"Uni 1 mit Comfy Router verwenden","sidebarTitle":"Uni 1","href":"/de/development/comfy-router/models/luma_2/uni-1/code"}]},{"group":"Meshy","pages":[{"title":"Animationen mit Comfy Router verwenden","sidebarTitle":"Animationen","href":"/de/development/comfy-router/models/meshy/animations/code"},{"title":"Meshy 6 mit Comfy Router verwenden","sidebarTitle":"Meshy 6","href":"/de/development/comfy-router/models/meshy/meshy-6/code"},{"title":"Meshy 7.1 mit Comfy Router verwenden","sidebarTitle":"Meshy 7.1","href":"/de/development/comfy-router/models/meshy/meshy-7-1/code"},{"title":"Meshy 7 mit Comfy Router verwenden","sidebarTitle":"Meshy 7","href":"/de/development/comfy-router/models/meshy/meshy-7/code"},{"title":"Meshy N1 mit Comfy Router verwenden","sidebarTitle":"Meshy N1","href":"/de/development/comfy-router/models/meshy/meshy-n1/code"},{"title":"Relief mit Comfy Router verwenden","sidebarTitle":"Relief","href":"/de/development/comfy-router/models/meshy/relief/code"},{"title":"Remesh mit Comfy Router verwenden","sidebarTitle":"Remesh","href":"/de/development/comfy-router/models/meshy/remesh/code"},{"title":"Rigging mit Comfy Router verwenden","sidebarTitle":"Rigging","href":"/de/development/comfy-router/models/meshy/rigging/code"}]},{"group":"MiniMax","pages":[{"title":"MiniMax H3 Image Highspeed mit Comfy Router verwenden","sidebarTitle":"MiniMax H3 Image Highspeed","href":"/de/development/comfy-router/models/minimax/minimax-h3-image-highspeed/code"},{"title":"MiniMax H3 Image mit Comfy Router verwenden","sidebarTitle":"MiniMax H3 Image","href":"/de/development/comfy-router/models/minimax/minimax-h3-image/code"},{"title":"MiniMax H3 mit Comfy Router verwenden","sidebarTitle":"MiniMax H3","href":"/de/development/comfy-router/models/minimax/minimax-h3/code"}]},{"group":"OpenAI","pages":[{"title":"GPT 4.1 Mini mit Comfy Router verwenden","sidebarTitle":"GPT 4.1 Mini","href":"/de/development/comfy-router/models/openai/gpt-4-1-mini/code"},{"title":"GPT 4.1 mit Comfy Router verwenden","sidebarTitle":"GPT 4.1","href":"/de/development/comfy-router/models/openai/gpt-4-1/code"},{"title":"GPT 4o mit Comfy Router verwenden","sidebarTitle":"GPT 4o","href":"/de/development/comfy-router/models/openai/gpt-4o/code"},{"title":"GPT 5.5 Pro mit Comfy Router verwenden","sidebarTitle":"GPT 5.5 Pro","href":"/de/development/comfy-router/models/openai/gpt-5-5-pro/code"},{"title":"GPT 5.5 mit Comfy Router verwenden","sidebarTitle":"GPT 5.5","href":"/de/development/comfy-router/models/openai/gpt-5-5/code"},{"title":"GPT 5.6 Luna mit Comfy Router verwenden","sidebarTitle":"GPT 5.6 Luna","href":"/de/development/comfy-router/models/openai/gpt-5-6-luna/code"},{"title":"GPT 5.6 Sol mit Comfy Router verwenden","sidebarTitle":"GPT 5.6 Sol","href":"/de/development/comfy-router/models/openai/gpt-5-6-sol/code"},{"title":"GPT 5.6 Terra mit Comfy Router verwenden","sidebarTitle":"GPT 5.6 Terra","href":"/de/development/comfy-router/models/openai/gpt-5-6-terra/code"},{"title":"GPT 5 Mini mit Comfy Router verwenden","sidebarTitle":"GPT 5 Mini","href":"/de/development/comfy-router/models/openai/gpt-5-mini/code"},{"title":"GPT 5 Nano mit Comfy Router verwenden","sidebarTitle":"GPT 5 Nano","href":"/de/development/comfy-router/models/openai/gpt-5-nano/code"},{"title":"GPT 5 mit Comfy Router verwenden","sidebarTitle":"GPT 5","href":"/de/development/comfy-router/models/openai/gpt-5/code"},{"title":"GPT 6.1 Sol mit Comfy Router verwenden","sidebarTitle":"GPT 6.1 Sol","href":"/de/development/comfy-router/models/openai/gpt-6-1-sol/code"},{"title":"GPT 6.1 Terra mit Comfy Router verwenden","sidebarTitle":"GPT 6.1 Terra","href":"/de/development/comfy-router/models/openai/gpt-6-1-terra/code"},{"title":"GPT 6.2 Astra mit Comfy Router verwenden","sidebarTitle":"GPT 6.2 Astra","href":"/de/development/comfy-router/models/openai/gpt-6-2-astra/code"},{"title":"GPT 6.2 Sol mit Comfy Router verwenden","sidebarTitle":"GPT 6.2 Sol","href":"/de/development/comfy-router/models/openai/gpt-6-2-sol/code"},{"title":"GPT 6 Astra mit Comfy Router verwenden","sidebarTitle":"GPT 6 Astra","href":"/de/development/comfy-router/models/openai/gpt-6-astra/code"},{"title":"GPT 6 Luna mit Comfy Router verwenden","sidebarTitle":"GPT 6 Luna","href":"/de/development/comfy-router/models/openai/gpt-6-luna/code"},{"title":"GPT 6 Sol mit Comfy Router verwenden","sidebarTitle":"GPT 6 Sol","href":"/de/development/comfy-router/models/openai/gpt-6-sol/code"},{"title":"GPT Image 1.5 mit Comfy Router verwenden","sidebarTitle":"GPT Image 1.5","href":"/de/development/comfy-router/models/openai/gpt-image-1-5/code"},{"title":"GPT Image 2.5 Flare mit Comfy Router verwenden","sidebarTitle":"GPT Image 2.5 Flare","href":"/de/development/comfy-router/models/openai/gpt-image-2-5-flare/code"},{"title":"GPT Image 2.5 Sunburst mit Comfy Router verwenden","sidebarTitle":"GPT Image 2.5 Sunburst","href":"/de/development/comfy-router/models/openai/gpt-image-2-5-sunburst/code"},{"title":"GPT Image 2.6 Flare mit Comfy Router verwenden","sidebarTitle":"GPT Image 2.6 Flare","href":"/de/development/comfy-router/models/openai/gpt-image-2-6-flare/code"},{"title":"GPT Image 2.6 Sunburst mit Comfy Router verwenden","sidebarTitle":"GPT Image 2.6 Sunburst","href":"/de/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code"},{"title":"GPT Image 2 mit Comfy Router verwenden","sidebarTitle":"GPT Image 2","href":"/de/development/comfy-router/models/openai/gpt-image-2/code"},{"title":"o3 mit Comfy Router verwenden","sidebarTitle":"o3","href":"/de/development/comfy-router/models/openai/o3/code"}]},{"group":"Openrouter","pages":[{"title":"Chat Completions mit Comfy Router verwenden","sidebarTitle":"Chat Completions","href":"/de/development/comfy-router/models/openrouter/chat-completions/code"},{"title":"Bilder mit Comfy Router verwenden","sidebarTitle":"Bilder","href":"/de/development/comfy-router/models/openrouter/images/code"}]},{"group":"Pika","pages":[{"title":"Pika 2.5 Image To Video mit Comfy Router verwenden","sidebarTitle":"Pika 2.5 Image To Video","href":"/de/development/comfy-router/models/pika/pika-2-5-image-to-video/code"},{"title":"Pika 2.5 Text zu Video mit Comfy Router verwenden","sidebarTitle":"Pika 2.5 Text zu Video","href":"/de/development/comfy-router/models/pika/pika-2-5-text-to-video/code"},{"title":"Pika H3 Flex Image To Video mit Comfy Router verwenden","sidebarTitle":"Pika H3 Flex Image To Video","href":"/de/development/comfy-router/models/pika/pika-h3-flex-image-to-video/code"},{"title":"Pika H3 Flex Reference To Video mit Comfy Router verwenden","sidebarTitle":"Pika H3 Flex Reference To Video","href":"/de/development/comfy-router/models/pika/pika-h3-flex-reference-to-video/code"},{"title":"Pika H3 Flex Text To Video mit Comfy Router verwenden","sidebarTitle":"Pika H3 Flex Text To Video","href":"/de/development/comfy-router/models/pika/pika-h3-flex-text-to-video/code"},{"title":"Pika Music mit Comfy Router verwenden","sidebarTitle":"Pika Music","href":"/de/development/comfy-router/models/pika/pika-music/code"},{"title":"Pika Soundtrack mit Comfy Router verwenden","sidebarTitle":"Pika Soundtrack","href":"/de/development/comfy-router/models/pika/pika-soundtrack/code"}]},{"group":"Pixverse","pages":[{"title":"V3.5 mit Comfy Router verwenden","sidebarTitle":"V3.5","href":"/de/development/comfy-router/models/pixverse/v3-5/code"},{"title":"V6 Max mit Comfy Router verwenden","sidebarTitle":"V6 Max","href":"/de/development/comfy-router/models/pixverse/v6-max/code"},{"title":"V6 mit Comfy Router verwenden","sidebarTitle":"V6","href":"/de/development/comfy-router/models/pixverse/v6/code"}]},{"group":"Pruna","pages":[{"title":"P Video 2 Pro Avatar mit Comfy Router verwenden","sidebarTitle":"P Video 2 Pro Avatar","href":"/de/development/comfy-router/models/pruna/p-video-2-pro-avatar/code"},{"title":"P Video 2 Pro Reference mit Comfy Router verwenden","sidebarTitle":"P Video 2 Pro Reference","href":"/de/development/comfy-router/models/pruna/p-video-2-pro-reference/code"},{"title":"P Video 2 mit Comfy Router verwenden","sidebarTitle":"P Video 2","href":"/de/development/comfy-router/models/pruna/p-video-2/code"},{"title":"P Video Upscale mit Comfy Router verwenden","sidebarTitle":"P Video Upscale","href":"/de/development/comfy-router/models/pruna/p-video-upscale/code"}]},{"group":"Quiver","pages":[{"title":"Arrow 2 Telos mit Comfy Router verwenden","sidebarTitle":"Arrow 2 Telos","href":"/de/development/comfy-router/models/quiver/arrow-2-telos/code"},{"title":"Arrow 2 mit Comfy Router verwenden","sidebarTitle":"Arrow 2","href":"/de/development/comfy-router/models/quiver/arrow-2/code"}]},{"group":"Qwen","pages":[{"title":"Qwen Image 3.0 Pro mit Comfy Router verwenden","sidebarTitle":"Qwen Image 3.0 Pro","href":"/de/development/comfy-router/models/qwen/qwen-image-3-0-pro/code"},{"title":"Qwen Image 3.0 mit Comfy Router verwenden","sidebarTitle":"Qwen Image 3.0","href":"/de/development/comfy-router/models/qwen/qwen-image-3-0/code"}]},{"group":"Recraft","pages":[{"title":"Images Vectorize mit Comfy Router verwenden","sidebarTitle":"Images Vectorize","href":"/de/development/comfy-router/models/recraft/images-vectorize/code"},{"title":"Recraft V2 mit Comfy Router verwenden","sidebarTitle":"Recraft V2","href":"/de/development/comfy-router/models/recraft/recraftv2/code"},{"title":"Recraft V3 mit Comfy Router verwenden","sidebarTitle":"Recraft V3","href":"/de/development/comfy-router/models/recraft/recraftv3/code"},{"title":"Recraft V4.1 Flash V2 mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Flash V2","href":"/de/development/comfy-router/models/recraft/recraftv4-1-flash-v2/code"},{"title":"Recraft V4.1 Pro Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Pro Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-1-pro-vector/code"},{"title":"Recraft V4.1 Pro mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Pro","href":"/de/development/comfy-router/models/recraft/recraftv4-1-pro/code"},{"title":"Recraft V4.1 Utility Pro Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Utility Pro Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-1-utility-pro-vector/code"},{"title":"Recraft V4.1 Utility Pro mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Utility Pro","href":"/de/development/comfy-router/models/recraft/recraftv4-1-utility-pro/code"},{"title":"Recraft V4.1 Utility Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Utility Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-1-utility-vector/code"},{"title":"Recraft V4.1 Utility mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Utility","href":"/de/development/comfy-router/models/recraft/recraftv4-1-utility/code"},{"title":"Recraft V4.1 Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1 Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-1-vector/code"},{"title":"Recraft V4.1 mit Comfy Router verwenden","sidebarTitle":"Recraft V4.1","href":"/de/development/comfy-router/models/recraft/recraftv4-1/code"},{"title":"Recraft V4 Pro mit Comfy Router verwenden","sidebarTitle":"Recraft V4 Pro","href":"/de/development/comfy-router/models/recraft/recraftv4-pro/code"},{"title":"Recraft V4 Styles Pro Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4 Styles Pro Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-styles-pro-vector/code"},{"title":"Recraft V4 Styles Pro mit Comfy Router verwenden","sidebarTitle":"Recraft V4 Styles Pro","href":"/de/development/comfy-router/models/recraft/recraftv4-styles-pro/code"},{"title":"Recraft V4 Styles Vector mit Comfy Router verwenden","sidebarTitle":"Recraft V4 Styles Vector","href":"/de/development/comfy-router/models/recraft/recraftv4-styles-vector/code"},{"title":"Recraft V4 Styles mit Comfy Router verwenden","sidebarTitle":"Recraft V4 Styles","href":"/de/development/comfy-router/models/recraft/recraftv4-styles/code"},{"title":"Recraft V4 mit Comfy Router verwenden","sidebarTitle":"Recraft V4","href":"/de/development/comfy-router/models/recraft/recraftv4/code"}]},{"group":"Runway","pages":[{"title":"Aleph 2 mit Comfy Router verwenden","sidebarTitle":"Aleph 2","href":"/de/development/comfy-router/models/runway/aleph2/code"},{"title":"Gen 4 Image mit Comfy Router verwenden","sidebarTitle":"Gen 4 Image","href":"/de/development/comfy-router/models/runway/gen4-image/code"},{"title":"Gen 4 Turbo mit Comfy Router verwenden","sidebarTitle":"Gen 4 Turbo","href":"/de/development/comfy-router/models/runway/gen4-turbo/code"}]},{"group":"Sandbase","pages":[{"title":"Magi 2 Image To Video mit Comfy Router verwenden","sidebarTitle":"Magi 2 Image To Video","href":"/de/development/comfy-router/models/sandbase/magi-2-image-to-video/code"},{"title":"Magi 2 Reference To Video mit Comfy Router verwenden","sidebarTitle":"Magi 2 Reference To Video","href":"/de/development/comfy-router/models/sandbase/magi-2-reference-to-video/code"},{"title":"Magi 2 Text To Video mit Comfy Router verwenden","sidebarTitle":"Magi 2 Text To Video","href":"/de/development/comfy-router/models/sandbase/magi-2-text-to-video/code"}]},{"group":"Stability","pages":[{"title":"Control Sketch mit Comfy Router verwenden","sidebarTitle":"Control Sketch","href":"/de/development/comfy-router/models/stability/control-sketch/code"},{"title":"Control Structure mit Comfy Router verwenden","sidebarTitle":"Control Structure","href":"/de/development/comfy-router/models/stability/control-structure/code"},{"title":"Control Style Transfer mit Comfy Router verwenden","sidebarTitle":"Control Style Transfer","href":"/de/development/comfy-router/models/stability/control-style-transfer/code"},{"title":"Control Style mit Comfy Router verwenden","sidebarTitle":"Control Style","href":"/de/development/comfy-router/models/stability/control-style/code"},{"title":"Edit Erase mit Comfy Router verwenden","sidebarTitle":"Edit Erase","href":"/de/development/comfy-router/models/stability/edit-erase/code"},{"title":"Edit Inpaint mit Comfy Router verwenden","sidebarTitle":"Edit Inpaint","href":"/de/development/comfy-router/models/stability/edit-inpaint/code"},{"title":"Edit Outpaint mit Comfy Router verwenden","sidebarTitle":"Edit Outpaint","href":"/de/development/comfy-router/models/stability/edit-outpaint/code"},{"title":"Edit Remove Background mit Comfy Router verwenden","sidebarTitle":"Edit Remove Background","href":"/de/development/comfy-router/models/stability/edit-remove-background/code"},{"title":"Edit Replace Background And Relight mit Comfy Router verwenden","sidebarTitle":"Edit Replace Background And Relight","href":"/de/development/comfy-router/models/stability/edit-replace-background-and-relight/code"},{"title":"Edit Search And Recolor mit Comfy Router verwenden","sidebarTitle":"Edit Search And Recolor","href":"/de/development/comfy-router/models/stability/edit-search-and-recolor/code"},{"title":"Edit Search And Replace mit Comfy Router verwenden","sidebarTitle":"Edit Search And Replace","href":"/de/development/comfy-router/models/stability/edit-search-and-replace/code"},{"title":"Generate Core mit Comfy Router verwenden","sidebarTitle":"Generate Core","href":"/de/development/comfy-router/models/stability/generate-core/code"},{"title":"Generate Ultra mit Comfy Router verwenden","sidebarTitle":"Generate Ultra","href":"/de/development/comfy-router/models/stability/generate-ultra/code"},{"title":"Sd3.5 Flash mit Comfy Router verwenden","sidebarTitle":"Sd3.5 Flash","href":"/de/development/comfy-router/models/stability/sd3-5-flash/code"},{"title":"Sd3.5 Large Turbo mit Comfy Router verwenden","sidebarTitle":"Sd3.5 Large Turbo","href":"/de/development/comfy-router/models/stability/sd3-5-large-turbo/code"},{"title":"Sd3.5 Large mit Comfy Router verwenden","sidebarTitle":"Sd3.5 Large","href":"/de/development/comfy-router/models/stability/sd3-5-large/code"},{"title":"Sd3.5 Medium mit Comfy Router verwenden","sidebarTitle":"Sd3.5 Medium","href":"/de/development/comfy-router/models/stability/sd3-5-medium/code"},{"title":"Sdxl 1.0 Image To Image mit Comfy Router verwenden","sidebarTitle":"Sdxl 1.0 Image To Image","href":"/de/development/comfy-router/models/stability/sdxl-1-0-image-to-image/code"},{"title":"Sdxl 1.0 Masking mit Comfy Router verwenden","sidebarTitle":"Sdxl 1.0 Masking","href":"/de/development/comfy-router/models/stability/sdxl-1-0-masking/code"},{"title":"Sdxl 1.0 Text To Image mit Comfy Router verwenden","sidebarTitle":"Sdxl 1.0 Text To Image","href":"/de/development/comfy-router/models/stability/sdxl-1-0-text-to-image/code"},{"title":"Stable Fast 3D mit Comfy Router verwenden","sidebarTitle":"Stable Fast 3D","href":"/de/development/comfy-router/models/stability/stable-fast-3d/code"},{"title":"Stable Point Aware 3D mit Comfy Router verwenden","sidebarTitle":"Stable Point Aware 3D","href":"/de/development/comfy-router/models/stability/stable-point-aware-3d/code"},{"title":"Upscale Conservative mit Comfy Router verwenden","sidebarTitle":"Upscale Conservative","href":"/de/development/comfy-router/models/stability/upscale-conservative/code"},{"title":"Upscale Creative mit Comfy Router verwenden","sidebarTitle":"Upscale Creative","href":"/de/development/comfy-router/models/stability/upscale-creative/code"},{"title":"Upscale Fast mit Comfy Router verwenden","sidebarTitle":"Upscale Fast","href":"/de/development/comfy-router/models/stability/upscale-fast/code"}]},{"group":"Synclabs","pages":[{"title":"Sync 3 mit Comfy Router verwenden","sidebarTitle":"Sync 3","href":"/de/development/comfy-router/models/synclabs/sync-3/code"}]},{"group":"Tencent","pages":[{"title":"Hunyuan 3D Part mit Comfy Router verwenden","sidebarTitle":"Hunyuan 3D Part","href":"/de/development/comfy-router/models/tencent/hunyuan-3d-part/code"},{"title":"Hunyuan 3D Smart Topology mit Comfy Router verwenden","sidebarTitle":"Hunyuan 3D Smart Topology","href":"/de/development/comfy-router/models/tencent/hunyuan-3d-smart-topology/code"},{"title":"Hunyuan 3D Texture Edit mit Comfy Router verwenden","sidebarTitle":"Hunyuan 3D Texture Edit","href":"/de/development/comfy-router/models/tencent/hunyuan-3d-texture-edit/code"},{"title":"Hunyuan 3D Uv mit Comfy Router verwenden","sidebarTitle":"Hunyuan 3D Uv","href":"/de/development/comfy-router/models/tencent/hunyuan-3d-uv/code"},{"title":"Hunyuan Image 3.5 mit Comfy Router verwenden","sidebarTitle":"Hunyuan Image 3.5","href":"/de/development/comfy-router/models/tencent/hunyuan-image-3-5/code"},{"title":"Hy 3D 3.6 mit Comfy Router verwenden","sidebarTitle":"Hy 3D 3.6","href":"/de/development/comfy-router/models/tencent/hy-3d-3-6/code"}]},{"group":"Tripo","pages":[{"title":"P1 20260311 Image To Model mit Comfy Router verwenden","sidebarTitle":"P1 20260311 Image To Model","href":"/de/development/comfy-router/models/tripo/p1-20260311-image-to-model/code"},{"title":"P1 20260311 Multiview To Model mit Comfy Router verwenden","sidebarTitle":"P1 20260311 Multiview To Model","href":"/de/development/comfy-router/models/tripo/p1-20260311-multiview-to-model/code"},{"title":"P1 20260311 Text To Model mit Comfy Router verwenden","sidebarTitle":"P1 20260311 Text To Model","href":"/de/development/comfy-router/models/tripo/p1-20260311-text-to-model/code"},{"title":"P2 20260801 Image To Model mit Comfy Router verwenden","sidebarTitle":"P2 20260801 Image To Model","href":"/de/development/comfy-router/models/tripo/p2-20260801-image-to-model/code"},{"title":"P2 20260801 Multiview To Model mit Comfy Router verwenden","sidebarTitle":"P2 20260801 Multiview To Model","href":"/de/development/comfy-router/models/tripo/p2-20260801-multiview-to-model/code"},{"title":"P2 20260801 Text To Model mit Comfy Router verwenden","sidebarTitle":"P2 20260801 Text To Model","href":"/de/development/comfy-router/models/tripo/p2-20260801-text-to-model/code"},{"title":"V3.0 20250812 Image To Model mit Comfy Router verwenden","sidebarTitle":"V3.0 20250812 Image To Model","href":"/de/development/comfy-router/models/tripo/v3-0-20250812-image-to-model/code"},{"title":"V3.0 20250812 Multiview To Model mit Comfy Router verwenden","sidebarTitle":"V3.0 20250812 Multiview To Model","href":"/de/development/comfy-router/models/tripo/v3-0-20250812-multiview-to-model/code"},{"title":"V3.0 20250812 Text To Model mit Comfy Router verwenden","sidebarTitle":"V3.0 20250812 Text To Model","href":"/de/development/comfy-router/models/tripo/v3-0-20250812-text-to-model/code"},{"title":"V3.1 20260211 Image To Model mit Comfy Router verwenden","sidebarTitle":"V3.1 20260211 Image To Model","href":"/de/development/comfy-router/models/tripo/v3-1-20260211-image-to-model/code"},{"title":"V3.1 20260211 Multiview To Model mit Comfy Router verwenden","sidebarTitle":"V3.1 20260211 Multiview To Model","href":"/de/development/comfy-router/models/tripo/v3-1-20260211-multiview-to-model/code"},{"title":"V3.1 20260211 Text To Model mit Comfy Router verwenden","sidebarTitle":"V3.1 20260211 Text To Model","href":"/de/development/comfy-router/models/tripo/v3-1-20260211-text-to-model/code"}]},{"group":"Typesafe","pages":[{"title":"Jev 1.13.0 mit Comfy Router verwenden","sidebarTitle":"Jev 1.13.0","href":"/de/development/comfy-router/models/typesafe/jev-1-13-0/code"},{"title":"Jev 1.14.0 mit Comfy Router verwenden","sidebarTitle":"Jev 1.14.0","href":"/de/development/comfy-router/models/typesafe/jev-1-14-0/code"}]},{"group":"Veed","pages":[{"title":"Clean Audio Video mit Comfy Router verwenden","sidebarTitle":"Clean Audio Video","href":"/de/development/comfy-router/models/veed/clean-audio-video/code"},{"title":"Clean Audio mit Comfy Router verwenden","sidebarTitle":"Clean Audio","href":"/de/development/comfy-router/models/veed/clean-audio/code"},{"title":"Fabric 1.0 mit Comfy Router verwenden","sidebarTitle":"Fabric 1.0","href":"/de/development/comfy-router/models/veed/fabric-1-0/code"},{"title":"Fabric H3 mit Comfy Router verwenden","sidebarTitle":"Fabric H3","href":"/de/development/comfy-router/models/veed/fabric-h3/code"},{"title":"Lipsync 2.0 mit Comfy Router verwenden","sidebarTitle":"Lipsync 2.0","href":"/de/development/comfy-router/models/veed/lipsync-2-0/code"},{"title":"Video Background Removal Fast mit Comfy Router verwenden","sidebarTitle":"Video Background Removal Fast","href":"/de/development/comfy-router/models/veed/video-background-removal-fast/code"},{"title":"Video Background Removal Green Screen mit Comfy Router verwenden","sidebarTitle":"Video Background Removal Green Screen","href":"/de/development/comfy-router/models/veed/video-background-removal-green-screen/code"},{"title":"Video Background Removal mit Comfy Router verwenden","sidebarTitle":"Video Background Removal","href":"/de/development/comfy-router/models/veed/video-background-removal/code"}]},{"group":"Veo","pages":[{"title":"Veo 3.1 Fast Generate 001 mit Comfy Router verwenden","sidebarTitle":"Veo 3.1 Fast Generate 001","href":"/de/development/comfy-router/models/veo/veo-3-1-fast-generate-001/code"},{"title":"Veo 3.1 Generate 001 mit Comfy Router verwenden","sidebarTitle":"Veo 3.1 Generate 001","href":"/de/development/comfy-router/models/veo/veo-3-1-generate-001/code"},{"title":"Veo 3.1 Lite Generate 001 mit Comfy Router verwenden","sidebarTitle":"Veo 3.1 Lite Generate 001","href":"/de/development/comfy-router/models/veo/veo-3-1-lite-generate-001/code"}]},{"group":"Viggle","pages":[{"title":"Jst 2 Scene View mit Comfy Router verwenden","sidebarTitle":"Jst 2 Scene View","href":"/de/development/comfy-router/models/viggle/jst-2-scene-view/code"},{"title":"Jst 2 Scene mit Comfy Router verwenden","sidebarTitle":"Jst 2 Scene","href":"/de/development/comfy-router/models/viggle/jst-2-scene/code"},{"title":"Motion Capture mit Comfy Router verwenden","sidebarTitle":"Motion Capture","href":"/de/development/comfy-router/models/viggle/motion-capture/code"},{"title":"Text To Motion mit Comfy Router verwenden","sidebarTitle":"Text To Motion","href":"/de/development/comfy-router/models/viggle/text-to-motion/code"},{"title":"Video Remix mit Comfy Router verwenden","sidebarTitle":"Video Remix","href":"/de/development/comfy-router/models/viggle/video-remix/code"}]},{"group":"Wan","pages":[{"title":"HappyHorse 1.0 I2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.0 I2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-0-i2v/code"},{"title":"HappyHorse 1.0 R2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.0 R2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-0-r2v/code"},{"title":"HappyHorse 1.0 T2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.0 T2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-0-t2v/code"},{"title":"HappyHorse 1.0 Video Edit mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.0 Video Edit","href":"/de/development/comfy-router/models/wan/happyhorse-1-0-video-edit/code"},{"title":"HappyHorse 1.1 I2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.1 I2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-1-i2v/code"},{"title":"HappyHorse 1.1 R2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.1 R2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-1-r2v/code"},{"title":"HappyHorse 1.1 T2V mit Comfy Router verwenden","sidebarTitle":"HappyHorse 1.1 T2V","href":"/de/development/comfy-router/models/wan/happyhorse-1-1-t2v/code"},{"title":"Wan 2.5 I2I Preview mit Comfy Router verwenden","sidebarTitle":"Wan 2.5 I2I Preview","href":"/de/development/comfy-router/models/wan/wan2-5-i2i-preview/code"},{"title":"Wan 2.5 I2V Preview mit Comfy Router verwenden","sidebarTitle":"Wan 2.5 I2V Preview","href":"/de/development/comfy-router/models/wan/wan2-5-i2v-preview/code"},{"title":"Wan 2.5 T2I Preview mit Comfy Router verwenden","sidebarTitle":"Wan 2.5 T2I Preview","href":"/de/development/comfy-router/models/wan/wan2-5-t2i-preview/code"},{"title":"Wan 2.5 T2V Preview mit Comfy Router verwenden","sidebarTitle":"Wan 2.5 T2V Preview","href":"/de/development/comfy-router/models/wan/wan2-5-t2v-preview/code"},{"title":"Wan 2.6 I2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.6 I2V","href":"/de/development/comfy-router/models/wan/wan2-6-i2v/code"},{"title":"Wan 2.6 R2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.6 R2V","href":"/de/development/comfy-router/models/wan/wan2-6-r2v/code"},{"title":"Wan 2.6 T2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.6 T2V","href":"/de/development/comfy-router/models/wan/wan2-6-t2v/code"},{"title":"Wan 2.7 I2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.7 I2V","href":"/de/development/comfy-router/models/wan/wan2-7-i2v/code"},{"title":"Wan 2.7 R2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.7 R2V","href":"/de/development/comfy-router/models/wan/wan2-7-r2v/code"},{"title":"Wan 2.7 T2V mit Comfy Router verwenden","sidebarTitle":"Wan 2.7 T2V","href":"/de/development/comfy-router/models/wan/wan2-7-t2v/code"},{"title":"Wan 2.7 Video Edit mit Comfy Router verwenden","sidebarTitle":"Wan 2.7 Video Edit","href":"/de/development/comfy-router/models/wan/wan2-7-videoedit/code"},{"title":"Wan 3.0 Video Prime mit Comfy Router verwenden","sidebarTitle":"Wan 3.0 Video Prime","href":"/de/development/comfy-router/models/wan/wan3-0-video-prime/code"},{"title":"Wan 3.0 Video mit Comfy Router verwenden","sidebarTitle":"Wan 3.0 Video","href":"/de/development/comfy-router/models/wan/wan3-0-video/code"}]},{"group":"WaveSpeed","pages":[{"title":"Flashvsr mit Comfy Router verwenden","sidebarTitle":"Flashvsr","href":"/de/development/comfy-router/models/wavespeed/flashvsr/code"},{"title":"Seedvr 2 mit Comfy Router verwenden","sidebarTitle":"Seedvr 2","href":"/de/development/comfy-router/models/wavespeed/seedvr2/code"},{"title":"Ultimate Image Upscaler mit Comfy Router verwenden","sidebarTitle":"Ultimate Image Upscaler","href":"/de/development/comfy-router/models/wavespeed/ultimate-image-upscaler/code"}]},{"group":"xAI","pages":[{"title":"Grok Imagine Image 2.0 mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Image 2.0","href":"/de/development/comfy-router/models/xai/grok-imagine-image-2-0/code"},{"title":"Grok Imagine Image Pro mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Image Pro","href":"/de/development/comfy-router/models/xai/grok-imagine-image-pro/code"},{"title":"Grok Imagine Image Quality mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Image Quality","href":"/de/development/comfy-router/models/xai/grok-imagine-image-quality/code"},{"title":"Grok Imagine Image mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Image","href":"/de/development/comfy-router/models/xai/grok-imagine-image/code"},{"title":"Grok Imagine Video 1.5 Lite mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Video 1.5 Lite","href":"/de/development/comfy-router/models/xai/grok-imagine-video-1-5-lite/code"},{"title":"Grok Imagine Video 1.5 Preview mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Video 1.5 Preview","href":"/de/development/comfy-router/models/xai/grok-imagine-video-1-5-preview/code"},{"title":"Grok Imagine Video 1.5 mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Video 1.5","href":"/de/development/comfy-router/models/xai/grok-imagine-video-1-5/code"},{"title":"Grok Imagine Video mit Comfy Router verwenden","sidebarTitle":"Grok Imagine Video","href":"/de/development/comfy-router/models/xai/grok-imagine-video/code"}]}]}]}]},{"tab":"Agent-Tools","pages":[{"title":"Agent-Tools","href":"/de/agent-tools"}]},{"tab":"Entwickler","pages":[{"title":"Entwickler","href":"/de/development/overview"}]},{"tab":"Rankings","pages":[{"title":"Rankings","href":"/de/rankings"}]},{"tab":"Support","pages":[{"title":"Support","href":"/de/support/contact-support"}]}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/api-reference/router/comfy-router/submit-a-partner-model-run-to-the-queue-and-return-immediately"}]}]},"basePath":"","title":"Submit a partner model run to the queue and return immediately. - ComfyUI","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}