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

Photo Mockup → Photo Mockup: Create

AI-generated

Summary

Create a new photo mockup by submitting a source image via a public URL or base64 data, optionally setting print areas and naming the mockup, and choose to execute the creation synchronously or queue it asynchronously returning a job ID.

Inputs

  • Source Type (required) — Select whether to provide the source image as an Image URL or Base64 encoded data.
  • Source URL (required) — Provide a public image URL to use as the source image for the mockup. Required if Source Type is 'Image URL'.
  • Source Base64 (required) — Provide Base64-encoded image data for the source image. Required if Source Type is 'Base64 Image'.
  • Name — Optionally provide a human-readable name for the new photo mockup.
  • Run Asynchronously — Choose whether to create the mockup asynchronously, which queues the job and immediately returns a job_id for later status tracking.
  • Print Areas — Optionally define one or more print area quadrilaterals by specifying the X and Y coordinates of all four points; these define printable regions of the mockup.

Output shape

a single response JSON object

Returns the API response for the creation request. If asynchronous, the response includes a job_id to track creation status. If synchronous, returns the created photo mockup data. Errors may include HTTP status and message.

Examples

Example 1: Create photo mockup from an image URL, named "T-Shirt Front", with defined print areas, synchronously

Source Type: Image URL; Source URL: a public HTTPS URL; Name: "T-Shirt Front"; Run Asynchronously: false; Print Areas: set with coordinates

Example 2: Create photo mockup from Base64 image data, asynchronously

Source Type: Base64 Image; Source Base64: base64 string; Run Asynchronously: true; Name and Print Areas omitted

Links

Discussion