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

Job → Photo Mockup: Create

AI-generated

Summary

Create a new photo mockup by providing a source image either as a public URL or Base64-encoded data, with optional parameters such as a mockup name, print areas, and asynchronous processing flag.

Inputs

  • Source Type (required) — Select the image source mode: 'Image URL' for a public image URL or 'Base64 Image' for Base64-encoded image data.
  • Source URL (required) — Provide the public image URL for the new photo mockup; required if Source Type is 'Image URL'.
  • Source Base64 (required) — Provide the Base64 image data for the new photo mockup; required if Source Type is 'Base64 Image'.
  • Name — Optional human-readable name for the new photo mockup.
  • Print Areas — Optional list of up to multiple print areas defined by four X,Y coordinate points each to specify regions on the mockup.
  • Run Asynchronously — Boolean flag to queue the photo mockup creation as a background job, returning immediately with a job_id instead of waiting for completion.

Output shape

a single record

Returns the newly created photo mockup data as JSON. If the operation is asynchronous, the response includes a job_id (kind: photo_mockup_create) for monitoring job status via the Get Job operation. If print areas are provided, they are included in the creation request.

Links

Discussion