MOSS-Image JSON Layout: Centered yxyx Coordinates

Unofficial guide · Free to read · No sign-up

A MOSS-Image JSON layout places each line of text and each object in a box. The box is not measured from the top-left corner, and it is not written x-then-y. This page explains that coordinate system, using the rules and the seven position arrays already in the MOSS-Image prompt builder. The builder writes the JSON. This guide shows how to read the numbers, and how a top-left xyxy copy of the same numbers misses the region you meant.

Open the MOSS-Image prompt builder

What the JSON is made of

  1. A summary caption, then an items array. The caption describes the whole image. Each kept item is one region: a label of text or object, its own caption, and a bbox.
  2. An empty caption drops the row. The builder skips that item. A position, or words in the text field, do not keep a row whose caption is blank.
  3. Text items carry the exact words to render. When the label is text and the text field has words, the builder adds a text property with those words. It does not add the property when the field is empty. An object item does not get a text property.
  4. The builder names the coordinate system on the JSON. It sets bbox_coord_space to abs_centralized and bbox_format to yxyx. The same script writes summary.meta as ["poster"] and summary.canvas as "single". This guide does not describe any other meta or canvas value.
  5. If the summary caption is empty and at least one item remains, the script fills the caption with “A scene”. If the summary and every caption are empty, it emits no prompt.

Centered yxyx, from the middle of the canvas

Order is y_min, x_min, y_max, x_max. Y comes before X. The origin is the canvas center. Values are negative above center and to the left of center, so values below center and to the right of center are positive. On a 1024 canvas each axis runs from −512 to +512: half of 1024 on either side of the center. The top edge is y = −512, the bottom edge is y = +512, the left edge is x = −512, and the right edge is x = +512.

Sign Y X
NegativeAbove centerLeft of center
PositiveBelow centerRight of center
ZeroThe horizontal midlineThe vertical midline

A 1024 canvas is the one these presets were written for. The builder’s canvas control lists 1024×1024 only. The script does not read that control when it fills a bbox; it uses the arrays below.

The seven position presets, as stored

These arrays are the position menu in the builder, for a 1024×1024 canvas: top, middle, and bottom center, plus the four corners. Width and height in the last two columns are the difference of the stored numbers. They are measurements of those arrays, not a second preset list.

Preset bbox [y_min, x_min, y_max, x_max] Y span X span
Top center−512, −400, −320, 400192px, from the top edge to 320px above center800px, centered on x = 0
Middle center−160, −400, 160, 400320px, from 160px above center to 160px below800px, centered on x = 0
Bottom center320, −400, 512, 400192px, from 320px below center to the bottom edge800px, centered on x = 0
Top left−512, −512, −256, −128256px, from the top edge384px, from the left edge to 128px left of center
Top right−512, 128, −256, 512256px, from the top edge384px, from 128px right of center to the right edge
Bottom left256, −512, 512, −128256px, down to the bottom edge384px, on the left
Bottom right256, 128, 512, 512256px, down to the bottom edge384px, on the right

Top left is negative on both axes: above center and left of center. Top right keeps y negative and makes x positive. Bottom left flips that. Bottom right is positive on both axes. In Gradio, set 1024×1024 so the canvas matches these arrays. This page does not document how to rescale them onto another aspect ratio.

The same four numbers, read three ways

The builder’s travel-poster preset puts the word EXPLORE in the Top center box and a mountain illustration in the Bottom center box. This is the JSON that preset emits.

{
  "summary": {
    "meta": ["poster"],
    "canvas": "single",
    "caption": "A minimalist travel poster with a cream background, a blue mountain illustration in the lower center"
  },
  "items": [
    {
      "label": "text",
      "caption": "Large dark-blue uppercase title centered at the top",
      "text": "EXPLORE",
      "bbox": [-512, -400, -320, 400]
    },
    {
      "label": "object",
      "caption": "A flat blue mountain illustration in the lower center",
      "bbox": [320, -400, 512, 400]
    }
  ],
  "bbox_coord_space": "abs_centralized",
  "bbox_format": "yxyx"
}

Top center, read as centered yxyx

[-512, -400, -320, 400] means y from −512 to −320 and x from −400 to 400. Height is −320 − (−512) = 192. Width is 400 − (−400) = 800. The first number is the top edge of a 1024 canvas, not a left edge. The box is an 800×192 band along the top, centered horizontally, still entirely above the midline.

The same array, read as top-left xyxy

A top-left tool writes x_min, y_min, x_max, y_max and counts from the corner. Feeding it this array assigns x from −512 to −320 and y from −400 to 400. Both x values are left of a top-left origin. On a canvas whose pixels run from 0 to 1024, that box is off the left side. It is not the top-center band. A box copied from a top-left xyxy tool into this format lands in the wrong quadrant for the same reason: the corner origin and the x-before-y order do not match abs_centralized yxyx.

X and Y swapped

Swapping x and y swaps vertical and horizontal. The Top center numbers with those roles exchanged are [-400, -512, 400, -320]. That array is not a preset. Read as yxyx it is y from −400 to 400 and x from −512 to −320. Height is 400 − (−400) = 800. Width is −320 − (−512) = 192. The 800×192 top band has become a 192×800 strip against the left edge.

Reading of the Top center numbers Array Where it sits
Centered yxyx, the preset−512, −400, −320, 400800×192 band on the top edge, centered
Same array as top-left xyxyx −512 to −320, y −400 to 400Left of a top-left origin, not the top band
X and Y exchanged, then read as yxyx−400, −512, 400, −320192×800 strip on the left edge

Bottom center in the same JSON is [320, -400, 512, 400]: y from 320 to 512, below center, touching the bottom edge, with the same 800px horizontal span. Positive y is the lower half. Treating 320 as an x coordinate would slide that mountain sideways.

Canvas size, and where the prompt goes

Multiples of 16, from 512px to 2K

Output width and height must be multiples of 16. The documented range is 512px to 2K, at any aspect ratio. 1024×1024 qualifies: 1024 is a multiple of 16, and it is the canvas these presets use. The builder does not write a different bbox array for a non-square size.

This site builds the prompt. It does not run the model.

Paste the JSON into a Hugging Face diffusers pipeline, into native ComfyUI, or into a quantized build on Civitai. In Gradio, set 1024×1024 to match the layout canvas. Via an API, pass the same JSON string as the prompt. ComfyUI single-file weights, including quantized int8 builds, are repackaged at Comfy-Org/MOSS-Image. This site does not host those files, and it does not generate an image.

SFT to generate. Base to train. Kromoss does not emit this JSON.

MOSS-Image, from the OpenMOSS Team, is a 5B DiT with a Qwen3.5-9B text encoder and a FLUX.2 VAE, under Apache-2.0. Generate with MOSS-Image-SFT. Fine-tune or train a LoRA from MOSS-Image-Base. Kromoss is a separate full fine-tune of Base, used in place of SFT. The Kromoss builder writes a natural-language prompt only. It does not emit JSON layout. The Kromoss Turbo LoRA guide is about why a negative prompt is ignored there. It is not a second coordinate system.

Quotes, and a line break inside them

Rendered text is quoted. A line break inside the quotes is the cue to split lines. The JSON text field holds the exact words; this builder does not wrap that field in a second pair of quotes. The natural-language field does add the quotes, and that field is a single line, so the break goes inside the quotes after you copy. This guide does not describe a separate line-break syntax for the JSON text field, because the builder page does not.

This guide does not assemble a prompt. The builder does, in the browser, from a summary caption and up to three items. Empty captions are skipped. No sign-up.

FAQ

What does a MOSS-Image JSON layout contain?

A summary caption plus an items array. Each kept item is labeled text or object, with a caption and a bbox. Rows with an empty caption are skipped. A text item also carries the exact words to render when those words are filled in. The JSON this site’s builder emits sets bbox_coord_space to abs_centralized and bbox_format to yxyx. It also writes summary.meta as ["poster"] and summary.canvas as "single".

What is centered yxyx?

Box order is y_min, x_min, y_max, x_max. Y comes before X. The origin is the canvas center, not the top-left corner. Values are negative above center and to the left of center. On a 1024 canvas each axis runs from −512 to +512.

Why does a box copied from a top-left tool land in the wrong place?

A top-left xyxy tool counts from the corner and writes x before y. The same four numbers, read as centered yxyx, are measured from the middle and take y first. On the builder’s Top center preset, [-512, -400, -320, 400] is an 800×192 band along the top. Read as top-left xyxy, those x values are both negative, so the box is left of a top-left origin instead of across the top. Swapping x and y swaps vertical and horizontal: the same band becomes a 192×800 strip on the left edge.

What numbers do the position presets use?

They are for a 1024×1024 canvas. The builder’s script stores seven arrays, in yxyx order: Top center [-512, -400, -320, 400], Middle center [-160, -400, 160, 400], Bottom center [320, -400, 512, 400], Top left [-512, -512, -256, -128], Top right [-512, 128, -256, 512], Bottom left [256, -512, 512, -128], and Bottom right [256, 128, 512, 512]. In Gradio, set 1024×1024 to match. This page does not document a rescaling rule for other sizes.

What size can the output be?

Output width and height must be multiples of 16. The documented range is 512px to 2K, at any aspect ratio. 1024×1024 qualifies. The position presets themselves are the 1024×1024 arrays.

Does this site generate the image?

No. This site only builds prompts. It does not host MOSS-Image or generate images. Paste the JSON into Hugging Face diffusers, native ComfyUI, or a quantized build on Civitai. Generation uses MOSS-Image-SFT. MOSS-Image-Base is for fine-tuning and LoRA training.

Does the Kromoss builder emit this JSON?

No. Kromoss is a separate full fine-tune of MOSS-Image-Base by lodestones, used in place of MOSS-Image-SFT. The Kromoss builder writes a natural-language prompt only. It does not emit JSON layout or tag sequences.

How should rendered text be written?

Rendered text is quoted. A line break inside the quotes is the cue to split lines. In JSON layout the text field holds the exact words, and this builder does not add another pair of quotes around that field. In the natural-language field the builder adds the quotes; that field is a single line, so a line break inside the quotes is added after you copy.

Sources: the JSON shape, the centered yxyx rule, and the seven preset arrays on the MOSS-Image prompt builder (the arrays are the POSITIONS object in that page’s script, read for this guide on November 13, 2026). Model identity and where to run it follow the same page: OpenMOSS-Team/MOSS-Image-SFT, OpenMOSS-Team/MOSS-Image-Base, and Comfy-Org/MOSS-Image. NewModelHub is an independent, unofficial site. It is not affiliated with OpenMOSS, Hugging Face, or Civitai.