Nodes/ComfyUI Gemini Expanded API/Get API Key from JSON
ComfyUI Node

Get API Key from JSON

A ComfyUI node in utils/api_keys with 4 inputs and 1 output.

By silveroxides·Created about a year ago·Updated 2 days ago· 5
Get API Key from JSON
    • API_KEY
    json_path./input/apikeys.json
    key_id_methodcustom
    rotation_interval0
    key_idplaceholder
    Categoryutils/api_keys

    Inputs (4)

    NameTypeDefaultDescription
    json_pathSTRING./input/apikeys.jsonPath 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_methodCOMBOcustomcustom 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_intervalINT0how many steps to jump when doing rotate.
    key_idoptSTRINGplaceholderPut name of key in the .json here if using custom in key_id_method.

    Outputs (1)

    NameTypeDescription
    API_KEYSTRING