ComfyUI > Nodes > Basic data handling > get keys values

ComfyUI Node: get keys values

Class Name

Basic data handling: DictGetKeysValues

Category
Basic/DICT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

get keys values Description

DictGetKeysValues node extracts keys and values from a dictionary into separate lists.

get keys values:

The DictGetKeysValues node is designed to efficiently extract and separate the keys and values from a given dictionary, returning them as two distinct lists. This functionality is particularly useful when you need to manipulate or analyze the keys and values independently, such as when performing operations that require iterating over keys or values separately. By providing a straightforward method to access these components, the node simplifies the process of handling dictionary data, making it more accessible for tasks that involve data organization, transformation, or visualization. This node is an essential tool for AI artists who need to manage and utilize dictionary data effectively without delving into complex programming techniques.

get keys values Input Parameters:

input_dict

The input_dict parameter is the dictionary from which you want to extract keys and values. It serves as the primary input for the node, and its contents determine the resulting lists of keys and values. This parameter is crucial as it directly impacts the node's output, with the keys and values being derived from the dictionary provided. There are no specific minimum, maximum, or default values for this parameter, as it depends entirely on the dictionary you supply. The node expects a valid dictionary structure to function correctly.

get keys values Output Parameters:

keys

The keys output parameter is a list containing all the keys extracted from the input dictionary. This list allows you to access and utilize the keys independently, which can be beneficial for tasks such as filtering, sorting, or mapping operations. Understanding the keys in your dictionary is essential for effectively managing and manipulating your data.

values

The values output parameter is a list containing all the values corresponding to the keys in the input dictionary. This list provides a straightforward way to access and work with the values, enabling you to perform operations like aggregation, transformation, or analysis. Having a separate list of values can simplify tasks that require focusing on the data itself rather than its structure.

get keys values Usage Tips:

  • Use this node when you need to separate keys and values for independent processing, such as when performing operations that require iterating over keys or values separately.
  • Ensure that the input dictionary is correctly structured and contains the data you wish to extract, as the node's output directly depends on the input provided.
  • Consider using this node in conjunction with other nodes that require lists of keys or values as input, to streamline your data processing workflow.

get keys values Common Errors and Solutions:

Invalid dictionary input

  • Explanation: This error occurs when the input provided is not a valid dictionary, which is required for the node to function correctly.
  • Solution: Ensure that the input is a properly formatted dictionary. Check for any syntax errors or incorrect data types that might be causing the issue.

Empty dictionary input

  • Explanation: If the input dictionary is empty, the node will return empty lists for both keys and values, which might not be the expected outcome.
  • Solution: Verify that the input dictionary contains the necessary data before passing it to the node. If an empty dictionary is intentional, ensure that your workflow can handle the resulting empty lists appropriately.

get keys values Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

get keys values