Skip to content

docs(comfy-router): queued delivery preview page with a Nano Banana 2 example - #1648

Draft
mattmillerai wants to merge 1 commit into
mainfrom
matt/router-queue-preview
Draft

mattmillerai wants to merge 1 commit into
mainfrom
matt/router-queue-preview

Conversation

@mattmillerai

Copy link
Copy Markdown
Contributor

ELI-5

Comfy Router today makes you hold the phone line open until the picture is done. The queue lets you hang up, keep a ticket number, and come back for the picture later. This page shows exactly what that looks like in Python, TypeScript and cURL, using Nano Banana 2, so we can agree on the shape by reading real snippets in the preview before it goes live.

What this is

A new page, development/comfy-router/queue, in the Comfy Router nav between "Using the Router API" and "Headers", plus a one-sentence pointer from the limitations page's "No queued submission" section.

It documents the queued delivery mode as a gated preview:

  • POST /v2/models/{provider}/{model}/requests returns 201 with request_id, status, queue_position and three URLs.
  • GET .../requests/{request_id}/status returns the current state with a Retry-After hint.
  • GET .../requests/{request_id} returns the model's native output once finished, 202 with the status body while not.
  • PUT .../requests/{request_id}/cancel returns 202 CANCELLATION_REQUESTED or 400 ALREADY_COMPLETED.

The Python snippets use client.models.submit / subscribe / handle (the handle carries status(), get(), cancel(), iter_events()). TypeScript is raw fetch because the SDK methods have not landed there yet. The page states plainly that a workspace outside the preview receives 403 not_enabled.

Why a draft

The routes are not live on api.comfy.org yet. This PR exists for the Mintlify preview so the copy-paste shape can be reviewed and agreed. The "Preview notes" section at the bottom names the two contract points still under review (cancel-after-complete as 400 vs 409, and the status the result read gives a cancelled or timed-out request). It should stay a draft until the server answers these routes with 403 not_enabled in production, at which point the banner is already correct.

How this was tested

  • python3 .github/scripts/validate-links.py: all link validations passed.
  • bun run code-pages:check: 198 code pages fresh, docs.json accepted.
  • Grepped the new page for em dashes per the repo prose rule: none.
  • The Mintlify preview deployment on this PR is the review artifact.

…Banana 2 example

Adds development/comfy-router/queue.mdx documenting the queued delivery
mode (submit, status, result, cancel) with copy-paste Python, TypeScript
and cURL snippets against vertexai/gemini-3.1-flash-image, wires it into
the Comfy Router nav, and points the limitations page's 'No queued
submission' section at it. The page carries a gated-preview banner: a
workspace that is not enabled receives 403 not_enabled.
@mintlify

mintlify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
comfy 🟢 Ready View Preview Sep 10, 2026, 5:33 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🌐 i18n translation sync reminder

@comfyui-wiki English documentation was updated in this PR. Please complete or schedule translation updates for the following files:

Japanese (ja)

  • ja/development/comfy-router/limitations.mdx
  • ja/development/comfy-router/models/bria/image-edit-expand/code.mdx
  • ja/development/comfy-router/models/fal/h3-max-turbo/code.mdx
  • ja/development/comfy-router/models/fal/h3-max/code.mdx
  • ja/development/comfy-router/models/fal/patina/code.mdx
  • ja/development/comfy-router/models/heygen/starfish/code.mdx
  • ja/development/comfy-router/models/meshy/animations/code.mdx
  • ja/development/comfy-router/models/meshy/remesh/code.mdx
  • ja/development/comfy-router/models/meshy/rigging/code.mdx
  • ja/development/comfy-router/models/moonvalley/image-to-video/code.mdx
  • ja/development/comfy-router/models/moonvalley/text-to-image/code.mdx
  • ja/development/comfy-router/models/moonvalley/text-to-video/code.mdx
  • ja/development/comfy-router/models/moonvalley/video-to-video-resize/code.mdx
  • ja/development/comfy-router/models/moonvalley/video-to-video/code.mdx
  • ja/development/comfy-router/queue.mdx
  • ja/development/comfy-router/reference.mdx
  • ja/development/comfy-router/queue.mdx

Simplified Chinese (zh)

  • zh/development/comfy-router/limitations.mdx
  • zh/development/comfy-router/models/bria/image-edit-expand/code.mdx
  • zh/development/comfy-router/models/fal/h3-max-turbo/code.mdx
  • zh/development/comfy-router/models/fal/h3-max/code.mdx
  • zh/development/comfy-router/models/fal/patina/code.mdx
  • zh/development/comfy-router/models/heygen/starfish/code.mdx
  • zh/development/comfy-router/models/meshy/animations/code.mdx
  • zh/development/comfy-router/models/meshy/remesh/code.mdx
  • zh/development/comfy-router/models/meshy/rigging/code.mdx
  • zh/development/comfy-router/models/moonvalley/image-to-video/code.mdx
  • zh/development/comfy-router/models/moonvalley/text-to-image/code.mdx
  • zh/development/comfy-router/models/moonvalley/text-to-video/code.mdx
  • zh/development/comfy-router/models/moonvalley/video-to-video-resize/code.mdx
  • zh/development/comfy-router/models/moonvalley/video-to-video/code.mdx
  • zh/development/comfy-router/queue.mdx
  • zh/development/comfy-router/reference.mdx
  • zh/development/comfy-router/queue.mdx

Korean (ko)

  • ko/development/comfy-router/limitations.mdx
  • ko/development/comfy-router/models/bria/image-edit-expand/code.mdx
  • ko/development/comfy-router/models/fal/h3-max-turbo/code.mdx
  • ko/development/comfy-router/models/fal/h3-max/code.mdx
  • ko/development/comfy-router/models/fal/patina/code.mdx
  • ko/development/comfy-router/models/heygen/starfish/code.mdx
  • ko/development/comfy-router/models/meshy/animations/code.mdx
  • ko/development/comfy-router/models/meshy/remesh/code.mdx
  • ko/development/comfy-router/models/meshy/rigging/code.mdx
  • ko/development/comfy-router/models/moonvalley/image-to-video/code.mdx
  • ko/development/comfy-router/models/moonvalley/text-to-image/code.mdx
  • ko/development/comfy-router/models/moonvalley/text-to-video/code.mdx
  • ko/development/comfy-router/models/moonvalley/video-to-video-resize/code.mdx
  • ko/development/comfy-router/models/moonvalley/video-to-video/code.mdx
  • ko/development/comfy-router/queue.mdx
  • ko/development/comfy-router/reference.mdx
  • ko/development/comfy-router/queue.mdx

Local sync: npm run translate (see README — Automated translation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cursor-review Trigger Cursor automated review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant