SudoMock icon

SudoMock

Generate PSD mockups, photo mockups and product videos for Print-on-Demand automation. Upload PSDs, turn product photos into mockups, render with your designs, render videos, run renders asynchronously, track jobs, and manage webhooks.

Actions229

PSD Mockup → Photo Mockup: Render

AI-generated

Summary

Render a PSD mockup template by filling specified smart objects with your designs, optionally overriding text layers and hiding layers, and customize output image settings. Supports synchronous or asynchronous rendering.

Inputs

  • Mockup UUID (required) — UUID of the uploaded PSD mockup template to render (from Upload PSD response).
  • Smart Objects (required) — List of smart objects to fill with design images, each requiring a UUID, design URL, and fit mode. Additional options include base64 image override, blur, brightness, color overlay, contrast, opacity, position, background removal, rotation, saturation, vibrance, size overrides, and more.
  • Text Layers (optional) — JSON array to override text layers, each item must include the layer UUID and text or segments, with optional font, font size, color, stroke color, and fit mode.
  • Hidden Layers (optional) — JSON array of up to 50 layer UUIDs to exclude from the render (including layers inside smart objects).
  • Export Options (optional) — Settings for the output image, including DPI, export label, image format (WebP, PNG, JPEG), image size (width in pixels), whether to use the PSD's original size, and quality for JPG/WebP.
  • Run Asynchronously (optional) — Boolean flag to queue the render job and immediately return a job ID instead of waiting for the render to complete.

Output shape

a single JSON object containing the render result or job details

If rendered synchronously, the response includes success status and URLs of rendered images (renderedImageUrl and allRenderedUrls). If asynchronous, the response returns a job_id to track the render job with 'Get Job'. Errors for missing required inputs or invalid configurations are raised. The operation requires authenticated API access via the sudoMockApi credential.

Examples

Example 1: Render a PSD mockup synchronously with one smart object design

Provide the mockup UUID, specify the smart object with its UUID, design URL, and fit mode, and configure export options as desired. Leave 'Run Asynchronously' unset or false to receive the rendered image URLs immediately.

Links

Discussion