ComfyUI Silver Nodes
A collection of utility nodes for ComfyUI that enhance workflow capabilities with advanced loaders and processing tools.
Nodes (17)
Pull Live Text From Any URL Straight Into Your Prompt
Free Random Reference Images From CivitAI's Public API — No Key Required
The Reset Button for Silver's Shared Model Cache
Stop Re-Reading Your UNet on Every Prompt
Feed Prompts From a Text File and Step Through Them One Queue Run at a Time
A Random Real Photo From Flickr, Filtered by Search, Style, and Date
Hand You File Paths Out of a Folder — and Wait for New Ones If You Ask Nicely
Walk a Folder of Images in Order, or Batch Them, Without a Single Dropdown Edit
Extract Frames — and the Audio Track — From a Video in Your Folder
The LoRA 'Loader' That Cycles Through Your Whole Folder So You Don't Have To
CPU Voice Cloning Straight Into ComfyUI
The Six-Line Node That Picks a Random Item From Any List
Stock Photos in ComfyUI, No API Key Required
Swap a Word in Your Prompt for a Random Pick — Your Mini Wildcard Engine
Keep Your Text Encoder Warm Between Prompts
Grab a Fresh Image From Any Direct URL — Built for /random/ Endpoints
Pull the Biggest Real Photo Off a Webpage (and Skip the Logos)
ComfyUI Silver Nodes
A collection of utility nodes for ComfyUI that enhance workflow capabilities with advanced loaders and processing tools.

Features
Silver Nodes provides several specialized nodes designed to improve your ComfyUI workflows:
Loading Nodes
Silver URL Image Loader
Load images directly from URLs with cache busting and duplicate prevention. Designed to work with /random/ URLs for img2img processing.
- Features:
- Cache busting with random query parameters to prevent caching
- Duplicate detection using content hashing
- Retry mechanism for failed downloads (5 attempts by default)
- Supports common image formats (JPEG, PNG, WebP, etc.)
- Tracks previously loaded images to avoid duplicates
- Note: If image loading fails after all retry attempts, the entire workflow execution will be skipped to prevent partial processing
Silver Web Image Loader
Extract and download images from webpages with smart selection. Optimized for /random/ URL endpoints that serve random images.
- Features:
- Analyzes webpage for images with size information
- Filters out non-content images (icons, buttons, logos, ads, etc.)
- Handles lazy-loaded images and responsive designs
- Note: "Largest" is determined by HTML attributes, not actual download size
Silver Folder Image Loader
Load images from folders with advanced sorting and batching.
- Features:
- Batch loading of multiple images
- Sorting by name, date modified, or file size
- Sequential or random access patterns
- Recursive directory scanning
- Image format detection and filtering
Silver Folder Video Loader
Load and process video frames with audio extraction.
- Features:
- Frame extraction with configurable frame rate
- Audio track extraction
- Support for common video formats (MP4, AVI, MOV, etc.)
- Frame skipping and batching
- Memory-efficient processing
Silver File Text Loader (Beta)
Load and process text files with encoding detection.
⚠️ Note: This node is currently in beta and has not been fully tested. Some edge cases may not be handled correctly.
- Features:
- Automatic encoding detection
- Support for multiple text formats (TXT, JSON, CSV, etc.)
- Line or paragraph splitting
- Large file handling
- Error handling for malformed files
Silver Folder File Path Loader
Get file paths from folders with regex filtering.
- Features:
- Recursive directory scanning
- Regex pattern matching
- Sorting and filtering options
- Batch processing support
- File type filtering
Processing Nodes
- Silver String Replacer: Perform text replacements using pattern matching with support for random selection from multiple alternatives
- Silver Lora Model Loader: Advanced LORA model loading with filtering and cycling
Media Nodes
Silver Flickr Random Image
Fetch random images from Flickr based on search criteria.
- Features:
- Search by keywords, date ranges, and orientation
- Safe search filtering
- Duplicate prevention
- Configurable image quality
- Attribution handling
- Requirements:
- Requires a valid Flickr API key
- Respects Flickr's rate limits
- Includes proper attribution in output
Core Features
- Resource Management: Memory-efficient loading with configurable caching and automatic cleanup
- Batch Processing: Parallel processing with progress tracking and memory monitoring
- Sequential Processing: Multiple iteration strategies with state preservation
- Sorting Options: Sort by various file attributes with natural sorting support
- Error Handling: Graceful degradation with detailed logging and retry mechanisms
Installation
-
Clone this repository into your ComfyUI
custom_nodesdirectory:cd ComfyUI/custom_nodes git clone https://github.com/yourusername/comfyui-silver-nodes.git -
Restart ComfyUI
Nodes
Silver Lora Model Loader
A specialized LoRA model loader that allows cycling through models with various selection strategies.
Features
- Regex Filtering: Filter LoRA models by name using regular expressions
- Sequential Selection: Increment, decrement, or randomize through filtered models
- Repeat Control: Apply the same LoRA multiple times before moving to the next
Parameters
regex_filter: Regular expression to filter available LoRA modelslora_name: Currently selected LoRA modelaction: Selection strategy (fixed, increment, decrement, randomize)repeat_count: Number of times to use the same LoRA before changingcurrent_repeat: Current repeat iteration
Silver Folder Image Loader
Loads images from a specified folder with advanced sorting and selection options.
Features
- Batch Loading: Load multiple images at once
- Flexible Sorting: Sort by name, creation date, modification date, or file size
- Sort Direction: Choose ascending or descending order
- Selection Strategies: Fixed position, increment, decrement, or wrap-around
Parameters
folder_path: Path to the folder containing imagesbatch_size: Number of images to load at oncecurrent_index: Starting position in the sorted file listaction: Selection strategy (fixed, increment, decrement, increment_wrap, reset)sort_by: Sorting criterion (name, created, modified, size)sort_order: Sort direction (ascending, descending)
Silver File Text Loader
Loads text from files with options for splitting and sequential selection.
Features
- Text Splitting: Split by line or paragraph
- Sequential Access: Increment, decrement, or randomize through text segments
Parameters
file_path: Path to the text filesplit_mode: How to split the text (by line, by paragraph)current_index: Current position in the split textaction: Selection strategy (fixed, increment, decrement, randomize)
Usage Examples
Cycling Through LoRA Models
- Add the Silver Lora Model Loader to your workflow
- Set a regex filter (e.g., "style.*" to match all style LoRAs)
- Set action to "increment" to cycle through matching models
- Connect the output to your workflow
Processing a Folder of Images
- Add the Silver Folder Image Loader to your workflow
- Set the folder path containing your images
- Configure batch size and sorting options
- Set action to "increment" to process images sequentially
- Connect the image output to your processing nodes
Using the String Replacer
The Silver String Replacer node allows you to perform text substitutions with support for random selection from multiple alternatives.
Pattern Format
Each replacement rule is defined on a new line in the format:
search_term:replacement_1:replacement_2:replacement_3:...
- The first part is the text to search for
- Subsequent parts (after colons) are possible replacements
- One replacement is randomly selected when a match is found
Example 1: Simple Replacement
dog:cat
- Replaces all occurrences of "dog" with "cat"
Example 2: Multiple Replacements
dog:cat:puppy:wolf
- Randomly replaces "dog" with either "cat", "puppy", or "wolf"
Example 3: Multiple Rules
dog:cat:puppy:wolf
house:home:apartment:building
- Replaces "dog" with a random animal
- Replaces "house" with a random dwelling
Using Text Prompts from a File
- Add the Silver File Text Loader to your workflow
- Set the path to your text file containing prompts
- Choose split mode based on how your prompts are formatted
- Set action to "increment" to use a different prompt each run
- Connect the text output to your prompt input
Changelog
v1.1.0
- New Node:
Silver API Text Loader- Fetch text directly from an API URL with support for extracting nested JSON tags (e.g.data.prompt) - New Node:
Silver Stock Random Image- Pull random stock images from Lorem Picsum, Wikimedia Commons, LoremFlickr, and Unsplash with no API keys required, including duplicate prevention via local history caching - New Nodes: Shared model loaders that keep weights cached across API prompts instead of re-reading from disk every run:
Silver Shared Diffusion Model- cached UNet/Flux loader (adapted from ComfyUI-Inspire-Pack)Silver Shared Text Encoder- cached CLIP/text-encoder loaderSilver Clear Model Cache- clears all cached models to free RAM- Note: These two cache loaders also require a companion patch to ComfyUI's
comfy/model_management.py(adding amodel_keyto loaded model patchers soLoadedModel.__eq__can deduplicate separate patcher objects of the same weights). Without it, the same file loaded via different patchers is treated as two distinct models, causing doubled VRAM usage and spurious reloads that defeat the cache.
- Improvements to Silver Web Image Loader:
- Whole path-segment keyword exclusion (no more false positives from substring matches)
- Referer header for hotlink-protection bypass
- Exponential-backoff retries for connection issues
- WEBP and other transparency-heavy formats handled correctly via RGBA conversion
- Removed:
Silver Lipsync (Wav2Lip)placeholder node - Pinned
opencv-pythondependency for compatibility with ComfyUI's NumPy version
Credits
- The shared model caching approach in the
Silver Shared Diffusion Modelnode is adapted from ComfyUI-Inspire-Pack by ltdrdata. Many thanks for the original work.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.