About MOSS-Image
MOSS-Image is OpenMOSS’s open-weights text-to-image model: a 5B single-stream DiT that turns a full scene caption into one finished image. It is strongest where text and placement matter, because it renders English and Chinese typography, accepts prompts of up to about 4K tokens, and can read a JSON layout that says where each object and each line of text belongs. Weights ship under Apache 2.0, so you download once and run on your own GPU with no API key and no per-image credits. The family has two checkpoints. The instruction-tuned SFT checkpoint is the one the templates load: it groups text and lays out scenes more cleanly. The Base checkpoint has no post-training or CFG distillation, which makes it the starting point for community LoRAs. Both run in the same graph, so switching checkpoints is a single loader change. In ComfyUI the model runs from single-file checkpoints in int8 and bf16, with a Qwen3.5 9B text encoder loaded as typemoss_image and the FLUX.2 small VAE. The text to image templates also ship a prompt enhancer that rewrites a short request into a full caption before sampling, using the same text encoder the model already needs.
Model highlights:
- 5B single-stream DiT with bilingual English and Chinese text rendering
- Native layout guidance: draw boxes, give each box a caption, and text boxes render their own text
- Prompt enhancer built into the text to image templates, so a one-line idea is enough
- Two checkpoints: SFT for cleaner layouts, Base for fine-tuning and LoRA work
- Long prompts of roughly 4K tokens, and canvas sizes in multiples of 16
MOSS-Image workflows
All four text to image templates run the same subgraph. Open it to reach the loaders, the sampler, and the canvas size. The edit and color/depth templates use their own graphs, described in their sections below.Learn about Subgraph
This workflow uses Subgraph nodes for modular processing. Check out the Subgraph documentation to learn how to customize and extend the workflow.
MOSS-Image: Text to Image
Generate an image from a prompt alone, with no input files. The prompt enhancer is on, so a short description is expanded into a full caption before it reaches the model. The caption actually used is shown inPreview Any.
Download Workflow
Download JSON or search “MOSS-Image: Text to Image” in Template Library
Get started
- Update ComfyUI to 0.42.0 or later
- Go to Template and search for MOSS-Image
- Select MOSS-Image: Text to Image
- Download the models listed in model downloads
- Enter your idea in the positive prompt and click Queue
MOSS-Image Base: Text to Image
The same graph with the Base checkpoint loaded. Use it to compare raw output against the SFT checkpoint, or as the starting point for LoRA training.
Download Workflow
Download JSON or search “MOSS-Image Base: Text to Image” in Template Library
Get started
- Update ComfyUI to 0.42.0 or later
- Go to Template and search for MOSS-Image Base
- Select MOSS-Image Base: Text to Image
- Download the models listed in model downloads, including
moss_image_base_int8_convrot.safetensors - Enter your idea in the positive prompt and click Queue
MOSS-Image: Layout-Guided Text to Image
Generate an image from a prompt plus a layout you draw. OpenCreate Bounding Boxes and drag a box for each element; each box carries its own caption, and boxes marked as text render that text inside them. MOSS-Image Layout Prompt turns the boxes into the layout prompt the model reads, so the caption in the box and your scene prompt are both used.
Draw the background box first and the foreground elements last: boxes are emitted in the order you draw them. Each box is labelled text if you mark it as text, otherwise object. To label a box that holds a person as a character, list its number from the Create Bounding Boxes preview in character_boxes on MOSS-Image Layout Prompt, for example 1, 3. Numbers that point at a text box have no effect. Both layout templates ship this field filled in (2 in SFT, 1 in Base), so check it against your own boxes before queueing.
With at least one box connected, MOSS-Image Layout Prompt outputs a JSON prompt: a scene caption plus one item per box. The layout templates ship enable_prompt_enhancer off, so that JSON reaches the model unchanged. Turning it on lets the prompt enhancer rewrite the text, which can drop the boxes.
Download Workflow
Download JSON or search “MOSS-Image: Layout-Guided Text to Image” in Template Library
Get started
- Update ComfyUI to 0.42.0 or later
- Go to Template and search for MOSS-Image and pick the layout variant
- Download the models listed in model downloads
- Draw one box per element in
Create Bounding Boxes, then type a caption for each box. For a text box, type the text you want rendered - Write the overall scene in the prompt and click Queue
MOSS-Image Base: Layout-Guided Text to Image
The layout workflow with the Base checkpoint. Useful when you want to compare how the two checkpoints follow the same box layout.
Download Workflow
Download JSON or search “MOSS-Image Base: Layout-Guided Text to Image” in Template Library
Get started
- Update ComfyUI to 0.42.0 or later
- Go to Template and search for MOSS-Image Base and pick the layout variant
- Download the models listed in model downloads, including
moss_image_base_int8_convrot.safetensors - Draw the boxes, caption each one, and write the scene prompt
- Click Queue
MOSS-Image: Image Edit
Edit one photo with a short instruction. An edit LoRA runs on top of the SFT checkpoint, and your instruction is encoded together with the source image, so the sampler redraws the same frame and only the described change is applied. Colour, material, outfit and background swaps keep the face, hair, pose and framing intact. Requires ComfyUI 0.43.0 or later.
Download Workflow
Download JSON or search “MOSS-Image: Image Edit LoRA” in Template Library
two_women_berets_floral_jackets.png
Load into
Load Image. Any photo works: the graph scales it to 1.0 MP and keeps its aspect ratio.Get started
- Update ComfyUI to 0.43.0 or later
- Go to Template and search for MOSS-Image: Image Edit
- Download the models listed in model downloads, including
moss_image_edit_lora_rank_64_bf16.safetensors - Load the photo you want to edit and describe only the change in the positive prompt
- Click Queue
Tips on editing
- Phrase the change the way the LoRA was trained.
Change only the X to Y. Keep the character, face, hair, pose, background and composition unchanged.works best. A vague instruction like “improve it” gives the model too much freedom. - Keep
edit_formatonMoss-Image-Edit. Both encode nodes must carry the value the LoRA was trained with. A different value still returns an image, but identity, framing and fine detail drift away from the source. - Keep CFG at 4.0. The negative branch matters for this LoRA. Lower values can add accessories such as a necklace that were not in the source photo.
- Connect up to four references. The encode nodes grow extra slots when you connect them, so a garment, a face and a prop can each go in separately. State in the prompt what each one is for.
MOSS-Image: Color & Depth Control
Re-pose and re-style a photo while its geometry stays put. The workflow estimates the reference’s geometry with MoGe 3 and passes it to the model through a control adapter LoRA, so pose, framing and silhouette are held by the map while the prompt decides character, wardrobe, setting and light. Requires ComfyUI 0.43.0 or later.
Download Workflow
Download JSON or search “MOSS-Image: Color & Depth Control” in Template Library
fashion_portrait_red_canyon.png
Load into
Load Image. The workflow estimates geometry from it, so any clearly lit portrait works.Get started
- Update ComfyUI to 0.43.0 or later
- Go to Template and search for MOSS-Image: Color & Depth Control
- Download the models listed in model downloads, including
moss_image_color_depth_control.safetensorsandmoge_3_vitg_fp16.safetensors - Load your reference photo and describe the character and scene you want
- Click Queue
Tips on control
Render MoGe Geometryuses the mask by default. Only the silhouette is controlled. Switch it todepthwhen the face profile, shoulders and background falloff should follow the reference too: the pose gets tighter and the prompt has less room.end_percentsets how long the map is held. At 0.6 the last steps render surface and lighting freely. At 1.0 geometry stays pinned to the final step.- The LoRA is what makes the map work. The control adapter is loaded just before the control node, and without it the node has no effect.
- Paint a map by hand when the estimate is wrong.
Painteris already in the graph: connect its output todepth_map, white near and black far.color_mapis unconnected by default, takes one flat colour per region, and must match the output size.
MOSS-Image model downloads
Model files are in Comfy-Org/MOSS-Image on Hugging Face, except the MoGe 3 geometry estimator, which is in Comfy-Org/MoGe. The templates load the int8 checkpoints; bf16 builds of both checkpoints are in the same repository for more VRAM.moss_image_sft_int8_convrot.safetensors
Diffusion model, instruction-tuned checkpoint. Loaded by both SFT templates.
moss_image_base_int8_convrot.safetensors
Diffusion model, Base checkpoint. Loaded by both Base templates.
qwen3.5_9b_w4a8_gptq.safetensors
Text encoder for the four text to image templates and the image edit template. Load it with
CLIPLoader type moss_image.qwen3.5_9b_int8_convrot.safetensors
Text encoder the color and depth control template loads. The other templates run on the w4a8 build above.
flux2-vae_small.safetensors
VAE for MOSS-Image.
moss_image_edit_lora_rank_64_bf16.safetensors
Edit LoRA, 297 MB. Loaded by the image edit template.
moss_image_color_depth_control.safetensors
Color/depth control adapter LoRA, 313 MB. Loaded at strength 1.0 by the color and depth control template.
moge_3_vitg_fp16.safetensors
MoGe 3 geometry estimator, 2.50 GB. Used by the color and depth control template. Comes from Comfy-Org/MoGe.
The bf16 builds
moss_image_sft_bf16.safetensors and moss_image_base_bf16.safetensors are in the same repository. Swap the checkpoint in UNET Loader if you have the VRAM for them.Prompting tips
- Describe the finished image, not the request. The model was trained on captions, so write what the picture looks like rather than an instruction like “make me a poster”. The prompt enhancer follows the same rule, which is why a short prompt still works.
- Base reads tag sequences. With the prompt enhancer off, MOSS-Image-Base accepts comma-separated tags as well as captions, in the documented order: quality, score, meta, year, character, series, artist, then general tags, for example
best quality, highres, hatsune miku, vocaloid, @foo bar, 1girl, blue hair. - Turn the prompt enhancer off to control the wording. Set
enable_prompt_enhancertofalseon the subgraph node and your prompt goes to the model unchanged. With the prompt enhancer on,prompt_enhancer_seedchanges how the prompt is rewritten. Both settings show the result inPreview Any, so you can compare. - Control line breaks yourself. Automatic breaks may not land where you want them. Put real newlines or
\nin the text you want rendered when the position of a break matters. - Use the layout workflow when placement matters. Boxes give the model an explicit position for each element and each block of text, which is more reliable than describing positions in prose.
- Keep the canvas in the recommended range.
ResolutionSelectorpicks the aspect ratio and the megapixel count (1 MP by default). 1 MP to 2 MP is the recommended output range and the model extrapolates from about 0.25 MP to 4 MP; width and height must be multiples of 16. - Start from the template settings, then go slower for the official look. The templates run 25 steps at CFG 2.5 with the
er_sdesampler. The official Base settings are 50 steps at CFG 3 with theeulersampler, so try those if a result is undercooked. - Raise CFG for short prompts on Base. The official CFG range for MOSS-Image-Base is 3.0 to 6.0, above the 2.5 the templates ship. Turn the prompt enhancer off for a short prompt to reach the model, keep 3.0 for a long one, and raise it as needed.
- Keep the negative prompt short. The templates ship
nsfw, worst quality, bad anatomy, watermark, jpeg artifact. - Skip layer guidance runs at layer 22. The subgraph node carries an
SLGtoggle, and 22 is the official layer. Turning it off can look more realistic but may collapse detail; other layers are only reachable inside the subgraph. - Base is for fine-tuning. When you train a LoRA on MOSS-Image, freeze the text encoder.
Going above 2 MP
The recommended output range is 1 MP to 2 MP, and the model extrapolates to about 4 MP. Anything larger is outside that range, so build large images from successive passes instead of one big canvas. The templates feed a fixedEmpty Flux 2 Latent to the sampler, so this needs an edit inside the subgraph:
- Render the first pass at 1 MP or 2 MP.
- Decode the result, resize it in pixel space with
Upscale Image, then encode it again withVAE Encode. Upscaling the latent resamples it directly and loses detail the second pass cannot recover. - Feed the encoded latent to the sampler in place of
Empty Flux 2 Latentand setdenoiseto about 0.6 for a 1.5x step. Lower keeps the first pass intact, higher reworks the composition.
VAE Decode (Tiled).
Reference images and the prompt enhancer
The subgraph node has an optionalref_image (for llm) input. It reaches the prompt enhancer, not the diffusion model: MOSS-Image has no image input, so it cannot copy a reference. With the prompt enhancer on, the image shapes the caption it writes; with the prompt enhancer off, the image is ignored.
The prompt enhancer runs on the Qwen3.5 text encoder the model already loads, through Generate Text, with a system prompt written from the official MOSS-Image prompt enhancer skill. Its output length is max_length, 4096 tokens in the templates. In the MOSS-Image: Text to Image and MOSS-Image Base: Text to Image templates, prompt_enhancer_seed reproduces a caption, and Preview Any shows the text that actually reaches the sampler.