blib-la / runpod-worker-comfy

ComfyUI as a serverless API on RunPod
GNU Affero General Public License v3.0
301 stars 205 forks source link

what does integers mean in the workflow json? #50

Open kilimchoi opened 3 months ago

kilimchoi commented 3 months ago

I'm currently transitioning from a1111 to the comfy UI API, and I'm looking for documentation that explains the meaning of each parameter in the workflow JSON. I'm confused about the source of numbers like "3" and "135." in

TimPietrusky commented 3 months ago

@kilimchoi the numbers represent the ID of the node in ComfyUI. ComfyUI is then using these IDs to connect the nodes together. In JSON, each key must be a String, so even when those are valid integers, they are converted to strings.

Is there anything else you need?