Nodes/Sage Utils/Model Info
ComfyUI Node

Model Info

Pull the Civitai page details out of the model you already loaded

By arcum42·Created 2 years ago·Updated 17 days ago· 32
Model Info
  • model_info
  • base_model
  • name
  • url
  • latest_url
  • image

If you've ever wanted to know "what base architecture even is this checkpoint" without alt-tabbing to Civitai and hunting for the model page, this is the node for that. It doesn't do anything to your generation - it just reaches into the metadata bundle Sage Utils already built when you loaded the model, and hands you back the human-readable bits: the base model name, the full versioned model name, the Civitai URL, whether there's a newer version, and a preview image.

How it actually works

This only makes sense once you know what a model_info object is in this pack. When you load a checkpoint through one of Sage's metadata-aware loaders (README calls it "Load Checkpoint w/ Metadata"), the pack hashes the file, looks that hash up against Civitai, and caches whatever it finds locally - the README is explicit about this: results land in sage_cache_hash.json and sage_cache_info.json under comfyui/user/default/SageUtils/. That cached bundle is the model_info object, and it flows downstream to a whole family of nodes: this one, Sage_CLIPLoaderFromInfo, Sage_VAELoaderFromInfo, Sage_ModelLoraStackLoader, and so on. Model Info is the node you use when you just want to read what's in that bundle rather than load a component from it.

Practically, this is a metadata-pipeline node: you're not going to stare at its output in isolation, you're going to route name and url into a "Construct Metadata" node so your saved PNGs carry a proper record of what model made them, or drop the image output onto a Preview Image node to sanity-check you actually loaded the checkpoint you think you did.

The inputs and outputs that matter

Just one required input, model_info (the MODEL_INFO bundle described above), and five outputs, all read straight off it:

  • base_model - the architecture Civitai's own model card lists (SDXL, Flux, Pony, etc.) - genuinely useful since ComfyUI itself won't tell you this.
  • name - the full model name including version.
  • url - the Civitai page for the version you have loaded.
  • latest_url - the URL for the newest version on that model page, so you can spot at a glance if you're running an outdated download.
  • image - a preview image pulled from Civitai.

Installing it

ComfyUI Manager: search Sage Utils, install, restart. Manual install:

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

Restart after. There's an actual requirements.txt here, so don't skip the pip install step the way you might get away with for a single-file node pack.

Common issues

The output is only as good as what's in the cache, and the cache is only populated for models Civitai actually knows about. If you loaded a locally trained checkpoint, something pulled from HuggingFace only, or anything that was never uploaded to Civitai, there's no hash match - you'll get blank or missing fields, not an error. That's expected behavior, not a bug.

The first lookup for any given model needs internet access to reach Civitai; after that it's served from the local JSON cache, so subsequent loads are instant and work offline. If Civitai itself is having one of its outages (it happens more than you'd like), a first-time lookup during that window will come back empty - retry once the site's back, the cache will fill in normally. This is also the pack that arcum42 built mainly for their own use, so if you hit something odd with an unusual model source, it's worth checking the GitHub issues before assuming user error.

CategorySage Utils/info

Inputs (1)

NameTypeDefaultDescription
model_infoMODEL_INFO

Outputs (5)

NameTypeDescription
base_modelSTRINGThe base model name from the Civitai model metadata.
nameSTRINGThe full model name including version info.
urlSTRINGThe Civitai page URL for the model.
latest_urlSTRINGThe URL of the latest version of the model.
imageIMAGEPreview image for the model from Civitai.