עברית 📰 Blog
← Back to Blog
AI Images

MOSS-Image: Control Text and Layout in AI Images With JSON

Masterphub Editorial
AI News Desk
October 22, 2026

Share this article

MOSS-Image: Control Text and Layout in AI Images With JSON
Short answer: MOSS-Image is a new open image model from OpenMOSS (released October 16, 2026) that takes a JSON layout: you list each element, its exact text, and a box for where it goes. Good for posters, infographics and hero banners where text placement counts. One correction to the guides going around: the boxes are pixels measured from the center of the canvas, not 0 to 1 fractions.

What it is

MOSS-Image is a 5B parameter text to image model from the OpenMOSS team. There are two versions: MOSS-Image-Base, and MOSS-Image-SFT, which is Base fine-tuned on curated data. Code and weights are public, the pipeline code is under Apache 2.0, and there is a native ComfyUI plugin (search "MOSS-Image" in ComfyUI Manager). It accepts prompts up to 4K tokens.

How the JSON works

A prompt has a summary (the overall look) and a list of items. Each item gets a label, a caption that describes it, an optional text with the exact words to print, and a bbox.

  • Order: [y_min, x_min, y_max, x_max] (top, left, bottom, right).
  • Units: pixels measured from the center of the canvas. On a 1024 x 1024 image each axis runs from -512 to +512. So the top left corner is [-512, -512] and the center is [0, 0].
  • To convert normal pixel numbers: subtract half the width from x and half the height from y.

A poster you can try (1024 x 1024)

{
  "summary": "A warm editorial poster for a specialty coffee brand. Natural light, rich coffee tones, clean bold typography.",
  "items": [
    {
      "label": "Headline",
      "text": "MAKE EVERY MORNING COUNT",
      "caption": "Large bold headline across the top",
      "bbox": [-460, -430, -300, 430]
    },
    {
      "label": "Hero product",
      "caption": "A ceramic cup of fresh coffee with steam, beans scattered around",
      "bbox": [-260, -330, 250, 330]
    },
    {
      "label": "Benefits",
      "text": "FRESHLY ROASTED | ETHICALLY SOURCED",
      "caption": "Small clean line of text",
      "bbox": [290, -400, 360, 400]
    },
    {
      "label": "Call to action",
      "text": "DISCOVER YOUR NEXT FAVORITE",
      "caption": "Button-like block near the bottom",
      "bbox": [400, -260, 470, 260]
    }
  ]
}

Settings the team recommends

50 steps, CFG 3, shift 5, a flow-matching Euler sampler. If you run out of GPU memory, switch to the Sequential memory mode or make the image smaller.

Before you publish anything

  • Read every word in the image. Writing the text in the prompt does not guarantee it comes out spelled right.
  • The boxes guide the layout. They are not exact.
  • Keep it simple: one headline, one main visual, two or three small text blocks. Add more only after the base layout works.
  • Check the license of the exact version you use before commercial work.

Sources

Share this article