Actions65
- Export Actions
- File Actions
- Job Actions
- Project Actions
- Project File Actions
- Slide Actions
- Slide Deck Actions
- Batch Generate Layout
- Batch Generate Slides
- Cancel Generation
- Duplicate Section
- Generate Manual Slide
- Generate Outline
- Generate Slide Content
- Generate Slide Image
- Generate Slide Transcript
- Generate Theme
- Get Audio Download URL
- Get Deck
- Get Tone Settings
- Improve Section
- Import PPTX
- List Transcript Versions
- Mark Improvement Read
- Mark Live Object Read
- Mark Transcript Read
- Prepare Import Upload
- Restore Transcript Version
- Update
- Update Outline
- Update Tone Settings
- Update Transcript
- Update Visual Style Description
- Theme Actions
- Workspace Actions
Slide → Image Edit
AI-generatedSummary
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.