LayerProof icon

LayerProof

Automate LayerProof public API workflows from n8n

Slide → Image Edit

AI-generated

Summary

Triggers slide image editing on LayerProof.

Inputs

  • projectId (required) — Project identifier.
  • slideId (required) — Slide identifier.
  • instruction (required) — Text instruction describing the desired image editing.
  • inputImagePath (required) — Path to the input image to be edited.
  • imageEditOptions — Optional editing parameters.

Output shape

LayerProof API response for the /image-edit endpoint.

The operation POSTs to /api/v2/projects/{projectId}/slides/{slideId}/image-edit with a body constructed from the provided parameters. Optional imageEditOptions may include otherReferenceImagePathsJson (JSON array) and croppedRegionJson (JSON object with x, y, width, height).

Examples

Example 1: Edit a slide image with a prompt and optional cropping.

Set projectId and slideId, provide an instruction (e.g., 'Remove the watermark'), specify inputImagePath, and optionally add croppedRegionJson {x: 10, y: 20, width: 100, height: 200} via imageEditOptions.

Links

Discussion