Toolsiftly

MOSS-Image in ComfyUI: Workflow, Install and Layout JSON

Draw boxes for text, objects and characters, and this builder writes the MOSS-Image layout JSON (abs_centralized, yxyx) to paste into ComfyUI, Gradio or Python — or paste a layout to see where its boxes fall.

Drag empty space to draw. Drag boxes to move; use handles to resize. Arrow keys move, Shift moves 10 px; Delete removes, Ctrl/Cmd+D duplicates, Escape deselects.

    Select a box to edit it.

    Runs entirely in your browser. Nothing you draw or paste is uploaded.

    MOSS-Image is OpenMOSS's 5B open-weights text-to-image model (Apache-2.0), and ComfyUI supports it natively. The four Text-to-Image / Layout templates need ComfyUI v0.42.0 or later. The Image Edit and Color & Depth Control templates need v0.43.0 or later (docs, re-checked November 13, 2026; latest ComfyUI release is v0.45.0, published November 10, 2026 (21:42 UTC) — no MOSS-Image file or layout-format change in that changelog). Put moss_image_sft_int8_convrot.safetensors in models/diffusion_models, qwen3.5_9b_w4a8_gptq.safetensors in models/text_encoders (CLIP Loader type moss_image) and flux2-vae_small.safetensors in models/vae, then open Templates and search MOSS-Image. Edit also needs moss_image_edit_lora_rank_64_bf16.safetensors; Color & Depth needs moss_image_color_depth_control.safetensors plus MoGe 3 (moge_3_vitg_fp16.safetensors). Use the layout JSON builder on this page when box placement matters.

    By the Toolsiftly editorial team · Updated

    How MOSS-Image reads a layout

    FieldMeaning
    summary.captionRequired overall scene description.
    summary.metaOptional array of scene tags.
    summary.canvassingle, multi_panel or collage.
    items[].labeltext, object or character; imported panel and subject labels are retained.
    items[].captionAppearance and role of the item.
    items[].textExact words to render; required for text items.
    items[].bbox[y_min, x_min, y_max, x_max] in integer pixels from the canvas centre. Right and down are positive.
    bbox_coord_spaceabs_centralized
    bbox_formatyxyx

    What is MOSS-Image?

    MOSS-Image is an open-weights text-to-image model from OpenMOSS, released on October 16, 2026 as two checkpoints: MOSS-Image-SFT (instruction-tuned, used by the ComfyUI templates) and MOSS-Image-Base (for LoRA training and fine-tuning).

    MOSS-Image
    Model 5B single-stream diffusion transformer (DiT)
    Text encoder Qwen3.5 9B (ComfyUI CLIP Loader type moss_image)
    VAE FLUX.2 small VAE
    Strengths English and Chinese text rendering, layout control with bounding boxes
    Prompt length Up to about 4,000 tokens
    Image size Trained at 1–2 MP; width and height in multiples of 16
    License Apache-2.0 (free to run on your own GPU)
    ComfyUI Text-to-Image / Layout templates in v0.42.0+; Image Edit + Color & Depth Control in v0.43.0+

    How to install MOSS-Image in ComfyUI

    1. Update ComfyUI to v0.42.0 or later (latest release v0.45.0 came out on November 10, 2026 (21:42 UTC); v0.44.0 was November 4; v0.43.0 on October 27 added the Image Edit and Color & Depth templates). A nightly build from October 16 onward also works. See the ComfyUI releases.
    2. Download the model files from Comfy-Org/MOSS-Image on Hugging Face into the folders below (MoGe 3 for Color & Depth is in Comfy-Org/MoGe).
    3. Open Templates, search for MOSS-Image and pick a Text-to-Image, Layout-Guided, Image Edit, or Color & Depth Control template (Edit / Depth need ComfyUI 0.43.0+).
    4. Write your prompt and click Queue.
    File Folder What it is
    moss_image_sft_int8_convrot.safetensors models/diffusion_models/ Main model (instruction-tuned), used by the standard templates
    moss_image_base_int8_convrot.safetensors models/diffusion_models/ Base model, for LoRA training and comparisons
    qwen3.5_9b_w4a8_gptq.safetensors models/text_encoders/ Text encoder; load it with CLIP Loader, type moss_image
    flux2-vae_small.safetensors models/vae/ VAE
    moss_image_edit_lora_rank_64_bf16.safetensors models/loras/ Edit LoRA (Image Edit template; ComfyUI 0.43.0+)
    moss_image_color_depth_control.safetensors models/loras/ Color/depth control LoRA (Color & Depth template; 0.43.0+)
    moge_3_vitg_fp16.safetensors models/geometry_estimation/ MoGe 3 geometry estimator (Color & Depth; from Comfy-Org/MoGe)

    bf16 versions of both models (moss_image_sft_bf16.safetensors, moss_image_base_bf16.safetensors) are in the same repository if you have more VRAM. The older OpenMOSS plugin still works for loading a local Hugging Face folder, but you don't need it any more.

    Download sizes (Comfy-Org/MOSS-Image on Hugging Face, checked November 6, 2026):

    File Size
    moss_image_sft_int8_convrot.safetensors (or the Base int8 file) 5.41 GB
    moss_image_sft_bf16.safetensors (or the Base bf16 file) 10.16 GB
    qwen3.5_9b_w4a8_gptq.safetensors (text encoder the templates load) 7.34 GB
    flux2-vae_small.safetensors 0.25 GB
    moss_image_edit_lora_rank_64_bf16.safetensors 297 MB
    moss_image_color_depth_control.safetensors 313 MB
    moge_3_vitg_fp16.safetensors (Comfy-Org/MoGe) 2.50 GB

    The template setup (int8 model, w4a8 text encoder and small VAE) is about 13 GB to download. The repository also holds larger text encoders (qwen3.5_9b_int8_convrot, 9.75 GB, and qwen3.5_9b_bf16, 19.31 GB). Neither Comfy nor OpenMOSS publishes a minimum VRAM figure, so start with the int8 files the templates use.

    Which version? Text-to-Image / Layout templates need ComfyUI 0.42.0 or later. Image Edit and Color & Depth Control need 0.43.0 or later. The v0.41.3 release doesn't include the MOSS-Image nodes.

    MOSS-Image ComfyUI workflows

    ComfyUI ships six official MOSS-Image templates: four Text-to-Image / Layout templates (need ComfyUI 0.42.0+) plus Image Edit and Color & Depth Control (need 0.43.0+). Find them under Templates by searching "MOSS-Image", or download the workflow JSON from Comfy-Org's GitHub and drag it onto the canvas:

    Template What it does Workflow JSON
    MOSS-Image: Text to Image Prompt only; the prompt upsampler expands a short idea into a full caption image_moss_image_t2i.json
    MOSS-Image Base: Text to Image Same graph with the Base checkpoint image_moss_image_base_t2i.json
    MOSS-Image: Layout-Guided Text to Image Prompt plus boxes drawn in Create Bounding Boxes image_moss_image_t2i_bboxes.json
    MOSS-Image Base: Layout-Guided Text to Image Layout workflow with the Base checkpoint image_moss_image_base_t2i_bboxes.json
    MOSS-Image: Image Edit Edit one photo with a short instruction (edit LoRA on SFT); needs ComfyUI 0.43.0+ Search Templates → MOSS-Image: Image Edit
    MOSS-Image: Color & Depth Control Re-pose / re-style via MoGe 3 + control LoRA; needs ComfyUI 0.43.0+ Search Templates → MOSS-Image: Color & Depth Control

    The four Text-to-Image / Layout templates share the same core subgraph (loaders, sampler, canvas size). Image Edit adds the edit LoRA on SFT; Color & Depth Control adds the control LoRA plus MoGe 3 geometry estimation. Open a template to reach the nodes:

    Recommended MOSS-Image settings

    Setting Template default Official setting
    Steps 25 50
    CFG 2.5 3
    Sampler er_sde Euler, sgm_uniform scheduler
    Shift 5 (built in) 5
    Skip layer guidance On, layer 22 Layer 22
    Size 1 megapixel 1–2 MP; works from about 0.25 to 4 MP; width and height in multiples of 16

    Start with the template; if an image looks undercooked, switch to 50 steps at CFG 3. Describe the finished picture ("a cream travel poster with the title EXPLORE at the top") rather than giving an instruction ("make me a poster"). Put real line breaks (\n) in text you want rendered on separate lines.

    Using the layout JSON in ComfyUI

    There are two ways to place things with boxes:

    Either way, generate at exactly the canvas size you laid out. The boxes are in pixels from the centre, and the JSON doesn't store the image size, so a different size puts them in the wrong place. In the layout template, set enable_prompt_upsampler to off so the upsampler doesn't rewrite your JSON. Outside ComfyUI, paste the JSON into the Prompt box in OpenMOSS's Gradio app, or pass json.dumps(layout, ensure_ascii=False) as the prompt in Python.

    Layout JSON example: square poster (1024 × 1024)

    This is the official example from OpenMOSS's user guide. On a 1024 × 1024 canvas both axes run from −512 to 512, and each bbox is [y_min, x_min, y_max, x_max].

    {
      "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"
    }
    

    Layout JSON example: portrait event poster (1024 × 1536)

    On a 2:3 canvas, x runs from −512 to 512 and y from −768 to 768. Set the width to 1024 and the height to 1536 before you generate.

    {
      "summary": {
        "meta": ["event poster"],
        "canvas": "single",
        "caption": "A midnight-blue print for a neighborhood lantern festival, with warm paper lanterns below spacious cream lettering."
      },
      "items": [
        {
          "label": "text",
          "caption": "Large cream title.",
          "text": "LANTERN NIGHT",
          "bbox": [-640, -440, -440, 440]
        },
        {
          "label": "text",
          "caption": "Small date line.",
          "text": "OCTOBER 24 · 7 PM",
          "bbox": [-380, -360, -280, 360]
        },
        {
          "label": "object",
          "caption": "A cluster of glowing paper lanterns.",
          "bbox": [-160, -400, 640, 400]
        }
      ],
      "bbox_coord_space": "abs_centralized",
      "bbox_format": "yxyx"
    }
    

    To preview one in the builder above, set Aspect preset to 1:1 or 2:3 first, then paste the JSON into the Layout JSON box and press Load JSON.

    MOSS-Image ComfyUI errors and fixes

    Problem Fix
    No Text-to-Image / Layout MOSS-Image templates, or "missing node" on those workflows Your ComfyUI is older than v0.42.0. Update it, or switch to the nightly build
    Image Edit or Color & Depth templates missing / fail to load Those need ComfyUI v0.43.0 or later (T2I/Layout alone is not enough)
    moss_image isn't in the CLIP Loader type list Same cause: update ComfyUI to at least v0.42.0
    Text or objects land in the wrong place The image size doesn't match the layout canvas. Use the same width and height
    Your layout gets ignored or reworded Turn enable_prompt_upsampler off
    An old plugin workflow gives odd results after switching to native nodes Import a native template instead of swapping loaders. Don't keep the plugin's ModelSamplingSD3 node; to change shift natively, use ModelSamplingAuraFlow (multiplier 1)
    Out of memory Use the int8 files (the template default), not bf16
    Line breaks in rendered text are in the wrong place Add \n where you want each break

    Changelog

    Frequently asked questions

    What is MOSS-Image?

    MOSS-Image is OpenMOSS's 5B open-weights text-to-image model, released on October 16, 2026 under Apache-2.0. It is strong at English and Chinese text rendering and can follow a JSON layout of bounding boxes.

    Does ComfyUI support MOSS-Image?

    Yes. Native support was merged on October 16, 2026. Text-to-Image / Layout templates are in ComfyUI v0.42.0 and later; Image Edit and Color & Depth Control need v0.43.0 or later. Built-in templates and a MOSS-Image Layout Prompt node — no custom node required.

    Do I need ComfyUI Manager or a custom node for MOSS-Image?

    No. ComfyUI v0.42.0 and later support MOSS-Image natively, with built-in templates and nodes. OpenMOSS's older plugin, which you could install from ComfyUI Manager, is only needed to load a local Hugging Face model folder.

    Which files do I need for MOSS-Image in ComfyUI?

    For Text-to-Image / Layout: moss_image_sft_int8_convrot.safetensors in models/diffusion_models, qwen3.5_9b_w4a8_gptq.safetensors in models/text_encoders and flux2-vae_small.safetensors in models/vae (Comfy-Org/MOSS-Image). Image Edit also needs moss_image_edit_lora_rank_64_bf16.safetensors in models/loras/. Color & Depth needs moss_image_color_depth_control.safetensors in models/loras/ plus moge_3_vitg_fp16.safetensors in models/geometry_estimation/ (Comfy-Org/MoGe).

    What is the MOSS-Image layout JSON format?

    A summary (caption, meta tags, canvas type) plus a list of items. Each item has a label (text, object or character), a caption, the exact text for text items, and a bbox [y_min, x_min, y_max, x_max] in pixels from the canvas centre, with bbox_coord_space abs_centralized and bbox_format yxyx.

    Why are my MOSS-Image boxes in the wrong place?

    The layout is in pixels measured from the centre of the canvas, so the image must be generated at the same width and height you laid out. Also turn off the prompt upsampler so it doesn't rewrite the layout.

    What are the best MOSS-Image settings?

    The official settings are 50 steps, CFG 3, shift 5, Euler with sgm_uniform and skip layer guidance at layer 22, at 1–2 megapixels. ComfyUI's templates use 25 steps at CFG 2.5 with er_sde for speed.

    Is MOSS-Image free?

    Yes. MOSS-Image's weights are open under Apache-2.0, so you can run it on your own GPU without an API key or per-image fees. OpenMOSS also offers it as a paid hosted API on its MOSI platform since October 30, 2026.

    Is this layout builder official?

    No. It's a free browser tool from Toolsiftly that writes the same layout format MOSS-Image reads. Nothing you draw is uploaded.

    How big is the MOSS-Image download for ComfyUI?

    About 13 GB for the core Text-to-Image setup: the int8 model (5.41 GB), the qwen3.5_9b_w4a8_gptq text encoder (7.34 GB) and flux2-vae_small (0.25 GB). Edit LoRA is 297 MB; color/depth control LoRA is 313 MB; MoGe 3 is 2.50 GB. Sizes from Comfy-Org docs / Hugging Face (re-checked November 6, 2026).

    Facts checked against official documentation on . Official: ComfyUI docs, OpenMOSS/MOSS-Image official repository, ComfyUI v0.45.0 release (official).