Show Int
Surface an integer from a ComfyUI run through the API
- INT
ShowInt does one thing: takes an INT, displays it on the node, and - because it's marked as an output node - pushes that value into the run's websocket message so an API caller reading the result actually sees it, not just whatever ends up in a saved file. It's the integer version of a small family in comfyui-easyapi-nodes: ShowString, ShowNumber, ShowFloat, ShowBoolean all follow the identical pattern for their respective types.
The reason this needs to exist as its own node at all comes down to how ComfyUI treats output. Stock ComfyUI is built around SaveImage and PreviewImage as its output nodes - fine if the thing you care about is a picture, useless if what you actually need back is a count, an index, a computed integer that lives mid-graph and never otherwise reaches the outside world. lldacing built this pack for exactly that gap: people calling ComfyUI as an API backend (which is also how comfy.icu executes your workflow) who need scalar values, not just images, to come back in the response.
How it works
Pure pass-through with a reporting side effect. The value you feed in comes straight back out unchanged - ShowInt never breaks a chain, so you can drop it into the middle of a graph purely to make a value visible without altering anything downstream.
The inputs and outputs that matter
INT(required) - the integer to display and report. Wire in a counter, an index, a computed value, whatever integer you need visibility on.key(STRING, default"text") - the label this value is filed under in the returned message data. If you're only reporting one integer in the whole graph the default is fine; the moment you add a second Show* node, give each one a distinct key so your API client can tell them apart.- Output:
INT- the same value, unchanged, so you can keep chaining nodes after it.
How to install it
Through ComfyUI Manager: search comfyui-easyapi-nodes, install, restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/lldacing/comfyui-easyapi-nodes.git
cd comfyui-easyapi-nodes
pip install -r requirements.txt
Restart ComfyUI. No models, no heavy dependencies for this node.
Common issues & troubleshooting
I don't see the integer anywhere in my API response. It's not in the normal outputs/files section most API quick-starts parse - it rides in the run's history/websocket message data under the key you set. If you're building your first API integration against ComfyUI at all, that message channel (rather than the file outputs list) is the thing to go read.
Multiple ShowInt nodes overwrite each other. Give each one a unique key. Leaving several on the default "text" value is the most common way people lose track of which number is which once a graph has more than one probe in it.
Just using it for on-canvas debugging. Totally fine - you don't need to be hitting the API for ShowInt to earn its keep. Drop it after a counter or a math node, run the workflow, and read the number straight off the node.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| INT | INT | — | |
| key | STRING | text | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |