ComfyUI Node
Get API Key from JSON
A ComfyUI node in utils/api_keys with 4 inputs and 1 output.
Get API Key from JSON
- API_KEY
◄json_path./input/apikeys.json►
◄key_id_methodcustom►
◄rotation_interval0►
◄key_idplaceholder►
Categoryutils/api_keys
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| json_path | STRING | ./input/apikeys.json | Path to a .json file with simple top level structure with name as key and api-key as value. See example in custom node folder. |
| key_id_method | COMBO | custom | custom sets api-key to the api-key with the name set in the key_id widget. random_rotate randomly switches between keys if multiple in the .json and increment_rotate does it in order from first to last, then repeats. |
| rotation_interval | INT | 0 | how many steps to jump when doing rotate. |
| key_idopt | STRING | placeholder | Put name of key in the .json here if using custom in key_id_method. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| API_KEY | STRING | — |