Krea Moodboard Random
Style roulette that's actually deterministic
- positive
- negative
- title
- metadata_json
Sometimes you don't know the style you want - you want to be surprised, or you're batch-generating and want variety. Krea Moodboard Random picks a random moodboard from the pack's 3,549-board catalog, seeded and reproducible. Set the same seed, get the same board. Change the seed, roll again. It's the laziest possible way to explore Krea 2's style vocabulary, and for that it's genuinely good.
The detail that makes it worth using rather than just seeding a random.choice yourself: the catalog is lopsided. Photo-family boards dominate it numerically, so a naive uniform pick drowns you in "photorealistic portrait" styles and you'd almost never land on the interesting stuff. Random's balanced mode fixes that by sampling a style family first - photo, cinematic, anime, illustration, graphic, abstract, 3D, other - and then picking within that family. That's the default for a reason.
How it works
It takes your seed, optionally narrows the pool with a query, and picks deterministically. The random_mode decides how:
- balanced - samples a style family first, then a board within it. Recommended default.
- any - pure random from the whole (possibly query-filtered) pool.
- non_photo - avoids photo-family boards when possible.
- photo - only photo-family boards when possible.
The random_from_top_k input sizes the pool after a query: with query = cinematic noir and random_from_top_k = 25, you get a random pick from the top 25 noir-ish matches rather than a random pick from the entire catalog. That's the combination worth remembering - it's how you roll dice within a style direction.
The inputs and outputs
Inputs are seed, query, random_from_top_k (default 25), strength (concise / normal / strong), and random_mode. Outputs are positive, negative, title, and metadata_json. There's no preview output here - the title is how you see what it picked.
Wire it exactly like the other source nodes: positive and negative into Krea Moodboard Apply, and metadata_json into a Krea Moodboard Mashup board slot if you want to blend a random pick into something more deliberate. For a "surprise me, but keep it cinematic" workflow, a Random node feeding a Mashup is a lot of fun.
Install
Comes with the Krea Moodboards pack. ComfyUI Manager, search "Krea Moodboards", or:
cd ComfyUI/custom_nodes
git clone https://github.com/Andro-Meta/ComfyUI-Krea-Moodboards.git
Restart ComfyUI. No Python dependencies beyond the standard library, no model downloads, no API - pure local catalog plus a seeded random number generator. Nodes appear under Andro.Meta / Moodboards.
Common issues
The main surprise is determinism itself: the same seed always gives the same board, so if you change something upstream and "random" isn't changing, check whether you actually touched the seed. If you add a query and the pool comes up empty, you'll get an error - loosen the query or raise random_from_top_k (capped at 100). And if you feel like every roll lands on the same vibe, remember non_photo and the query-based pool both exist to steer it; balanced alone won't fight the catalog's own proportions beyond the family level.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–4294967295 | — |
| query | STRING | Optional search query used to narrow the random pool. | |
| random_from_top_k | INT | 251–100 | Random pool size after search. |
| strength | COMBO | normal | 3 options: concise, normal, strong |
| random_mode | COMBO | balanced | balanced samples style families first so photo boards do not dominate random picks. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| positive | STRING | — |
| negative | STRING | — |
| title | STRING | — |
| metadata_json | STRING | — |