Want a faster starting point?Pick a template, replace its text, and export valid layout JSON.
Open the JSON Layout Generator

What is a JSON image prompt?

A JSON image prompt describes an image as structured data instead of one sentence: a summary caption plus a list of items, each with a label, caption, and bounding box. MOSS-Image reads that structure as layout guidance, giving text and objects intended regions instead of relying only on spatial adjectives.

OpenMOSS marks layout prompts as experimental. Coordinates make the request more explicit, but they do not turn image generation into a pixel-perfect design tool. The final position, lettering, and visual details can still vary.

A working JSON image prompt

This 1024 × 1024 example is accepted by the studio's JSON Layout validator. It asks for a title in the upper half and a fern in the lower half.

{
  "summary": {
    "caption": "An editorial botanical poster on ivory paper, deep green lettering and a small fern illustration."
  },
  "items": [
    {
      "label": "text",
      "caption": "Large serif title in the upper half",
      "text": "GROW SLOW",
      "bbox": [
        -400,
        -420,
        -180,
        420
      ]
    },
    {
      "label": "object",
      "caption": "A finely detailed green fern in the lower half",
      "bbox": [
        -100,
        -280,
        430,
        280
      ]
    }
  ],
  "bbox_format": "yxyx",
  "bbox_coord_space": "abs_centralized"
}

Start with two or three large items. Leave space between regions, keep required text short, and change one box at a time when refining the composition.

Copy a product layout or bilingual café card

These examples keep the practical starting points from the former blog tutorial together with the field reference. On a 1024 × 1024 canvas, keep each box within −512 to +512.

Product showcase: recorded layout

Two narrow text bands sit above a larger product region. This prompt has a recorded gallery output and saved settings.

Copy the complete product JSON
{
  "summary": {
    "caption": "A clean product showcase on a warm beige background, three amber glass skincare bottles with white labels arranged in a row, soft studio lighting, 1024×1024"
  },
  "items": [
    {
      "label": "text",
      "caption": "Brand name centered at the top in elegant serif",
      "text": "BOTANICA",
      "bbox": [
        -440,
        -300,
        -370,
        300
      ]
    },
    {
      "label": "text",
      "caption": "Tagline below the brand name in smaller type",
      "text": "pure botanical skincare",
      "bbox": [
        -350,
        -260,
        -290,
        260
      ]
    },
    {
      "label": "object",
      "caption": "Three amber glass dropper bottles with white labels, evenly spaced from left to right, soft reflections",
      "bbox": [
        -200,
        -400,
        400,
        400
      ]
    }
  ],
  "bbox_format": "yxyx",
  "bbox_coord_space": "abs_centralized"
}

Bilingual café card: editable example

Give each language its own text item. This syntax example is not a newly measured generation.

{
  "summary": {
    "caption": "A bilingual café menu card on cream paper, minimal typography."
  },
  "items": [
    {
      "label": "text",
      "caption": "Top line in Chinese serif lettering",
      "text": "今日特调",
      "bbox": [
        -380,
        -420,
        -240,
        420
      ]
    },
    {
      "label": "text",
      "caption": "English subtitle below the Chinese heading",
      "text": "TODAY'S SPECIAL",
      "bbox": [
        -200,
        -380,
        -80,
        380
      ]
    },
    {
      "label": "object",
      "caption": "A small coffee cup illustration",
      "bbox": [
        40,
        -160,
        360,
        160
      ]
    }
  ],
  "bbox_format": "yxyx",
  "bbox_coord_space": "abs_centralized"
}

Keep atmospheric scenes as free-form prompts when exact placement is unnecessary. Use the visual bbox editor to adjust regions without hand-editing coordinates.

JSON Layout field reference

FieldRequired valuePurpose
summary.captionStringDescribes the overall scene, medium, palette, and visual relationship between items.
itemsArrayLists the text and object elements to guide on the canvas.
labeltext or objectIdentifies the type of each item.
captionStringDescribes the item's appearance, role, and intended position.
textString for text itemsContains the exact visible wording requested from the model.
bboxFour numbersSets the intended region as [top, left, bottom, right].
bbox_formatyxyxDeclares the bounding-box value order.
bbox_coord_spaceabs_centralizedUses absolute pixel coordinates measured from the canvas center.

What a bbox actually is

A bbox is the intended rectangular region for one text or object item. In this MOSS-Image layout format, it contains four values in yxyx order: [top, left, bottom, right].

The coordinates are absolute pixel offsets measured from the center of the selected canvas, not from its top-left corner. On a 1024 × 1024 canvas, both axes run from −512 to +512.

ValueMeaningCommon mistake
topUpper y edgeUsing a positive value for an upper-half box
leftLeft x edgeTreating it as a width
bottomLower y edgeMaking it smaller than top
rightRight x edgeMaking it smaller than left
captionDescribes the item and visual roleExpecting the bbox alone to describe the object
textExact requested wording for a text itemOmitting it when label is text

For example, [-400, -420, -180, 420] means a wide region in the upper half of a 1024 × 1024 canvas. A bbox reserves an intended region; it does not lock pixels or guarantee typography. Avoid overlapping boxes unless competing layout guidance is intentional—the result is model-dependent.

How centered bounding boxes work

For a 1024 × 1024 canvas, the horizontal and vertical axes both run from −512 to +512. The canvas center is [0, 0]. Negative x values move left, positive x values move right, negative y values move up, and positive y values move down.

A box of [-400, -420, -180, 420] therefore occupies a wide region in the upper half. The top value must be smaller than the bottom value, the left value must be smaller than the right value, and every edge must remain within the chosen canvas.

Changing the canvas changes the valid range.

The portrait and landscape options use different width and height limits. This site validates every box against the selected canvas before sending a paid generation request.

Common JSON prompt errors

  • Using top-left coordinates instead of coordinates measured from the center.
  • Writing boxes as [left, top, right, bottom] instead of the required yxyx order.
  • Leaving out the text value on an item labeled text.
  • Placing a box partly outside the selected canvas.
  • Creating overlapping regions or text boxes too small for their wording.
  • Expecting a generated result to reproduce typography with design-software precision.

For bilingual designs, see the Chinese AI image generator guide for a working Chinese and English layout example.

For posters, menus, and labels where readable wording is the main goal, start with the AI text-in-image generator, then add JSON regions when placement needs more control.

Open a JSON prompt in the generator

The studio includes the working botanical example shown above. The link below opens JSON Layout mode, where you can edit the caption, text, and coordinates before generating.

Open JSON Layout mode

Official source

Format and coordinate rules checked October 23, 2026.

OpenMOSS Layout Prompts specification