---
title: "KSampler & KSampler (Advanced) — ComfyUI Node Inputs, Wiring & Troubleshooting"
description: "Complete reference for KSampler & KSampler (Advanced) (Built-in Core) in ComfyUI: input pins (model, positive, negative, latent_image, seed, steps, cfg, sampler_name, scheduler, denoise), output pins (LATENT), and Windows setup."
canonical: https://comfy.ink/nodes/ksampler
updated: 2026-10-17
---

# KSampler & KSampler (Advanced)

The heart of every ComfyUI graph: iteratively denoises a latent tensor using your chosen solver, scheduler curve, and classifier-free guidance scale. Package: Built-in Core.

## Facts (2026-10-17)

- **Node / Pack:** KSampler & KSampler (Advanced)
- **Category:** sampling
- **Inputs:** model, positive, negative, latent_image, seed, steps, cfg, sampler_name, scheduler, denoise
- **Outputs:** LATENT
- **Source Pack:** Built-in Core

## What KSampler & KSampler (Advanced) does in a ComfyUI graph

The heart of every ComfyUI graph: iteratively denoises a latent tensor using your chosen solver, scheduler curve, and classifier-free guidance scale.

On the canvas, this node accepts `model, positive, negative, latent_image, seed, steps, cfg, sampler_name, scheduler, denoise` and emits `LATENT`. Every pin is color-coded by data type so you cannot accidentally wire a pixel `IMAGE` tensor into a `LATENT` pin without an intermediate encode step.

## Installation and missing-node recovery on Windows

KSampler & KSampler (Advanced) ships inside the default ComfyUI core on Windows. Double-click anywhere on the empty [Studio canvas](https://comfy.ink/studio) and type its name to drop it into your graph.

Download the full Windows desktop or portable package at [/download](https://comfy.ink/download) to get started with a clean Python 3.12 environment.

## FAQ

### How do I fix "KSampler & KSampler (Advanced)" showing up as a red box in ComfyUI?

Update your ComfyUI installation to the latest build from [/download](https://comfy.ink/download) so all recent core nodes are registered.

### What are the main inputs and outputs of KSampler & KSampler (Advanced)?

Inputs: model, positive, negative, latent_image, seed, steps, cfg, sampler_name, scheduler, denoise. Outputs: LATENT.

## Related

- [ComfyUI Nodes Reference](https://comfy.ink/nodes)
- [ComfyUI-Manager](https://comfy.ink/nodes/comfyui-manager)
- [How to Fix Red Missing Nodes in ComfyUI Workflows](https://comfy.ink/howto/fix-missing-custom-nodes-red-boxes)
- [ComfyUI Studio Workspace](https://comfy.ink/studio)
- [Wiring & Fixing KSampler & KSampler (Advanced)](https://comfy.ink/nodes/ksampler-wiring-and-fixes)

## Download

Free desktop app: [Download Comfy](https://comfy.ink/download)

Markdown mirror: https://comfy.ink/nodes/ksampler.md
