Nodes/comfyui-tgbridge/WanVideo Model → String
ComfyUI Node

WanVideo Model → String

Turn a Wan model object into a name you can paste

By blkot·Created 2 months ago·Updated 2 months ago· 0
WanVideo Model → String
  • model
  • model_name

This is the smallest kind of ComfyUI node: one input, one output, no secrets. When Kijai's WanVideoWrapper loads a Wan model it hands you a WANVIDEOMODEL object - a fat bundle that carries the weights, the config, and the name, all traveling down a single wire. Most nodes downstream know what to do with that object. The ones that just want the name as plain text don't.

WanVideoModelToString extracts that name and gives it to you as a STRING. Wire the model socket in, get model_name out.

Why you'd reach for it

It exists mostly to feed text-only fields. The most obvious consumer is Telegram Workflow Report, the pack's big report node - but that one already accepts base_model_obj / high_model_obj / low_model_obj inputs and extracts the names itself, so you don't need this helper for it. Where this node earns its keep is anywhere else that wants the model name as a string: a filename prefix, a notes field, a generic logging node, or a report node from another pack that only takes text. When you're running Wan 2.2, the WANVIDEOMODEL object can represent any of the expert models in the MoE stack, and this node will happily pull the name out of each.

Mechanically it's exactly what you'd hope: it reads model.model["model_name"] out of the object, strips any directory path down to the basename, and falls back to "unknown" if the field isn't there. Nothing heavier happens - no file I/O, no config, no network.

Install

It ships with blkot/ComfyUI-tgBridge, so install the pack once and you get this plus the report nodes. ComfyUI Manager: search "tgBridge". Or:

cd ComfyUI/custom_nodes
git clone https://github.com/blkot/ComfyUI-tgBridge
cd ComfyUI-tgBridge
pip install -r requirements.txt

Restart ComfyUI and it appears under the Telegram category. Dependencies are Pillow and requests, no model downloads.

One honest note: as far as utility nodes go, this one is a thin convenience wrapper over something the report node already does internally. If your only goal is a pretty Telegram caption, skip it and wire the *_obj inputs directly. Reach for it when you need the name somewhere that only speaks strings.

CategoryTelegram

Inputs (1)

NameTypeDefaultDescription
modelWANVIDEOMODEL

Outputs (1)

NameTypeDescription
model_nameSTRING