Nodes/ComfyUI-AlchemicaSampler/⚗ Alchemica Prompt (idea / list / Ollama + NAG + latent)
ComfyUI Node

⚗ Alchemica Prompt (idea / list / Ollama + NAG + latent)

Prompt workstation: idea / your prompt / list / string / examples, written by Krea 2's text encoder or Ollama, encoded, with NAG and the start latent. Same socket order as the LoRA stack on the left and as the sampler on the right, with pass-through connectors.

By Nessuno76·Created 18 days ago·Updated about 22 hours ago· 2
⚗ Alchemica Prompt (idea / list / Ollama + NAG + latent)
  • model
  • clip
  • vae
  • latent
  • image
  • pass_1
  • pass_2
  • pass_3
  • pass_4
  • pass_5
  • pass_6
  • pass_7
  • pass_8
  • model
  • positive
  • latent
  • negative
  • vae
  • clip
  • prompt
  • pass_1
  • pass_2
  • pass_3
  • pass_4
  • pass_5
  • pass_6
  • pass_7
  • pass_8
◄modegenerate from idea►
◄text►
◄detail►
◄negative►
◄text_asidea → generate►
◄line0►
◄example▾►
◄seed0►
◄stylerealistic photo►
◄use_ollamafalse►
◄ollama_model(no Ollama model found: start Ollama, then press R)►
◄ollama_urlhttp://127.0.0.1:11434►
◄unload_ollamatrue►
◄show_llm_optionsfalse►
◄words80►
◄creativity0.00►
◄skinsmooth (no body hair)►
◄instructions►
◄max_tokens400►
◄attention_guidancetrue►
◄nag_scale3.0►
◄nag_tau2.5►
◄nag_alpha0.25►
◄nag_blocksall►
◄nag_sigma_start-1.00►
◄nag_sigma_end0.00►
◄structureoff►
◄structure_scale0.00►
◄structure_blocks8-19►
◄seg_blur10.0►
◄structure_sigma_start-1.00►
◄structure_sigma_end0.00►
◄show_resolutionfalse►
◄aspect2:3►
◄megapixels1.50►
◄batch_size1►
◄text_in—►
Category⚗ AlchemicaMente/conditioning

Inputs (50)

NameTypeDefaultDescription
modelMODELFrom the LoRA stack (or the loader). Leaves with NAG / structure applied
clipCLIPKrea 2 text encoder: always encodes the prompt, and writes it when Ollama is off
modeCOMBOgenerate from ideagenerate from idea: the LLM writes scene / detail / negative from a few words (any language). improve prompt: the LLM rewrites YOUR prompt, keeping everything in it. as written: your text is used as it is (no LLM). from list: one prompt per line, picked by 'line' (set its control to increment to walk the list). from string: the text arriving on the 'text_in' socket (from another node). example: a built-in example, to start or to test. With list / string / example, 'text_as' says what to do with the picked text.
textSTRINGIdea / prompt / list (one per line, or entries separated by a '---' line). {a|b|c} picks one option, __name__ picks a line of wildcards/name.txt
detailSTRINGAs written only: rendering of surfaces, skin, fabric, optics. Empty = scene only
negativeSTRINGAs written: the negative for the NAG. With the LLM: extra items added to the one it writes (e.g. 'glasses, tattoos')
text_asCOMBOidea → generateWhat to do with the text from list / string / example
lineINT00–99999From list: entry number (0 = first; wraps around). 'increment' = next entry at every run
exampleCOMBOExample mode: the idea used
seedINT00–18446744073709550000Picks the wildcard options, and the LLM variation when creativity > 0
styleCOMBOrealistic photo8 options: realistic photo, portrait, still life / lab, landscape, architecture, cinematic, +2
use_ollamaBOOLEANfalseWho writes the prompt. Off = Krea 2's own text encoder (no server, sees images). On = a model served by Ollama (needs 'ollama serve')
ollama_modelCOMBO(no Ollama model found: start Ollama, then press R)Installed Ollama models (press R to refresh). For images use a vision model (qwen2.5vl, llava, gemma3...)
ollama_urlSTRINGhttp://127.0.0.1:11434—
unload_ollamaBOOLEANtrueFrees the Ollama model from VRAM right after writing, so Krea 2 keeps its memory (recommended on 16 GB)
show_llm_optionsBOOLEANfalseShows length, creativity, skin, instructions. Hidden values still apply
wordsINT8030–200Length of the SCENE (the detail is 30-50% of it)
creativityFLOAT0.000–1.50 = same text every time. 0.6-0.9 = variations (change the seed)
skinCOMBOsmooth (no body hair)smooth = no body hair (removed from the prompt, added to the NAG negative)
instructionsSTRINGExtra rules in any language; they win over the built-in ones
max_tokensINT400100–2000Upper limit of the answer
attention_guidanceBOOLEANtrueNAG: the negative works at cfg 1. Off = model passes unchanged
nag_scaleFLOAT3.00–20Strength of the negative at cfg 1. Calibrated: 3
nag_tauFLOAT2.51–10How far it may push away from the positive
nag_alphaFLOAT0.250–1Blend with the original attention
nag_blocksSTRINGallDiT blocks (0-27): 'all', '0-13', '5,8,10-12'
nag_sigma_startFLOAT-1.00-1–1-1 = from the profile hand-off (~0.87): removes the negative WITHOUT changing the composition. 1 = from the start
nag_sigma_endFLOAT0.000–1—
structureCOMBOoffPAG = sharper and more contrast. SEG = blurred queries (halos above 0.3)
structure_scaleFLOAT0.00-5–10—
structure_blocksSTRING8-19—
seg_blurFLOAT10.00.5–1000—
structure_sigma_startFLOAT-1.00-1–1-1 = from the profile
structure_sigma_endFLOAT0.000–1—
show_resolutionBOOLEANfalseShows the size of the start latent. A latent on the 'latent' socket wins
aspectCOMBO2:310 options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, +4
megapixelsFLOAT1.500.25–8FINAL resolution. 1.5 MP fast, 3-4 MP with two stages
batch_sizeINT11–16—
vaeoptVAEPasses through to the sampler (preview and final image in the node)
latentoptLATENTOptional: e.g. a VAE-encoded photo for img2img. Empty = built here
text_inoptSTRINGText from another node (mode: from string)
imageoptIMAGEVisual reference for the LLM (Krea 2's encoder, or an Ollama vision model)
pass_1opt*Pass-through: anything that enters here leaves on the same pass
pass_2opt*Pass-through: anything that enters here leaves on the same pass
pass_3opt*Pass-through: anything that enters here leaves on the same pass
pass_4opt*Pass-through: anything that enters here leaves on the same pass
pass_5opt*Pass-through: anything that enters here leaves on the same pass
pass_6opt*Pass-through: anything that enters here leaves on the same pass
pass_7opt*Pass-through: anything that enters here leaves on the same pass
pass_8opt*Pass-through: anything that enters here leaves on the same pass

Outputs (15)

NameTypeDescription
modelMODELNAG / structure applied: to the sampler
positiveCONDITIONINGScene + detail: to the sampler's positive
latentLATENTStart latent: to the sampler's latent_image
negativeCONDITIONINGTo the sampler's negative (used only at cfg > 1)
vaeVAEThe VAE that came in
clipCLIPThe text encoder that came in
promptSTRINGFinal positive text (for Save Image, captions...)
pass_1*Same as the matching pass input
pass_2*Same as the matching pass input
pass_3*Same as the matching pass input
pass_4*Same as the matching pass input
pass_5*Same as the matching pass input
pass_6*Same as the matching pass input
pass_7*Same as the matching pass input
pass_8*Same as the matching pass input