Repository navigation
What API should alternative frontends use? #15475
Replies: 4 comments
|
DOSSIER MAÎTRE DU MANGA |
|
For an alternative frontend, the practical answer is: use the classic
Decision guide:
The classic endpoint won't go away (it's the compat surface), so defaulting to |
|
There is a fourth architecture the three options above skip, and it is the one we shipped: do not build an external frontend, build an extension panel inside the official one. Context: we ship PerfectLab Studio, a node pack whose entire UI is a custom panel (625 tile pickers, a live prompt preview, session controls). No separate process, no serialized workflow in sight. How it works:
Why this beats the external-frontend framings for a product use case:
Trade-offs, so this does not read as an ad: you are bound to the official frontend's extension API (fine for us, it churns far less than API v2), you live inside the browser session rather than a standalone app, and headless/batch use still wants So the decision guide gets one more line: building a product UI on top of ComfyUI itself, where users already have the official frontend -> extension panel plus custom server routes. For standalone apps, the guide above stands. |
|
For a new standalone or alternative frontend, the current documentation recommends Comfy API v2, preferably through the official Python or TypeScript SDKs, unless you specifically need low-level local-server controls. That recommendation is now explicit in Running Workflows, and v2 has a real compatibility policy: changes within v2 are additive; breaking changes ship as v3. So I would not treat it as merely an experimental protocol anymore. The main advantages over building a new integration directly on
For self-hosted ComfyUI, run the API Proxy:
It defaults to The classic App Mode belongs to a different layer: it is an authoring/presentation mechanism for exposing selected workflow inputs and outputs as a simplified app, not a separate versioned execution API. You can use it to decide which fields your UI should expose, but execution should still go through API v2 or the classic Server API. |
Uh oh!
There was an error while loading. Please reload this page.
There's three options available in Comfy:
What does ComfyOrg suggest people be using going forward?
All reactions