Nodes/Sage Utils/Parse Metadata Flexible
ComfyUI Node

Parse Metadata Flexible

Parses A1111 Full format metadata string and extracts individual components. Returns parsed values for positive prompt, negative prompt, sampler info (sampler, scheduler, cfg, steps, seed), dimensions (width, height), and attempts to find models and LoRAs by hash in the local cache.

By arcum42·Created 2 years ago·Updated 24 days ago· 32
Parse Metadata Flexible
  • default_model_info
  • positive_string
  • negative_string
  • seed
  • steps
  • cfg
  • sampler_name
  • scheduler
  • width
  • height
  • model_info
  • lora_stack
metadata_string
default_seed0
default_steps20
default_cfg7.0
default_samplereuler
default_schedulernormal
default_width1024
default_height1024
CategorySage Utils/metadata

Inputs (9)

NameTypeDefaultDescription
metadata_stringSTRINGThe metadata string to parse.
default_seedoptINT0Default seed used when the metadata does not specify one.
default_stepsoptINT201–10000Default steps used when the metadata does not specify them.
default_cfgoptFLOAT7.00–100Default CFG scale used when the metadata does not specify it.
default_sampleroptCOMBOeulerDefault sampler to use when the metadata string does not specify one.
default_scheduleroptCOMBOnormalDefault scheduler to use when the metadata string does not specify one.
default_widthoptINT1024Default width used when the metadata does not specify dimensions.
default_heightoptINT1024Default height used when the metadata does not specify dimensions.
default_model_infooptMODEL_INFODefault model info used when the metadata string does not identify a model.

Outputs (11)

NameTypeDescription
positive_stringSTRINGExtracted positive prompt string.
negative_stringSTRINGExtracted negative prompt string.
seedINTExtracted seed value.
stepsINTExtracted number of steps.
cfgFLOATExtracted CFG scale.
sampler_nameCOMBOExtracted sampler name.
schedulerCOMBOExtracted scheduler name.
widthINTExtracted image width.
heightINTExtracted image height.
model_infoMODEL_INFOExtracted default model info from metadata, if available.
lora_stackLORA_STACKExtracted LoRA stack information from the metadata.