> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OptimalStepsScheduler - ComfyUI Built-in Node Documentation

> The OptimalStepsScheduler node creates a noise schedule (a sequence of sigma values) for use during diffusion sampling.

The OptimalStepsScheduler node creates a noise schedule (a sequence of sigma values) for use during diffusion sampling. It chooses the base noise levels from the selected model type, adjusts the schedule when denoising is partially applied, and interpolates the levels so the returned sigmas match the requested step count.

## Inputs

| Parameter    | Description                                                                                  | Data Type | Required | Range                           |
| ------------ | -------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------- |
| `model_type` | The type of diffusion model to use for the noise level calculation.                          | COMBO     | Yes      | "FLUX"<br />"Wan"<br />"Chroma" |
| `steps`      | The total number of sampling steps to calculate (default: 20).                               | INT       | Yes      | 3 to 1000                       |
| `denoise`    | Controls the denoising strength, which adjusts the effective number of steps (default: 1.0). | FLOAT     | Yes      | 0.0 to 1.0 (step: 0.01)         |

**Note:** When `denoise` is less than 1.0, the node uses `round(steps * denoise)` as the total number of effective steps. If `denoise` is 0.0, the node returns an empty tensor.

## Outputs

| Output Name | Description                                                                        | Data Type |
| ----------- | ---------------------------------------------------------------------------------- | --------- |
| `sigmas`    | A sequence of sigma values representing the noise schedule for diffusion sampling. | SIGMAS    |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OptimalStepsScheduler/en.md)

***

**Source fingerprint (SHA-256):** `fd48c94ca16c8a3d8e6f0138018e7b13c15d100d6147807bcb23d838899045b7`
