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

Image → PSD Mockup: Render

AI-generated

Summary

Render a PSD mockup template by filling specified smart objects with your design images, optionally overriding text layers, hiding certain layers, and customizing export settings. Optionally process the render asynchronously, receiving a job ID to track progress.

Inputs

  • Mockup UUID (required) — UUID of the uploaded PSD mockup template obtained from a prior Upload PSD operation.
  • Smart Objects (required) — A collection specifying each smart object within the PSD to fill. For each smart object, provide its UUID, the design image URL or base64 image, fit mode ('fill', 'fit', or 'crop'), and optional additional image adjustments such as blur, brightness, rotation, color overlay, opacity, and image size overrides.
  • Text Layers — Optional JSON array specifying text layer overrides. Each item must include the layer UUID and textual content or segments and can include font settings, font size, color, stroke color, and fit behavior.
  • Hidden Layers — Optional JSON array of up to 50 layer UUIDs to exclude from the rendered output, including layers inside smart objects or groups. Hiding a group hides all layers within it.
  • Export Options — Optional output image export settings such as DPI (print resolution), image format (WebP, PNG, JPEG), output width (with proportional height), quality for lossy formats, and whether to use the PSD's original size and resolution.
  • Run Asynchronously — Boolean indicating whether to queue the render process to run in the background. When true, the operation immediately returns a job_id which can be used with the Get Job operation to poll for completion instead of blocking until the render finishes.

Output shape

a single JSON object per input item

The output JSON contains the render operation response including a success flag and an array of print_files with URLs. It includes convenient top-level keys 'renderedImageUrl' (the first rendered image URL) and 'allRenderedUrls' (array of all rendered image URLs). If run asynchronously, it returns a job ID immediately; the render result can be retrieved later by polling the job with the Get Job operation.

Examples

Example 1: Render a PSD mockup filling two smart objects with different design images and color overlays, exclude certain layers, and export as a WebP image of 2048px width.

Specify the mockup UUID from a prior upload. Add two smart objects with their UUIDs, design asset URLs or base64 images, fit modes, and optional adjustments like rotation and brightness. Set Hidden Layers UUID array to exclude irrelevant layers. Set export options to WebP format with 2048 width and a quality of 90. Run synchronously (isAsync false) to get the rendered image URLs in the output.

Links

Discussion