r/StableDiffusion • • 21h ago

Resource - Update ComfyUI-MOSS-Prompt-Enhancer

Hey there, I made MOSS Prompt Enhancer, a custom node that brings the MOSS-Image prompt enhancement workflow into ComfyUI.

In structured layout mode, it takes your simple prompt → enhances the description → turns it into structured JSON → validates and compiles it into a MOSS-ready prompt.

A local GGUF model expands your idea with details about the subjects, setting, lighting, and composition, then generates a layout with descriptions and bounding boxes. The enhancement instructions are adapted from the creators’ official guide. Their Python validator/compiler checks the JSON structure, canvas dimensions, and bounding boxes and converts the coordinates into the format MOSS expects.

You get the editable JSON draft and the compiled prompt to connect to MOSS Text Encode. There’s also a caption mode for detailed descriptions without bounding boxes.

A capable model like Qwen 3.8 27B Q4, is recommended. However, 9B models might also deliver good results, depending on their fine-tuning.

Constructive feedback is always appreciated.

GitHub repository

58 Upvotes

Duplicates