Text Box 🐼
Text Box 🐼 — ComfyUI Node Guide
- STRING
What it is
The simplest node in this entire pack: a box you type text into. No model, no processing, no logic - just a literal string that becomes an input for the rest of your graph. ComfyUI has plenty of these scattered across different node packs (every prompt-tooling pack seems to ship its own), and this is this pack's version.
Where it earns its keep: any time you want a fixed piece of text - a translation prefix, a fragment to concatenate with an image caption, a constant label for Text2GPTPrompt's prefix fields - sitting visibly in your graph as its own node rather than buried as a default value inside another node's widget. It's also handy for A/B testing: swap the text in one Text Box node and re-run, instead of hunting through a chain of nodes to find where a hardcoded string lives.
How it works
There's nothing to explain mechanically. You type into the field, that string becomes the output. It doesn't validate, transform, or template anything - no character limit beyond whatever your text field widget tolerates, no escaping, no variable substitution. What you type is, character for character, what comes out the other side.
Inputs and outputs
- Text - a multiline string field, defaults to empty. Whatever you type here is exactly what comes out.
Single STRING output, not a list - one box, one string.
Installing it
It ships as part of the Comfyui_image2prompt pack:
cd ComfyUI/custom_nodes
git clone https://github.com/zhongpei/Comfyui_image2prompt
Or install through ComfyUI Manager by searching "Comfyui_image2prompt." (The README's own clone snippet points at a hyphenated URL that doesn't resolve - use the underscored one above.) Restart ComfyUI once it's installed. There's no model to download for this node specifically - it's the lightest thing in the whole pack.
Common issues
Honestly, there's very little that goes wrong with a text field. The only things worth flagging:
If it doesn't show up in your node list at all, that's a pack-level install problem, not something specific to this node - check the ComfyUI console at startup for an import error tied to Comfyui_image2prompt. This pack bundles several heavier VLM and LLM dependencies alongside simple utility nodes like this one, and if one of those conflicts with something else in your Python environment, the whole pack (including this trivial node) can fail to load.
Don't confuse it with Show Text, the other simple text node in this pack - Text Box is an input (you type into it), Show Text is a display/passthrough (it shows you what a previous node produced). They look similar in a node graph screenshot but do opposite jobs.
If you're only after a plain text input and don't need anything else from this pack, it's still simplest to install the whole thing rather than trying to cherry-pick - the nodes aren't packaged to be split apart.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |