Nodes/ComfyUI Flux Prompt Saver/πŸˆβ€β¬› Model Name
ComfyUI Node

πŸˆβ€β¬› Model Name

A dropdown that tells your metadata which model was used

By markuryyΒ·Created 2 years agoΒ·Updated 2 years agoΒ· 16
πŸˆβ€β¬› Model Name
    • STRING
    β—„model_nameβ–Ύβ–Ί

    The unglamorous glue node

    Model Name is the pack's quiet utility, and it solves a boring problem that wastes real time: your Flux saver needs the model's name as a plain string, but loaders hand you MODEL tensors, not a name you can type. With Flux especially - usually loaded as a UNet or diffusion model rather than a checkpoint - the loader's output isn't a friendly label at all. This node gives you one: a dropdown listing every model file it can find, plus a STRING output you wire straight into Flux Prompt Saver's model_name input. The README's framing is right: it lets you handle different model types without modifying your loaders.

    How it works

    It scans four folders - checkpoints, models, unet, and diffusion_models - through ComfyUI's folder system, merges the lists, dedupes them, and presents the result as a single dropdown. Pick one and the node outputs the filename as a string. That's the entire job, and it does it without touching a loader.

    Inputs and output

    One input, the model_name dropdown itself. One output, a STRING. Wire that string into Flux Prompt Saver's model_name input and your saved metadata reads Model: flux1-dev... instead of blank. Not using the saver? It's still handy whenever any node wants a model name string and you're tired of typing it by hand.

    Things to know

    • It outputs a filename, not a path. If checkpoints and unet both hold a file with the same name, the dedupe means you can't tell which folder it came from.
    • The list is built when the workflow loads. Drop a new model into your models folder and it won't appear until you reload ComfyUI, or at least the workflow.
    • Zero search impressions says nobody's hunting for this node specifically - and that's fair. It's a helper that makes the pack's other two nodes work. Install it once with the pack and forget about it.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/markuryy/ComfyUI-Flux-Prompt-Saver
    

    then restart ComfyUI, or use ComfyUI Manager and search "ComfyUI Flux Prompt Saver". No pip dependencies and no model files - this pack is pure Python on ComfyUI's built-ins, so there's nothing else to fetch.

    Categoryutils

    Inputs (1)

    NameTypeDefaultDescription
    model_nameCOMBO0 options:

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”