ComfyUI Node Runs on cloud

Int

The node that turned the XYZ plot into a batch queue

By Comfy-Org·Created 4 years ago·Updated about 11 hours ago· 130,493
Int
    • INT
    value

    The Int node (class PrimitiveInt) is the primitive family's most quietly powerful member, because it carries the one widget the others don't: control after generate. Set it to increment, set your batch count, queue once, and ComfyUI walks through a list of values for you - the trick people used to run A1111-style XYZ comparisons in vanilla ComfyUI before the plugins existed. One of the earliest r/comfyui posts showing this exact workflow is still the canonical answer for "how do I compare models / values without a grid plugin?"

    At its face it's boring: a whole-number widget that outputs INT. But it's the workhorse behind seeds, steps, batch sizes, and every "how many times" knob in your graph.

    How it works

    One input, value: an INT spanning roughly −9.2×10¹⁸ to +9.2×10¹⁸. The output is INT and plugs into any integer socket - steps, seed, batch_size, width/height, LoRA multipliers, ControlNet strength if it expects an int. Execute is a straight pass-through.

    The interesting widget is control after generate, a small dropdown on the node. Options are essentially fixed, increment, decrement, and randomize. With a batch count of N queued, an incrementing Int walks its value up by one each run; a randomizing one rolls a new value per image. Since May 2026 core defaults it to fixed - before that, an Int primitive could silently randomize on you, which was a genuinely baffling bug to chase. If you convert a seed widget to an input, this is the node that appears, and this dropdown is exactly how seed randomization works under the hood.

    Why you'd actually reach for it

    • Seed sweeps. Convert the seed on your sampler to an input, set the Int's control to randomize (or fixed to pin it), and control variation from one visible node.
    • Batch value sweeps. Convert any integer widget - steps, CFG-adjacent multipliers, LoRA weights that take ints - to an input, set increment, batch count to how many variants you want, and queue. This is the ComfyUI-native answer to the XYZ plot.
    • Sharing one number. One Int feeding steps on several samplers in a multi-pass workflow; change one box, every pass follows.

    How you get it

    Ships with ComfyUI core, utilities/primitive. The backend primitive nodes landed in March 2025, and the frontend had been minting integer primitives from converted widgets since the early days - this is one of the oldest concepts in the UI, just formalized as a real node later. Nothing to install, no model files.

    Common issues

    • "My seed changes every run and I don't want it to." That's control after generate set to randomize - or a workflow saved before May 2026 where the default wasn't fixed yet. Set it to fixed and pin it.
    • "My sweep didn't sweep." Increment only moves when batch count is more than 1 and you queue a batch. Single-image queues advance nothing.
    • Int vs Float. Things that allow fractions (CFG, denoise) are FLOAT; things that must be whole (steps, seed, batch) are INT. Plugging a Float into an Int socket usually just won't connect. Reach for Float for fractional knobs, Int for counters.
    • Big values. The range is enormous (up to ~9.2×10¹⁸), which is a red flag if you accidentally type a huge seed or steps value - check your digits before queueing a 9-quintillion-step run.

    It's the node that quietly replaces "rerun with a different number and hope" with "queue a batch and walk away." Learn the increment trick and you'll never manually tweak seeds one at a time again.

    Categoryutilities/primitive

    Inputs (1)

    NameTypeDefaultDescription
    valueINT-9223372036854776000–9223372036854776000

    Outputs (1)

    NameTypeDescription
    INTINT