Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI_SamplingUtils > SamplingParameters

ComfyUI Node: SamplingParameters

Class Name

SamplingParameters

Category
advanced
Author
silveroxides (Account age: 2211days)
Extension
ComfyUI_SamplingUtils
Latest Updated
2026-06-03
Github Stars
0.02K

How to Install ComfyUI_SamplingUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI_SamplingUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_SamplingUtils 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

SamplingParameters Description

Advanced control over AI art generation sampling process for optimizing image quality and style through parameter adjustments.

SamplingParameters:

The SamplingParameters node is designed to provide advanced control over the sampling process in AI art generation. This node allows you to fine-tune various aspects of the sampling process, such as resolution, batch size, and the number of steps, which are crucial for achieving the desired quality and style in your generated images. By adjusting these parameters, you can influence the level of detail, the scale of the output, and the overall efficiency of the sampling process. This node is particularly beneficial for artists who want to experiment with different settings to optimize their results, offering a high degree of customization to suit various artistic needs.

SamplingParameters Input Parameters:

width

The width parameter specifies the width of the image in pixels. It allows you to define the horizontal resolution of the output, impacting the level of detail and clarity. The minimum value is 16, the maximum is determined by nodes.MAX_RESOLUTION, and the default is 1024. Adjusting this parameter can help you achieve the desired aspect ratio and detail level in your artwork.

height

The height parameter determines the vertical resolution of the image in pixels. Similar to the width, it affects the detail and clarity of the output. The minimum value is 16, the maximum is determined by nodes.MAX_RESOLUTION, and the default is 1024. This parameter is essential for setting the aspect ratio and ensuring the image fits your artistic vision.

batch_size

The batch_size parameter controls the number of images processed in a single batch. It influences the speed and efficiency of the sampling process. The minimum value is 1, the maximum is 4096, and the default is 1. Larger batch sizes can speed up processing but may require more computational resources.

scale_by

The scale_by parameter determines how much to upscale the initial resolution for the final output. It allows you to enhance the image size while maintaining quality. The minimum value is 0.0, the maximum is 10.0, and the default is 1.0. This parameter is useful for creating larger, more detailed images from smaller initial resolutions.

multiple

The multiple parameter sets the nearest multiple to which the upscaled resolution should conform. It helps in maintaining consistency in the scaling process. The minimum value is 4, the maximum is 128, and the default is 16. This parameter ensures that the final resolution is a clean multiple, which can be important for certain artistic or technical requirements.

steps

The steps parameter defines the number of steps to run the sampling process. It directly affects the quality and detail of the generated image. The minimum value is 1, the maximum is 10000, and the default is 26. More steps generally lead to higher quality images but require more processing time.

SamplingParameters Output Parameters:

None

The context does not provide specific output parameters for the SamplingParameters node. Typically, this node would influence the sampling process and indirectly affect the outputs of subsequent nodes in the workflow.

SamplingParameters Usage Tips:

  • Experiment with different width and height settings to find the perfect balance between detail and processing time for your specific project.
  • Use the scale_by parameter to create larger images from smaller resolutions without losing quality, which is particularly useful for printing or high-resolution displays.
  • Adjust the steps parameter to improve image quality, especially for complex or detailed artworks, but be mindful of the increased processing time.

SamplingParameters Common Errors and Solutions:

Resolution exceeds maximum limit

  • Explanation: The specified width or height exceeds the maximum resolution allowed by the system.
  • Solution: Reduce the width or height values to be within the allowed range defined by nodes.MAX_RESOLUTION.

Batch size too large

  • Explanation: The batch_size is set higher than the system can handle, leading to memory issues.
  • Solution: Decrease the batch_size to a value that your system can process without running out of memory.

Insufficient steps for desired quality

  • Explanation: The steps parameter is set too low, resulting in poor image quality.
  • Solution: Increase the steps value to enhance the detail and quality of the generated image.

SamplingParameters Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_SamplingUtils
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.