Nodes/ComfyUI-Prompt-Manager/Prompt Layout Builder
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.

By FranckyB·Created about a year ago·Updated about 11 hours ago· 172
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)

NameTypeDefaultDescription
aspect_ratioCOMBO1:1 (Square)Canvas aspect ratio. 'Use Reference Ratio' follows a layout restored from manager_data, otherwise the connected image.
megapixelsFLOAT1.00.1–16Target canvas size; width and height are rounded to multiples of 16.
promptSTRINGDescription of the whole image and its style.
metaSTRINGComma-separated style tags for summary.meta, e.g. "poster, graphic design" (blank = omitted).
canvasCOMBOnonesummary.canvas: single image, multi_panel or collage (none = omitted).
use_import_jsonBOOLEANfalseRead the layout from import_json and lock the editor. Turn off to edit the imported boxes.
layout_dataSTRING{}Editor boxes (managed by the node UI).
output_formatCOMBOMOSSPrompt format: MOSS-Image layout JSON, Ideogram 4 JSON caption or Krea 2 grounding lines.
imageoptIMAGEBackground for the editor; also sets the ratio with 'Use Reference Ratio'.
import_jsonoptSTRING,MANAGER_DATALayout 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)

NameTypeDescription
promptSTRING—
previewIMAGE—
widthINT—
heightINT—
manager_dataMANAGER_DATA—