Prompt
A prompt builder that knows whether you're on Flux or SDXL
- clip
- vae
- images
- upsampler_clip
- video_latent
- first_frame
- last_frame
- positive
- negative
- positive_text
- negative_text
- resolved_arch
- token_count
- latent
Most "prompt enhancer" nodes are word soup generators that don't know what encoder they're talking to. Radiance Cinematic Encoder is the opposite: its whole trick is that it auto-detects your architecture and picks the prompt format accordingly - flowing prose for Flux/T5/Kolors, structured tag blocks for SD1.5/SDXL. It's also a real CLIP encoder, not just a string factory: a clip goes in and ready-to-sample CONDITIONING comes out.
That matters more in 2026 than it sounds. The rules changed when models moved to LLM text encoders: (word:1.3) attention weights are silently discarded on Flux, BREAK is meaningless without a 77-token chunk boundary, and a forty-keyword negative is never computed at CFG 1. A node that still writes those conventions is a trap for people who swapped architectures. This one is written around the difference.
How it works
You feed it a CLIP model and a base_prompt (your subject - it's called Prompt A because there's a base_prompt_b for A/B testing, switched with active_prompt so you can flip between two subjects without rewiring). Then you stack up to twenty or so optional dropdowns - framing, camera body, lens, aperture, lighting, film stock, color grading, aspect ratio, scene mood - and it assembles the whole thing into a final prompt, encodes it, and hands you positive and negative conditioning.
The inputs a beginner actually touches, ranked:
- target_arch (default Auto) - the auto-detection is genuinely good, but if you know the pack guessed wrong, this is the override. Prose for flux/sd3/wan/kolors/ltx; structured for sdxl/sd1.5.
- context_window - token budget. Standard (CLIP 77) for SDXL; flip to Medium or Large for Flux's T5 if you're writing long prompts.
- negative_strength - Off/Soft/Standard/Aggressive. The tooltip's advice is worth taking: Soft is recommended for Flux. A big structured negative is inert on a distilled model and can actively hurt at higher CFG.
- subject_weight - wraps your subject in
(subject:weight)attention syntax. Works on SD1.5/SDXL; on Flux/T5 it becomes literal text the encoder may or may not care about. Worth knowing before you crank it. - style_preset - 29 one-click looks (Classic Hollywood, Film Noir, Cyberpunk...). Good starting points.
- lora_keywords - trigger words injected into the prompt, so your LoRA stacks stay in sync with the text.
You also get clip_skip (0 = all layers; typical SD1.5=1, SDXL=0) and a prompt_enhancer that either fixes grammar or injects aesthetic tags - nice, not essential.
Outputs
Six of them, and the useful ones are: positive and negative CONDITIONING for your sampler; positive_text and negative_text strings (wire to a text preview to see exactly what got built - worth doing once, because the assembly is a black box otherwise); and token_count, the actual count from the CLIP tokenizer, which is how you catch a prompt silently overflowing its context window. There's also an image_ref pass-through if you want a reference image routed alongside the conditioning.
Install
Part of the fxtdstudios/radiance pack - Manager search "Radiance", or:
cd ComfyUI/custom_nodes
git clone https://github.com/fxtdstudios/radiance.git
cd radiance
pip install -r requirements_linux.txt
then restart. Heavy install (OpenEXR, OpenColorIO, colour-science, transformers), slow first boot, and if Manager's security level blocks it you clone manually per the README. If dependency conflicts appear with other packs, reinstall Radiance's requirements last.
One last honest note: the community reception to the pack was split - the launch thread upvoted it but several commenters flagged the "32-bit pipeline" claims as overstated in places, and the docs were called thin. The prompt nodes are the part that behaves as advertised.
Inputs (26)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | Text encoder (CLIP, T5 or LLM), from the Loader. | |
| text_to_videoopt | BOOLEAN | true | Whether the text describes the whole shot. • On: base_prompt, action, then the menus' words. • Off, when an image or a video already shows the subject, the scene and the look (image-to-video): action alone. Describe only what changes. Wire it to the boolean that turns text-to-video on, or set it here. • Off: base_prompt is dimmed and the menus are hidden. • Hidden and ignored under an image model. |
| base_promptopt | STRING | Describe the subject and the scene. The menus below add their words around it: • framing opens it, e.g. "A close-up of <your text>." • The camera, lighting and look menus follow it, as short sentences. LTX 2: words in quotes (says "Hello!") are spoken. Dimmed and marked "⚠ image-to-video, ignored" while text_to_video is off. | |
| actionopt | STRING | What happens over time: the moves in order, the words spoken, the camera moves, the sounds. • Video models (LTX, Wan, HunyuanVideo, MiniMax H3…) read it right after base_prompt. • Image models skip it: a pose or a still moment goes in base_prompt. Dimmed and marked "⚠ image model, ignored" under an image model. | |
| style_presetopt | COMBO | None (Custom) | Fills the 7 menus below with a look. • A menu changed afterwards shows ✎. • None (Custom) sets them back to None. • The preset's film stock, shutter and aspect ratio, which have no menu, are added at run time. |
| framingopt | COMBO | None | Shot size. It opens the prompt, e.g. "A close-up of <your text>." |
| camera_typeopt | COMBO | None | Camera body, named in the sentence after your text. |
| lens_focalopt | COMBO | None | Lens and focal length, in the camera's sentence. |
| aperture_dofopt | COMBO | None | Aperture and depth of field, in the camera's sentence. |
| lightingopt | COMBO | None | Lighting, in its own sentence ("Lit by…"). |
| style_aestheticopt | COMBO | None | Visual style, near the end of the prompt. negative_strength Standard and Aggressive add the opposite styles to the negative. |
| color_gradingopt | COMBO | None | Color grade, near the end of the prompt. |
| negative_strengthopt | COMBO | Off | Generic terms added before negative_prompt. • Off: negative_prompt alone, as ComfyUI's templates do. • Soft: blur, low quality, watermark (and text on SD 1.5, SD 2 and SDXL). • Standard: also deformed, ugly, duplicate, disfigured, bad anatomy, and the styles opposite to a realistic, anime, painted or CGI style_aesthetic. • Aggressive: also limb, noise and framing defects (mutated, extra limbs, cropped, lowres…). Flux.1, Flux.2 Dev and MiniMax H3 get Soft at most. |
| negative_promptopt | STRING | What to keep out of the result, added after the negative_strength terms. Greyed or marked "⚠ no CFG, ignored" when it has no effect, e.g. when every sampler it feeds runs at CFG 1. | |
| negative_modeopt | COMBO | Auto | How the negative is encoded. • Auto: on guidance-distilled models (Flux.1, Flux.2 Dev, MiniMax H3) with no negative_prompt, a zeroed negative instead of an encoded one. ComfyUI never reads the negative at CFG 1, so this saves a text-encoder pass. • Always encode: for those models run above CFG 1 with a negative. • Zero (skip encode): never encodes the negative. |
| model_metaopt | STRING | The Loader's model_meta output. • Tells the node the model family, instead of guessing it from the text encoder. • Shows only the inputs that family reads. | |
| vaeopt | VAE | Encodes the reference images into the latents the model edits from. • Flux.2, Flux.3 Klein and MiniMax H3: needed. • Qwen-Image 2.1 and Qwen-Image Edit: without it, they read the images through the text encoder only. | |
| resolutionopt | INT | 10240–4096 | Size of the reference images: about resolution x resolution pixels. • Qwen-Image 2.1: at multiples of 32, keeping their aspect ratio. 0 keeps each at its own size, rounded to a multiple of 32. • Flux.3 Klein: 1024 is the templates' 1 MP. 0 keeps each at its own size, up to 16 MP. The output takes image_1's size. • Flux.2 and Qwen-Image Edit size them on their own. |
| imagesopt | COMFY_AUTOGROW_V3 | Reference images for editing, read by Qwen-Image 2.1, Qwen-Image Edit, Flux.2 and Flux.3 Klein. • image_1 is the image to edit, the others are references. • MiniMax H3 takes first_frame and last_frame instead. Graphs wired to image_1 and image_2 still run; to move them, connect both frames there and remove the image links. • Qwen-Image 2.1: cite them in the prompt as <image1>, <image2>… • Qwen-Image Edit: 3 at most. • Flux.3 Klein: 10 at most, cited as <ref_image_0> (image_1), <ref_image_1>… | |
| upsampler_clipopt | CLIP | The family's prompt upsampler, used only when upsample_prompt is on. • The Loader's upsampler_clip output. • Or Load CLIP with qwen3.5_9b_flux3_prompt_upsampler_* (type flux3) or qwen3.5_9b_qwen_image_2.1_pe_* (type qwen_image). | |
| upsample_promptopt | BOOLEAN | false | FLUX 3 Image Klein and Qwen-Image 2.1: rewrites the prompt into the detailed caption the model was trained on, with the model authors' upsampler and system prompt (as ComfyUI's templates do). • With reference images, it uses the edit instructions and sees the images. • positive_text shows the rewritten prompt. |
| upsampler_seedopt | INT | 00–18446744073709550000 | Seed of the upsampler's sampling. The same seed and prompt give the same rewrite. |
| layoutopt | STRING | FLUX 3 Image Klein: the layout table. • A JSON list of {"id": "obj_1", "bbox": [ymin, xmin, ymax, xmax], "desc": "..."}, bbox on a 0-1000 grid, as ComfyUI's FLUX 3 Image Layout Prompt writes it. • Draw the boxes in the Viewer (Tools > FLUX 3 Layout Boxes), or paste the table at the end of base_prompt. • Cite them in the prompt as <obj_1>, <obj_2>… | |
| video_latentopt | LATENT | MiniMax H3 or Wan with a first or last frame: the Resolution's latent, the one the Sampler samples on. • The Resolution's model_type is MiniMax H3 (24ch), WAN (16ch) or WAN TI2V (48ch) (or its model_meta comes from the Loader), with enable_video on. • Gives the frames the video's size. • Places last_frame on the last frame. • Sample on the Prompt's latent output: the Wan 5B's holds its first frame. | |
| first_frameopt | IMAGE | MiniMax H3 and Wan: the video's first frame (image to video). • Alone, or with last_frame. • Needs vae and video_latent. • MiniMax H3: Qwen3-VL sees it with the prompt, so write the prompt from it. • Wan 2.2 14B: load its i2v files. The 5B (TI2V) reads the first frame only. | |
| last_frameopt | IMAGE | MiniMax H3 and Wan (not the 5B): the video's last frame. • Alone, or with first_frame (first and last frames). • Needs vae and video_latent. • To leave a frame out, disconnect its image or bypass the node that feeds it. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| positive | CONDITIONING | Positive conditioning for the sampler. |
| negative | CONDITIONING | Negative conditioning for the sampler. |
| positive_text | STRING | Final positive prompt text that was encoded. |
| negative_text | STRING | Final negative prompt text that was encoded. |
| resolved_arch | STRING | Detected architecture used to choose prose vs CLIP-style prompting. |
| token_count | INT | Token count of the positive prompt, from the model's tokenizer. |
| latent | LATENT | Empty latent at image_1's size after the resize. • Sample on it to edit: any other size shifts the edit. • MiniMax H3: an empty latent of video_latent's size. • Wan: the frames' latent (the 5B's holds its first frame). • Without images or frames: video_latent as it came, None without it. |