Nodes/ComfyUI_RS_NAI_API_Request/NAI Reference Inset
ComfyUI Node

NAI Reference Inset

Prepare a reference canvas locally without an API call. Width/height describe the whole canvas; the node shows the smaller cropped output size. Run this node for an actual image preview. Connect inset to NAI Reference Inset Generate when ready.

By raspie10032·Created about a year ago·Updated about 7 hours ago· 8
NAI Reference Inset
  • image
  • inset
  • canvas
  • generation_mask
◄canvas_width1216►
◄canvas_height832►
◄placementleft►
◄reference_percent50►
CategoryRS_NovelAI_API/Reference Inset

Inputs (5)

NameTypeDefaultDescription
imageIMAGEOne reference image. Fits without stretching or cropping; transparency is composited on white.
canvas_widthINT121664–4096Whole canvas including the reference. The cropped output will be smaller.
canvas_heightINT83264–4096Whole canvas including the reference. The cropped output will be smaller.
placementCOMBOleftSide occupied by the reference. The other side is generated.
reference_percentINT5010–75Percentage reserved for the reference. Smaller reference space gives a larger output, but may weaken consistency.

Outputs (3)

NameTypeDescription
insetRS_NAI_INSET—
canvasIMAGE—
generation_maskMASK—