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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| metadata_string | STRING | The metadata string to parse. | |
| default_seedopt | INT | 0 | Default seed used when the metadata does not specify one. |
| default_stepsopt | INT | 201–10000 | Default steps used when the metadata does not specify them. |
| default_cfgopt | FLOAT | 7.00–100 | Default CFG scale used when the metadata does not specify it. |
| default_sampleropt | COMBO | euler | Default sampler to use when the metadata string does not specify one. |
| default_scheduleropt | COMBO | normal | Default scheduler to use when the metadata string does not specify one. |
| default_widthopt | INT | 1024 | Default width used when the metadata does not specify dimensions. |
| default_heightopt | INT | 1024 | Default height used when the metadata does not specify dimensions. |
| default_model_infoopt | MODEL_INFO | Default model info used when the metadata string does not identify a model. |
Outputs (11)
| Name | Type | Description |
|---|---|---|
| positive_string | STRING | Extracted positive prompt string. |
| negative_string | STRING | Extracted negative prompt string. |
| seed | INT | Extracted seed value. |
| steps | INT | Extracted number of steps. |
| cfg | FLOAT | Extracted CFG scale. |
| sampler_name | COMBO | Extracted sampler name. |
| scheduler | COMBO | Extracted scheduler name. |
| width | INT | Extracted image width. |
| height | INT | Extracted image height. |
| model_info | MODEL_INFO | Extracted default model info from metadata, if available. |
| lora_stack | LORA_STACK | Extracted LoRA stack information from the metadata. |