Import a ComfyUI graph

Bring a ComfyUI workflow into Wavemaker in API or UI format, see what it needs that isn't here, and run it.

Updated

Bring a workflow you built in ComfyUI into Wavemaker and run it here. There are two ways in: the web app's Import graph, which takes ComfyUI's API format, and the API or the agent, which also take a workflow saved from the ComfyUI UI and convert it.

From ComfyUI to a result
  1. Export

    Save the workflow from ComfyUI.

  2. Import

    Bring it into a conversation.

  3. Check

    See what it needs that isn't here.

  4. Run

    Review the price, then run it.

Import it in the web app

  1. In ComfyUI, export the workflow in API format. The file is one JSON object keyed by node ID. A workflow saved in ComfyUI's regular format is refused here; use the API or the agent for that one (below).
  2. In Wavemaker, open Conversations, choose Source tools, then Import graph, and pick the .json file. It must be under 1 MB. Source tools shows only when you can write in the workspace.
  3. The graph opens on its Source graph page as revision 1. Choose Check graph and fix anything the banner lists; Show node jumps to the node it names.
  4. Choose Save revision, then Run. The dialog shows the expected cost and the most that will be reserved before anything runs.

Send it through the API or the agent

generate takes either format. A workflow saved from the ComfyUI UI (with nodes and links) is converted to API JSON against the node schemas Wavemaker runs. Notes, reroutes and primitive nodes are resolved, and subgraphs and group nodes are expanded the way ComfyUI's own Export (API) does it. Add validate_only: true to see the converted graph as api_graph without running or paying for anything.

When something it needs isn't here

  • `runtime_gaps`: the workflow uses a custom node or a model file that no Wavemaker runtime has. The refusal lists every one in missing_nodes and missing_models, so you can swap them for nodes and models that are here, or ask the agent which ones it can use instead.
  • `workflow_unsupported`: a widget value the conversion can't place exactly. Export the workflow in API format from ComfyUI and send that instead.
  • A graph that passes Check graph can still fail on the runtime, which has the final say; a failed run is not charged.

Take it back to ComfyUI

A result made by a graph you imported can go back out. Choose Export for ComfyUI under How it was made to download the graph exactly as it ran, with a list of what it needs. Graph requirements covers what can't be exported.

Related guidance