ComfyUI Node
Configurable Model Router
A dynamic model router that selects one of its inputs based on a configurable JSON mapping. How to Use: 1. **Configure Logic:** Edit the `routing_config` JSON to map condition strings (e.g., `"inpainting"`) to an input index (e.g., `2`). 2. The `"default"` key is used if no other condition matches.
Configurable Model Router
- model_1
- model_2
- model_3
- model_4
- model_5
- MODEL
◄conditiondefault►
◄routing_config{
"default": 1,
"inpainting": 2,
"depth": 3,
"canny": 4
}►
CategoryFlux-Continuum/Utilities
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | STRING | default | — |
| routing_config | STRING | { "default": 1, "inpainting": 2, "depth": 3, "canny": 4 } | — |
| model_1opt | MODEL | — | |
| model_2opt | MODEL | — | |
| model_3opt | MODEL | — | |
| model_4opt | MODEL | — | |
| model_5opt | MODEL | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |