Skip to main content
Back

Ends Soon: Get 20% off all AlphaSignal Pro subscriptions. Subscribe here.

Comfy-Org Brings MOSS-Image 5B to ComfyUI With JSON Layout Control

Comfy-Org repackaged the OpenMOSS 5B diffusion transformer for ComfyUI, bringing JSON layout prompts and strong text rendering to local workflows under Apache 2.0.

Pro

  • Comfy-Org published repackaged MOSS-Image weights for direct use in ComfyUI workflows.
  • MOSS-Image is a 5B diffusion transformer from OpenMOSS with Apache 2.0 license.
  • Supports JSON layout prompts, 4K-token inputs, and strong in-image text rendering in English and Chinese.
  • Ships Base (for LoRA training) and SFT (curated fine-tune for general use) checkpoints.
  • Trained on 3.2 billion images, uses a 9B Qwen3.5 text encoder and FLUX.2 VAE.
  • Int8 quantized variants included; code and technical report on GitHub.

Comfy-Org has packaged OpenMOSS’s MOSS-Image-Base and MOSS-Image-SFT checkpoints for ComfyUI’s standard model directories. The weights bundle removes the need to assemble the original Diffusers pipeline, giving developers a simpler route to local generation, fine-tuning, and node-based workflows.

MOSS-Image is a 5B-parameter diffusion transformer developed by OpenMOSS, a research group backed by Fudan University, the Shanghai Innovation Institute, and MOSI Intelligence. Its main feature is structured prompting: alongside natural language and booru-style tags, the model can accept JSON layouts that specify the positions of text and visual elements.

One bundle, three model directories

The repository provides bf16 and quantized int8 versions of both image checkpoints, plus the Qwen3.5 text encoder and FLUX.2 VAE required for end-to-end inference. The files follow this directory structure:

ComfyUI/
  models/
    diffusion_models/
      moss_image_base_bf16.safetensors
      moss_image_base_int8_convrot_attn.safetensors
      moss_image_sft_bf16.safetensors
      moss_image_sft_int8_convrot_attn.safetensors
    text_encoders/
      qwen3.5_9b_int8_convrot.safetensors
    vae/
      flux2-vae.safetensors
  • Diffusion model: The 5B image backbone denoises latent representations into the requested composition.
  • Text encoder: A 9B Qwen3.5 model converts prompts and structured instructions into conditioning data.
  • VAE: The FLUX.2 autoencoder converts the final latent representation into an image.

The 9B text encoder is larger than the image backbone, creating a substantial memory footprint even though MOSS-Image is described as compact. The prequantized int8 files reduce storage and VRAM pressure without requiring developers to convert the weights locally. Actual memory use depends on resolution, workflow, precision, attention implementation, and CPU offloading.

Install the checkpoint you plan to use

  1. Download one Base or SFT diffusion checkpoint in either bf16 or int8 format.
  2. Download the Qwen3.5 text encoder and FLUX.2 VAE.
  3. Copy each file into the matching ComfyUI directory shown above.
  4. Restart ComfyUI so its model lists refresh.
  5. Load a MOSS-Image-compatible workflow from the project integration rather than a generic Stable Diffusion checkpoint workflow.

The int8 checkpoint is the practical starting point for memory-constrained systems. The bf16 version avoids weight quantization and requires substantially more memory. File size alone does not determine whether a workflow will fit, because activations, attention, the VAE, and output resolution add runtime overhead.

JSON layouts give prompts coordinates

MOSS-Image’s model card emphasizes text rendering and layout control rather than raw parameter count. A structured prompt can describe bounding boxes for captions, panels, objects, or other elements, allowing the diffusion transformer to condition on explicit spatial instructions instead of inferring every position from prose.

That interface suits posters, memes, infographics, advertisements, comic panels, and UI mockups where approximate placement matters. Developers should follow the project’s documented JSON schema because arbitrary JSON does not automatically become a valid layout prompt.

The model also supports prompt contexts of up to 4,000 tokens. That figure refers to the conditioning context, not a 4K output resolution. Longer context can hold detailed scene descriptions, layout metadata, and text content, although longer prompts also increase encoder work and do not guarantee faithful rendering of every instruction.

SFT generates; Base preserves training flexibility

Checkpoint Best use Key property
MOSS-Image-SFT General image generation Fine-tuned on curated data for Chinese and English text, anime, illustration, and photorealistic output.
MOSS-Image-Base LoRA training and domain fine-tuning Retains the pretrained model before supervised fine-tuning or inference distillation.

OpenMOSS says the Base checkpoint was left undistilled and did not receive post-training changes to inference behavior such as classifier-free guidance parameters. That choice preserves more of the original training signal for LoRA development and custom fine-tuning. SFT is the more suitable default for developers who only need inference.

A large training run aimed at long text

OpenMOSS reports training MOSS-Image on 3.2 billion images and released the specified code and weights under Apache 2.0. Teams considering commercial deployment should still review the repository terms, training-data disclosures, output risks, and any obligations attached to their own fine-tuning data.

The release includes LongLongTextBench, a benchmark containing 240 literary-text rendering tasks split evenly between English and Chinese. Its targets average 1,339.8 characters, reflecting the model’s focus on unusually long text inside generated images. Because OpenMOSS created and reported the benchmark, comparisons should be checked against independent evaluations and reproducible settings.

Text and layout lead the feature set

Early community reports favor MOSS-Image for anime and illustration workflows, particularly when compositions include captions or prescribed layouts. Reported limitations include fine anatomy, complex photorealistic scenes, exact glyph accuracy, and the cost of loading a 9B encoder for a 5B image model. Structured layouts improve positional control, but they do not guarantee pixel-perfect placement or error-free typography.

Developers evaluating the model should test their own fonts, languages, aspect ratios, text lengths, and target hardware. Useful comparisons should record checkpoint version, precision, seed, sampler settings, resolution, VRAM use, generation time, and any manual correction applied after generation.

A focused option for local generation tools

The Comfy-Org mirror had passed 90,000 downloads at publication time, indicating substantial interest in a native ComfyUI package. OpenMOSS also provides Diffusers and Gradio tooling, ModelScope mirrors, Hugging Face Spaces, a ComfyUI integration, and technical materials through the project repository.

MOSS-Image fits workflows that need local execution, long prompt contexts, embedded Chinese or English text, and layout-aware generation. Self-hosting removes vendor per-image charges and keeps prompts within the operator’s environment, while leaving hardware, maintenance, moderation, and compliance costs with the developer.