MOSS-Image box layout: what actually controls the text

MOSS-Image is an open 5B model that renders in-image text unusually well in English and Chinese. People choose it for that, but most first runs disappoint: prose poster descriptions put text wherever the model chooses.
Use a box template instead of refining the prompt.
The four official templates
The four templates are in Comfy-Org/workflow_templates (MIT); they are not interchangeable:
image_moss_image_t2i.json— SFT — Plain text-to-image, one prompt, no boxesimage_moss_image_t2i_bboxes.json— SFT — Text-to-image with bounding boxesimage_moss_image_base_t2i.json— Base — Plain text-to-image, one prompt, no boxesimage_moss_image_base_t2i_bboxes.json— Base — Text-to-image with bounding boxes
Two load the SFT checkpoint and two load Base. The Base template still loads with SFT weights, so a mismatch can show up as "red nodes" or a silent style change instead of an error. Match the file to the checkpoint first.
Start with the SFT bboxes template. It is instruction-tuned and follows the layout description more literally, so text lands closer to the requested positions. Base gives more variation; in my runs, it did slightly better on dense small-print grids from a single prompt. That is a second-week experiment, not a first-day one.
Why boxes beat prose
A bboxes node takes an items array. Each item is either {"type": "text", "text": "..."} or {"type": "object", ...}, with a caption and bbox. Boxes use absolute pixels in [y_min, x_min, y_max, x_max] on a 1024 × 1024 canvas, with the center at 0 and each edge 512 away. Both image dimensions must be positive multiples of 16.
Geometry is data, not language. With prose alone ("a headline at the top, three quotes in the corners"), the model made a plausible composition and placed the words roughly there. With five boxes, all five strings came out spelled exactly as typed, in the positions I drew, with line breaks matching the box heights.
The layout, box by box
The knight poster uses one object box and five text boxes (each entry is x, y, width, height in pixels on the 1024 canvas):
Object box
143, 184, 778, 840: the kneeling knight, greatsword planted point-down, daisies and roses growing out of the open helmet. Long caption; no quoted text.Title
0, 56, 1024, 333:MOSS, enormous cream serif capitals cropped by both side edges.Corner block
31, 26, 205, 67:MOSS IMAGE/PROJECT, two tiny lines.Quote A
61, 655, 276, 143:"ALL THAT FADES / WAS NEVER MEANT / TO REMAIN", three centered lines.Quote B
666, 440, 358, 174: two lines of small serif.Quote C
492, 768, 543, 225:"WITHIN THE HOLLOW, / SOMETHING ALWAYS / TAKES ROOT."
Three details matter more than the coordinates:
The caption is a description;
textis the copy. Keep them separate. A caption that reads like a headline can get printed.A box narrower than its string wraps. The break happens at the box, not the prompt. Widen the box before shortening the line.
Long lines degrade before short ones do. Two- to six-character labels, prices, dates and 2–3-word headlines come out clean nearly every time. My failures start past roughly 30 characters in a small box.
Settings
The native ComfyUI template uses 25 steps, CFG 2.5, er_sde, scheduler simple, denoise 1 and shift 5, a speed trade-off inherited from the ComfyUI pull request. OpenMOSS defaults are 50 steps and CFG 3; the ComfyUI docs suggest those for undercooked results. Change one setting at a time: CFG moves the composition as well as the text, so raising it and changing boxes in the same run teaches you nothing.
You do not need a negative prompt for text. If a word is misspelled, the line is too long for its box, or the model is printing something you only described.
If you would rather not install ComfyUI
I run a hosted version of the same model with a visual box editor. Boxes are stored as fractions of the canvas, so one layout survives an aspect-ratio change. Either way, proofread the image's small print before printing. The four official templates, their required model files and settings are covered here: https://mossimage.dev/blog/moss-image-comfyui-guide