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

Font → Photo Mockup: Create

AI-generated

Summary

Create a new photo mockup from a source image provided as either a public URL or Base64 data, optionally naming it and defining print areas, with an option to run creation asynchronously returning a job ID.

Inputs

  • Source Type (required) — Select whether the source image is provided via a public URL or Base64 image data.
  • Source URL (required) — Public image URL for the new photo mockup, required if Source Type is 'Image URL'.
  • Source Base64 (required) — Base64 image data for the new photo mockup, required if Source Type is 'Base64 Image'.
  • Name — Optional human-readable name to identify the new photo mockup.
  • Run Asynchronously — Whether to queue the mockup creation and immediately return a job_id for tracking instead of waiting for completion.
  • Print Areas — Optional list of print areas defined by four corner points (X and Y coordinates) describing regions for printing; used to configure the mockup's print zones.

Output shape

a single JSON response object

The operation returns the API response JSON for the created photo mockup or, if run asynchronously, an immediate job confirmation containing a job_id (kind: photo_mockup_create). The response format depends on whether Run Asynchronously is true or false.

Examples

Example 1: Synchronous creation

Provide a public Image URL or Base64 data, optionally name the mockup, optionally define print areas, and leave 'Run Asynchronously' false. The node returns the created photo mockup details upon completion.

Example 2: Asynchronous creation

Set 'Run Asynchronously' to true. The node immediately returns a job_id representing a queued create job, which can be polled for status using the Get Job operation.

Links

Discussion