Integer Param
The seed and steps dial your backend can actually turn
- value
Seed, steps, batch size, width, height - the integer knobs are the ones every backend wants to vary per request, and they're the ones hardcoded into widgets by default. Integer Param is the pack's answer: a single INT input you can expose to your API and wire into anything that takes a whole number.
It does precisely one thing. You get a value input - an integer widget defaulting to 0 - and a value output of the same type. Feed it into a KSampler's seed or steps, an EmptyLatentImage dimension, a batch size, a count for a loop, anywhere the graph wants a whole number. The node returns whatever you typed, untouched.
The two things to know about its range
The widget's minimum is 0. That means you can't type a negative integer into it, so if some part of your workflow legitimately wants -1 (the "no seed, give me a random one" convention some setups use), this node will fight you. You'd need a ParamFloat (which does allow negatives) or a small math node to synthesize the value instead.
The maximum is effectively unbounded - the source sets it to 0xffffffffffffffff, which is about 1.8×10¹⁹, comfortably larger than any seed you'll ever hand it. So: no ceiling problem, but yes floor problem.
The pattern, in one breath
The whole pack follows the same usage convention, and it's worth repeating because it applies to every Param node here. Rename the node (right-click → Title) to the API parameter name you want, save the workflow in API format, and have your backend overwrite inputs.value for this node's class_type before queueing. The node title is the key your API call uses; the widget value is what gets swapped.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/FaraamFide/ComfyUI-ParamNodes.git
Restart ComfyUI (or install via ComfyUI Manager by searching "ComfyUI-ParamNodes"). No dependencies beyond what ComfyUI already ships, no model files. It lives under Params/Input in the Add Node menu.
There's genuinely nothing clever here - and that's the design goal of this pack. If you want a slightly richer variant, note the sibling nodes: ParamFloat for decimals like CFG and denoise, ParamBoolean for on/off toggles. But for the whole-number knobs, this is the one.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 00–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | INT | — |