Nodes/InstaSD nodes for ComfyUI/InstaSD API Input - Integer
ComfyUI Node

InstaSD API Input - Integer

A number knob that survives being published

By WaddingtonHoldings·Created 2 years ago·Updated 10 months ago· 4
InstaSD API Input - Integer
    • int
    int1

    InstaCInteger takes a whole number and hands it back to you, unharmed, with the display name "InstaSD API Input - Integer". That name is doing all the real work: it tells InstaSD's API builder "this is a parameter the person using the workflow should be able to change."

    InstaSD (instasd.com) is the service that turns a ComfyUI workflow into a public demo page or API endpoint. The InstaSD/API_inputs nodes in this pack are how you declare which knobs appear on that page. An integer is what you reach for when the control is a count or a discrete choice: number of steps, batch size, how many images to generate, which frame to start from. On the published page it becomes a number box or stepper; inside the workflow it's just an INT value flowing down the wire.

    What you set

    • int - the value, default 1, step 1, and the input accepts the full signed 64-bit integer range (practically any number you'd ever type). Output is int, type INT.

    One input, one output, both named int. Nothing else is going on under the hood - the execute method returns exactly what it received.

    Watch the overlap with the rest of the pack: InstaCSeed is byte-for-byte the same node behaviorally, just titled for the KSampler seed slot. Use InstaCInteger for things like steps or batch counts and InstaCSeed for seeds, because the InstaSD builder presents them from their category and title - a "seed" input on a demo page reads correctly, while a generic "int" could mean anything to your end users.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/WaddingtonHoldings/ComfyUI-InstaSD
    

    Restart ComfyUI, or install through ComfyUI Manager (search "InstaSD"). The pack's requirements are boto3, Pillow, requests, and numpy; there are no model downloads and this node needs no credentials.

    Gotchas

    • Locally this is a pure pass-through - don't stare at it waiting for it to do something.
    • Mind your types when wiring: an INT doesn't accept a FLOAT input cleanly, so pair InstaCFloat with float slots and this with integer slots.
    CategoryInstaSD/API_inputs

    Inputs (1)

    NameTypeDefaultDescription
    intINT1-9223372036854776000–9223372036854776000

    Outputs (1)

    NameTypeDescription
    intINT