NBNA · Model notes
MOSS-Image: 5B Text-to-Image Model Guide (ComfyUI Setup)
How this page relates to NBNA
- Who it is for
- People comparing MOSS-Image with the model they can use here, or planning a local install.
- What you get
- The official Space, ComfyUI and Python paths with the project’s own settings, plus a documented-positioning comparison that says plainly what we have not tested.
- What we do not do
- NBNA does not host MOSS-Image, does not sell MOSS-Image credits, and cannot accept MOSS-Image layout prompts in its generator.
MOSS-Image is an open-weights AI text-to-image model family that the OpenMOSS team released on October 16, 2026. It pairs a 5B backbone with prompts of up to 4K tokens and a JSON layout format that can place text and objects at chosen coordinates.
This is an independent guide, not affiliated with OpenMOSS. Below you will find what the release ships with, how to try the official demo, how to run it locally or in ComfyUI, what the project documents about text rendering next to Qwen-Image, and what to check before you spend an afternoon on a local install.
Last checked: 2026-10-19
What MOSS-Image Is
MOSS-Image is a text-to-image model family from the OpenMOSS Team, the group that published the code, weights and technical report. The family has two checkpoints, MOSS-Image-Base and MOSS-Image-SFT, which share one architecture and sampling interface. The official Hugging Face Space, linked below, describes itself as a gr.Workflow node canvas and lets you switch between the two checkpoints.
The project highlights native layout control, strong text rendering, prompts of up to 4K tokens, anime and photorealistic styles, a compact backbone that is meant to be efficient and easy to fine-tune, and training on heterogeneous GPU platforms. Code and weights were published on October 16, 2026, and a technical report followed on arXiv.
- Weights: MOSS-Image-Base and MOSS-Image-SFT, published under Apache-2.0
- Backbone: 5B parameters, described by the project as compact and efficiency-oriented
- Prompts: up to 4K tokens; the ComfyUI loader caps text encoding at 4096 tokens
- Layout: a JSON prompt can describe the scene and place individual text and objects with bounding boxes
- Runtimes announced with the release: ComfyUI, SGLang and vLLM-Omni, alongside the reference Diffusers pipeline and a Gradio app
- Hosted option: the official MOSS-Image Workflow Space, running on Hugging Face ZeroGPU with prompt, size, steps, seed and Base/SFT controls
MOSS-Image-Base vs MOSS-Image-SFT
Base is the starting text-to-image model, and SFT is fine-tuned from Base on curated data. The project’s own comparison shows the SFT checkpoint producing clearer text grouping and a more organised whiteboard layout, which makes it the practical default for layout-heavy posters, slides and text-in-image work.
Base remains the checkpoint to fine-tune on your own data, and the one to read alongside the technical report when you want to understand the architecture. Both use the same sampling interface, so switching between them does not require a new pipeline.
Which Route Fits Your Setup?
The model is the same on the Space and on your own GPU; what changes is who controls the hardware and the data. The third option is a different model, and the table says so instead of implying parity.
| Option | Best for | Trade-off |
|---|---|---|
| Official Hugging Face Space | A quick check of Base or SFT without installing anything | Queue and quotas are controlled by Hugging Face and the project team |
| Local ComfyUI or Python | Repeatable workflows, layout JSON, LoRAs and batch runs | Your own NVIDIA GPU (roughly 28 GB of bf16 weights before activations; int8 variants reduce it), setup time and model maintenance |
| NBNA browser generator | A finished 1K image without a local GPU environment | Runs Nano Banana 2.1, not MOSS-Image; one credit per 1K image |
How to Run MOSS-Image: Official Space, ComfyUI, or Local Python
The quickest route is the official MOSS-Image Workflow Space on Hugging Face, which the project page links to as its Live Demo. It runs on ZeroGPU, exposes prompt, negative prompt, image size, steps, seed, image count, and a Base or SFT model choice, and describes itself as a gr.Workflow node canvas. Quotas and queueing belong to Hugging Face and the project team, so the demo can be busy or unavailable even when the weights remain downloadable.
For a local install, the documented routes are the Diffusers pipeline in Python, the bundled Gradio app, or the ComfyUI plugin; all of them need an NVIDIA GPU and a CUDA-compatible PyTorch build. Third-party “MOSS-Image online” pages may exist, so check which checkpoint one loads before trusting its output.
The reference example loads the pipeline with a custom pipeline file, bfloat16 for the diffusion transformer and float32 for the VAE, and generates with 50 steps, guidance scale 3 and negative-branch skipping at layer 22; the negative prompt is empty in the Python API. When memory is tight, the Gradio app offers GPU resident, Component and Sequential memory modes. Compile DiT is disabled by default and unavailable in Sequential mode.
- Open the official Space when you only need a quick result, and treat its quota as a hosting limit rather than a model limit.
- Clone the repository and create a Python 3.10+ virtual environment.
- Install a PyTorch build that matches your CUDA environment, the project requirements, and the UI extras needed by the Gradio app.
- Start the Gradio app for a single-machine interface, or install the ComfyUI plugin if you want to keep a node workflow.
- Generate, then proofread any rendered text before you use the image.
git clone https://github.com/OpenMOSS/MOSS-Image.git
cd MOSS-Image
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e '.[ui]'
python gradio_app.py --model OpenMOSS-Team/MOSS-Image-BaseLocal Python Pipeline
If you prefer code to the Gradio interface, the reference pipeline is short. It loads the custom pipeline file with trust_remote_code, keeps the VAE in float32 and the rest in bfloat16, and reproduces the recommended sampling settings. The prompt below is a plain poster brief; swap in your own and keep the layout JSON in the prompt string when you use layout control.
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"OpenMOSS-Team/MOSS-Image-Base",
custom_pipeline="pipeline_moss_image",
trust_remote_code=True,
torch_dtype={"default": torch.bfloat16, "vae": torch.float32},
)
pipe.scheduler = type(pipe.scheduler).from_config(pipe.scheduler.config)
pipe.to("cuda")
image = pipe(
"A minimalist travel poster with a cream background, a blue mountain illustration, and the title EXPLORE at the top.",
height=1024, width=1024,
num_inference_steps=50, guidance_scale=3.0,
uncond_skip_layers=[22],
generator=torch.Generator("cpu").manual_seed(42),
).images[0]
image.save("poster.png")Native Layout Prompts in JSON
Most text-to-image tools take a sentence and hope for the best. MOSS-Image also accepts a structured layout: a JSON document describes the scene and lists items, where each item carries a label, a caption, the literal text to render when relevant, and a bounding box. That is what makes the model interesting for posters, slides, packaging mock-ups and any composition where words have to land in a specific place.
Two fields decide how those coordinates are read. bbox_format is shown as yxyx, so each box is [y_min, x_min, y_max, x_max]. bbox_coord_space is shown as abs_centralized, so coordinates are pixels measured from the centre of the canvas: on a 1024×1024 canvas each axis runs from −512 to +512, with x increasing to the right and y increasing downward. Keep the layout consistent with the width and height you request, or the composition will not land where you expect.
{
"summary": {
"meta": ["poster"],
"canvas": "single",
"caption": "A minimalist travel poster with a cream background, a blue mountain illustration, and the title EXPLORE at the top."
},
"items": [
{
"label": "text",
"caption": "Large dark-blue uppercase title centered at the top.",
"text": "EXPLORE",
"bbox": [-416, -384, -288, 384]
},
{
"label": "object",
"caption": "A flat blue mountain illustration in the lower center.",
"bbox": [-192, -288, 384, 288]
}
],
"bbox_coord_space": "abs_centralized",
"bbox_format": "yxyx"
}ComfyUI Setup for MOSS-Image
The project’s release news says MOSS-Image had day-0 ComfyUI support, and the repository documents a native plugin that you can install from ComfyUI Manager. The project also says it is still working toward integration into the official ComfyUI repository, so read “day-0 support” as a plugin release, not as a merge into the upstream ComfyUI repo. You can copy comfyui/moss-image/ into ComfyUI/custom_nodes/ and restart, run the repository’s install script against an existing ComfyUI root, or follow the README’s note to search for MOSS-Image in ComfyUI Manager. The nodes output MODEL, CLIP and VAE and use ComfyUI’s own sampling and memory management. The example workflow runs 50 steps, CFG 3, Shift 5 and negative-branch skipping at layer 22 with Euler and sgm_uniform at 1024×1024.
Two details from the project README are worth knowing before you tune anything. The plugin’s loader reads a local model directory and does not download weights from a Hub repository ID, and the repackaged single-file weights from the ComfyUI organisation are split across the standard model folders. ComfyUI’s native scheduler also differs from the standalone pipeline, so matching seeds and parameters do not guarantee identical images. Keep ModelSamplingSD3 before the SLG node so the schedule and the SLG thresholds share the same shift.
| ComfyUI folder | Files |
|---|---|
| models/diffusion_models | moss_image_base_bf16.safetensors, moss_image_sft_bf16.safetensors (int8 variants also published) |
| models/text_encoders | qwen3.5_9b_bf16.safetensors (int8 and w4a8 variants also published) |
| models/vae | flux2-vae.safetensors, flux2-vae_small.safetensors |
Downloading the Repackaged Weights and Placing the Files
Download the Comfy-Org repackaged files or the original Hugging Face checkpoints before you open the workflow. The repackaged route uses the standard ComfyUI model folders shown above, while the native plugin loader points at a local Diffusers directory containing transformer, text_encoder, tokenizer and vae subfolders.
Do not rename files unless you also update the loader node. For lower-memory GPUs, the diffusion transformer has an int8_convrot variant, while the text encoder adds int8_convrot and w4a8_gptq variants; the table lists the bf16 names because they are the default in the published workflow.
Text Rendering: What Each Project Documents
Text rendering is the reason most people look this model up, so here is an honest framing. The table records what each project documents about itself and what this website actually runs. It is not a benchmark we performed, and we have not generated MOSS-Image images here to compare them pixel by pixel.
Read published claims as the projects’ own positioning. Qwen-Image was released in August 2025 with Apache-2.0 weights, and its documentation markets complex text rendering, especially Chinese; the 20B MMDiT figure comes from its technical report (arXiv:2508.02324), not the model card. That is the release this comparison uses, and the Apache-2.0 cell applies to it. Qwen has since shipped newer image models, including Qwen-Image-2.1, whose model card describes a 7B visual generation component with unified generation and editing under a different licence, so do not read the Qwen column as a statement about the current version. MOSS-Image is far smaller at 5B and adds a layout prompt format, so the practical difference is often where you can run the model and how you control composition, not only typography quality.
| MOSS-Image | Qwen-Image | Nano Banana 2.1 on NBNA | |
|---|---|---|---|
| Weights | Apache-2.0, base and SFT checkpoints | Apache-2.0 | Closed, hosted through Kie |
| Where it runs | Official Hugging Face Space on ZeroGPU; your GPU: Diffusers, Gradio, ComfyUI, SGLang, vLLM-Omni | Your GPU, or hosted demos such as the Space listed by the project | This browser, after signing in |
| Composition control | JSON layout prompt with bounding boxes | Prompt text and its own editing pipeline | Prompt text plus 1:1, 16:9 and 9:16 presets |
| Documented strength | Strong text rendering with native text-driven layout | Complex text rendering, especially Chinese, and precise editing | General 1K text-to-image through a hosted model |
| Cost model | Your own compute, or the official Space under Hugging Face’s quota and queueing rules | Your own compute, or a hoster’s price | NBNA only: one credit per 1K image; three trial credits once for new accounts |
Our browser generator runs Nano Banana 2.1 through Kie, not MOSS-Image. Each 1K image uses one credit, and new accounts receive three trial credits once.
Limits and What to Check Before You Commit
The project does not publish a single supported VRAM minimum; it describes memory modes for constrained GPUs instead. As a rough arithmetic guide, bf16 weights take about 2 GB per billion parameters, so the 5B diffusion transformer is roughly 10 GB and the 9B text encoder roughly 18 GB, about 28 GB combined before activations. A 24 GB card should therefore plan on the published int8 variants or Sequential mode. Treat this as an estimate from weight size, not a tested minimum, and measure on your own GPU.
Two practical cautions. The weights are Apache-2.0, but the repository notes that the pipeline code and third-party components keep their own licenses, which matters if you redistribute a packaged app. And an open-weights release is not a hosted service: nothing in the release promises uptime, moderation or a download button on somebody else’s website.
- The official Space is third-party hosted: its uptime, quotas and data handling are controlled by Hugging Face and the project team, not by us.
- Hardware requirements are not published as one number; use the weight-size estimate above and test your GPU.
- ComfyUI and the standalone pipeline can produce different images from the same seed.
- Text rendered inside an image still needs proofreading before publication.
Frequently asked questions
Is MOSS-Image free to use?
The model weights are published under Apache-2.0, so you can download and run them without paying a licence fee to the project. You still pay for your own compute if you run it locally, or a provider’s rate if you use a hosted service. The weights and the pipeline code are both Apache-2.0, but the pipeline includes BSD-3-Clause code, and the Qwen text encoder, FLUX VAE and other third-party components keep their own licences; model-weight licences are separate from the pipeline code licence.
What is the difference between MOSS-Image-Base and MOSS-Image-SFT?
Both checkpoints share one architecture and sampling interface. Base is the starting text-to-image model, and SFT is fine-tuned from it on curated data. In the project’s own side-by-side example, the SFT checkpoint produces clearer text grouping and a more organised layout, so it is the reasonable default for layout-heavy work while Base is the one to fine-tune.
Can I use MOSS-Image in ComfyUI?
Yes. The project says MOSS-Image had day-one ComfyUI support and ships a bundled native plugin; the README also points to ComfyUI Manager, and the ComfyUI organisation republished the weights as single-file safetensors with the matching text encoder and VAE. The plugin’s loader reads a local model directory rather than downloading by repository ID.
Does MOSS-Image render Chinese text inside images?
The official quick-start example asks for a handwritten Chinese sticky note and shows the model producing it, and the project lists strong text rendering among its features. That is a demonstration in the project’s own material, not a guarantee for every prompt, font or length, so proofread any rendered text before publishing it.
Is there an online demo of MOSS-Image?
Yes. The project links to an official Hugging Face Space called MOSS-Image Workflow, which runs on ZeroGPU and lets you choose the Base or SFT checkpoint and set the prompt, image size, steps and seed. It is a hosted demo under Hugging Face’s quotas and queueing rules, not a permanent service. For repeated local runs, use the Diffusers pipeline, the Gradio app or ComfyUI on your own NVIDIA GPU.
Sources
- MOSS-Image project page — OpenMOSSModel family, features, layout example, sampling settings and quick start.
- Official MOSS-Image Workflow SpaceOfficial ZeroGPU demo; the project describes it as a gr.Workflow node canvas with Base/SFT choice and sampling controls.
- MOSS-Image Technical Report on arXivTechnical report linked from the repository news entry.
- ComfyUI integration guide (comfyui/README.md)Plugin installation, workflow defaults and scheduler caveats.
- MOSS-Image Space NOTICE.mdThird-party licences: BSD-3-Clause code, Qwen text encoder and FLUX VAE.
- OpenMOSS/MOSS-Image on GitHubCode, release news (day-0 ComfyUI support), user guides, ComfyUI plugin and Manager install, prompt-enhancer skill.
- MOSS-Image-Base weights on Hugging FaceApache-2.0 checkpoint referenced by the quick start.
- MOSS-Image-SFT weights on Hugging FaceFine-tuned checkpoint compared with Base on the project page.
- Comfy-Org/MOSS-Image repackaged filesComfyUI file placement for diffusion models, text encoder and VAE.
- Qwen/Qwen-Image model cardComparison reference for documented text rendering and licence.
- Qwen-Image Technical Report (arXiv:2508.02324)Source for the 20B MMDiT architecture cited in the comparison.
- Qwen/Qwen-Image-2.1 model cardSource for the later 7B visual-generation component and its different licence.
Third-party pages are listed for verification. We do not control their content or availability.