ComfyUI Extension: ComfyUI-Simple-Prompt-Batcher

Authored by ai-joe-git

Created

Updated

44 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

A simple and efficient ComfyUI custom node that allows batch processing of multiple prompts in a single queue with automatic model loading optimization.

Looking for a different extension?

Custom Nodes (0)

    README

    ComfyUI Simple Prompt Batcher

    A simple and efficient ComfyUI custom node that allows you to batch process multiple prompts in a single queue. Perfect for testing variations, exploring different ideas, or running systematic prompt experiments.

    πŸ“‹ Features

    • βœ… Simple text input - One prompt per line, no complex syntax
    • βœ… Automatic batching - All prompts run in a single queue
    • βœ… Optimized performance - Models stay loaded between inferences
    • βœ… Unlimited prompts - Add as many lines as you need
    • βœ… Clean console output - Shows prompt count and preview
    • βœ… No empty lines - Automatically filters blank entries

    πŸš€ Installation

    Method 1: ComfyUI Manager (Recommended)

    1. Open ComfyUI Manager
    2. Search for "Simple Prompt Batcher"
    3. Click Install
    4. Restart ComfyUI

    Method 2: Manual Installation

    1. Navigate to your ComfyUI custom nodes directory:

      cd ComfyUI/custom_nodes/
      
    2. Clone this repository:

      git clone https://github.com/ai-joe-git/ComfyUI-Simple-Prompt-Batcher.git
      
    3. Restart ComfyUI

    4. The node will appear as "πŸ“ Simple Prompt Batcher" in the node menu under utils/text

    πŸ’‘ Usage

    Basic Workflow

    1. Add the node to your workflow

      • Search for "Simple Prompt Batcher" or "πŸ“ Simple Prompt Batcher"
      • Add it to your canvas
    2. Enter your prompts in the text area (one per line):

      a beautiful sunset over mountains
      a cat sleeping on a couch
      a futuristic city at night
      a serene forest landscape
      
    3. Connect the output to CLIPTextEncode (or any text input node)

      [Simple Prompt Batcher] β†’ [CLIPTextEncode] β†’ [Your Workflow]
      
    4. Queue the prompt ONCE - ComfyUI will automatically run all prompts in sequence

    Example Workflow Structure

    πŸ“ Simple Prompt Batcher
        ↓ (prompt output)
    CLIPTextEncode (Positive)
        ↓
    KSampler
        ↓
    VAE Decode
        ↓
    Save Image
    

    πŸ“Š Performance Benefits

    Without Batching

    • Load models (30s) β†’ Generate (25s) β†’ Unload
    • Repeat for each prompt
    • 8 prompts = ~7 minutes 20 seconds

    With Simple Prompt Batcher

    • Load models once (30s) β†’ Generate all 8 (8 Γ— 25s)
    • Models stay loaded between generations
    • 8 prompts = ~3 minutes 50 seconds

    Result: ~50% time savings on batch processing! 🎯

    🎨 Use Cases

    Camera Angle Testing (Video Generation)

    Turn the camera to a close-up
    Turn the camera to a wide-angle lens
    Rotate the camera 45 degrees to the right
    Turn the camera to an aerial view
    Turn the camera to a low-angle view
    

    Style Variations (Image Generation)

    a red sports car in photorealistic style
    a red sports car in anime style
    a red sports car in watercolor painting style
    a red sports car in cyberpunk style
    

    Scene Exploration

    a forest in spring with blooming flowers
    a forest in summer with lush green leaves
    a forest in autumn with golden foliage
    a forest in winter with snow-covered trees
    

    Systematic Testing

    quality: high, lighting: soft, mood: peaceful
    quality: high, lighting: dramatic, mood: intense
    quality: high, lighting: natural, mood: casual
    quality: high, lighting: studio, mood: professional
    

    πŸ“ Console Output

    When you run the batcher, you'll see helpful output in your console:

    [Prompt Batcher] πŸ“‹ Batching 5 prompts:
    [Prompt Batcher]   1. a beautiful sunset over mountains
    [Prompt Batcher]   2. a cat sleeping on a couch
    [Prompt Batcher]   3. a futuristic city at night
    [Prompt Batcher]   4. a cyberpunk street scene
    [Prompt Batcher]   5. a serene forest landscape
    

    βš™οΈ Technical Details

    • Output Type: STRING (batch list)
    • Category: utils/text
    • Compatibility: Works with any node that accepts text input
    • Memory: Efficient - models remain loaded during batch processing
    • Format: One prompt per line, empty lines automatically filtered

    πŸ”§ Requirements

    • ComfyUI (latest version recommended)
    • No additional dependencies required

    πŸ“– Tips

    1. No empty lines needed - The node automatically filters them out
    2. Long prompts supported - No character limit per line
    3. Preview in console - First 60 characters of each prompt shown
    4. Compatible with all samplers - Works with any generation workflow
    5. Combine with other nodes - Use with wildcards, style mixers, etc.

    🀝 Contributing

    Contributions are welcome! Feel free to:

    • Report bugs
    • Suggest new features
    • Submit pull requests
    • Share your use cases

    πŸ“„ License

    MIT License - Feel free to use in your projects!

    πŸ™ Credits

    Created for the ComfyUI community to make batch prompt processing simple and efficient.

    πŸ”— Links


    Made with ❀️ for the ComfyUI community

    If you find this node useful, please star the repository! ⭐

    Run ComfyUI workflows without the setup

    No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

    Learn more