ComfyUI Node
Prompt Layout Builder
Draw layout boxes over a scene prompt, or load them from an LLM layout. Outputs a MOSS-Image, Ideogram 4 or Krea 2 prompt.
Prompt Layout Builder
- image
- import_json
- prompt
- preview
- width
- height
- manager_data
◄aspect_ratio1:1 (Square)►
◄megapixels1.0►
◄prompt►
◄meta►
◄canvasnone►
◄use_import_jsonfalse►
◄layout_data{}►
◄output_formatMOSS►
CategoryPrompt Manager
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 1:1 (Square) | Canvas aspect ratio. 'Use Reference Ratio' follows a layout restored from manager_data, otherwise the connected image. |
| megapixels | FLOAT | 1.00.1–16 | Target canvas size; width and height are rounded to multiples of 16. |
| prompt | STRING | Description of the whole image and its style. | |
| meta | STRING | Comma-separated style tags for summary.meta, e.g. "poster, graphic design" (blank = omitted). | |
| canvas | COMBO | none | summary.canvas: single image, multi_panel or collage (none = omitted). |
| use_import_json | BOOLEAN | false | Read the layout from import_json and lock the editor. Turn off to edit the imported boxes. |
| layout_data | STRING | {} | Editor boxes (managed by the node UI). |
| output_format | COMBO | MOSS | Prompt format: MOSS-Image layout JSON, Ideogram 4 JSON caption or Krea 2 grounding lines. |
| imageopt | IMAGE | Background for the editor; also sets the ratio with 'Use Reference Ratio'. | |
| import_jsonopt | STRING,MANAGER_DATA | Layout JSON (e.g. from Prompt Generator: percent, 0-1000 or MOSS-native boxes), an Ideogram 4 caption, Krea 2 grounding lines, or a saved layout's manager_data from Library Manager. Only evaluated when use_import_json is on. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |
| preview | IMAGE | — |
| width | INT | — |
| height | INT | — |
| manager_data | MANAGER_DATA | — |