Extensions/comfyui-lumi-tools
ComfyUI Extension

comfyui-lumi-tools

A ComfyUI custom node pack by Lumi.

By illuminatianon·Created 10 months ago·Updated 13 days ago· 1
illuminatianon/comfyui-lumi-tools
Nodes16
On cloudLocal install
CategoryLumi/LLM, Lumi/image
Stars1
Updated13 days ago

Nodes (16)

Lumi Gemini Imagen Config

The Gemini image settings that don't live in a sampler — aspect, resolution, temperature

Lumi/LLM
Lumi Google Imagen Provider

The fast lane to Gemini imagen — direct Google API, no middleman

Lumi/LLM
Lumi LLM Imagen Processor

Generate images with Gemini imagen right inside ComfyUI

Lumi/LLM
Lumi LLM Prompt Processor

An LLM that rewrites your prompt before it ever touches the sampler

Lumi/LLM
Lumi Load Image

Load Image that remembers the order — the reference-image chain for Gemini edits

Lumi/image
Lumi Noise To Seed

Got a NOISE object? Here's the integer hiding inside it

Lumi/Utils
Lumi OpenRouter Imagen Provider

Gemini imagen through OpenRouter — one key, one bill, no Google account juggling

Lumi/LLM
Lumi OpenRouter Provider

One provider node to point every LLM call at OpenRouter

Lumi/LLM
Lumi RGBA to RGB

Getting Rid of the Fourth Channel Without Breaking Your Graph

Lumi/image
Lumi Save Image

A Save Image that refuses to hand you a 30MB PNG

Lumi/image
Lumi Seed

A seed node with the control widget actually built in

Lumi/Utils
Lumi Show Text

See what that text node actually output — a debug window that stays in the save

Lumi/Utils
Lumi Shuffle Prompt

Shuffle your tag order so a fixed seed stops meaning fixed output

Lumi/Prompt
Lumi Text Input

The multiline text box you were about to build yourself

Lumi/Text
Lumi Wildcard Processor

Wildcards, the ComfyUI way — random picks from your own word banks

Lumi/Prompt
Lumi Wrap Text

Slam a prefix and suffix onto any prompt without retyping it

Lumi/Text
Readme

Lumi Tools

A collection of utility nodes for ComfyUI.

Installation

  1. Clone or symlink this repository into your ComfyUI custom_nodes folder
  2. Install dependencies:
    uv sync
    
  3. Restart ComfyUI

Development Setup

uv sync --dev

Nodes

All nodes appear under Lumi/ in the node menu.

Prompt & Text Nodes

Lumi Shuffle Prompt

Shuffles tokens in a prompt string. Useful for randomizing tag order.

  • Strips newlines and commas
  • Splits by spaces, shuffles, and rejoins
  • Seeded for reproducibility

Lumi Wildcard Processor

Processes wildcard prompts using dynamicprompts.

Lumi Wrap Text

Wraps text with optional prefix and suffix strings.

Lumi Text Input

Provides an arbitrary multiline text input.

Lumi Show Text

Displays text output for debugging.

LLM Nodes

Lumi OpenRouter Provider

Provides OpenRouter API configuration for LLM inference. Requires OPENROUTER_API_KEY environment variable.

Lumi LLM Prompt Processor

Processes prompts using LLM inference via OpenRouter. Useful for prompt enhancement and rewriting.

Image Generation Nodes

Lumi Gemini Imagen Config

Configuration node for Gemini image generation models. Sets aspect ratio (default: 16:9), image size (default: 2K), temperature, and other generation parameters.

Lumi Google Imagen Provider

Direct Google AI Studio API provider for image generation. Uses GOOGLE_API_KEY environment variable. Much faster than OpenRouter (~4x).

Available models:

  • gemini-3-pro-image-preview (default, supports up to 4K)
  • gemini-3.1-flash-image-preview (supports up to 4K)
  • gemini-2.5-flash-image (1K only)

Lumi OpenRouter Imagen Provider

OpenRouter API provider for Gemini image generation. Uses OPENROUTER_API_KEY environment variable.

Lumi LLM Imagen Processor

Generates images using configured Gemini imagen providers. Connects to provider and config nodes.

Utility Nodes

Lumi Noise To Seed

Extracts an integer seed from a NOISE object for nodes that expect an INT seed.

Lumi Seed

Outputs a seed value with control_after_generate support (randomize, increment, decrement, fixed).

Lumi Save Image

Saves images as PNG with workflow metadata. If PNG exceeds 4MB, also saves a JPG version with configurable quality (default 100). Directory and filename are separate widgets, each supporting ComfyUI token replacements. Directory defaults to %year%-%month%-%day%.

Configuring Wildcard Paths

Configure wildcard paths in ComfyUI/extra_model_paths.yaml:

my_wildcards:
  wildcards: D:/dev/wildcards

Alternatively:

  • Set the LUMI_WILDCARDS_PATH environment variable
  • Place wildcards in {ComfyUI}/wildcards

License

GPL-3.0