SamplingFull Capture

KSampler

class_type: KSampler

Source repo

The primary sampling node in ComfyUI. Runs the diffusion process that transforms random noise into a coherent image using a model, positive/negative conditioning, and configurable parameters like seed, steps, CFG scale, and sampler algorithm.

What It Does

KSampler is the heart of most ComfyUI workflows. It takes a loaded model, positive and negative conditioning (prompts encoded by CLIP), and a latent image, then iteratively denoises the latent space to produce an image.

The node exposes all critical generation parameters: seed (for reproducibility), steps (iteration count), CFG scale (prompt adherence strength), sampler name (euler, dpmpp_2m, etc.), scheduler (normal, karras, exponential), and denoise strength. These parameters directly control image quality and style.

For provenance, KSampler is the most important node to capture—its parameters are the primary determinants of the generated output alongside the prompt and model.

Inputs

modelMODEL

The loaded diffusion model.

positiveCONDITIONING

Positive prompt conditioning from CLIPTextEncode.

negativeCONDITIONING

Negative prompt conditioning.

latent_imageLATENT

Input latent (from EmptyLatentImage or VAEEncode).

seedINT

Random seed for reproducibility.

stepsINT

Number of denoising steps.

cfgFLOAT

Classifier-free guidance scale.

sampler_nameSTRING

Sampling algorithm (euler, dpmpp_2m, etc.).

schedulerSTRING

Noise schedule (normal, karras, exponential).

denoiseFLOAToptional

Denoising strength (1.0 = full denoise).

Outputs

LATENTLATENT

Denoised latent image.

What Numonic Captures

  • Seed value (resolved, even when randomized)
  • Steps count
  • CFG scale
  • Sampler name and scheduler
  • Denoise strength
  • Full node parameter snapshot in workflow JSON

Known Gaps

  • Sampling duration — no timing data recorded
  • Intermediate step outputs — only the final latent is preserved
  • Memory usage during sampling

Related Nodes

Capture ComfyUI metadata automatically

Numonic extracts workflow metadata from every ComfyUI generation — models, samplers, seeds, prompts, and custom nodes. Track provenance, maintain compliance, and never lose a workflow.