sudomock-com · Schema

PhotoMockupRender

Body for POST /api/v1/photo-mockups/{mockup_id}/render. The mockup UUID is taken from the path; the body carries only per-print-area artwork configuration and export options.

MockupPSDE-CommerceAutomation

Properties

Name Type Description
print_areas array Artwork configuration per render target. Use uuid for a saved print area, and surface_uuid for a whole surface. A product can be rendered either way, and saving a print area on it does not take its su
export_options object Export configuration for format, size and quality. Every field has a default, so the whole object is optional.
is_async boolean If true, the render is QUEUED and the call returns 202 immediately with a job_id (poll GET /api/v1/jobs/{job_id}, or receive a webhook if one is configured); result_url carries the rendered image URL
View JSON Schema on GitHub

JSON Schema

sudomock-com-photo-mockup-render-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sudomock-com/json-schema/sudomock-com-photo-mockup-render-schema.json",
  "title": "PhotoMockupRender",
  "description": "Body for POST /api/v1/photo-mockups/{mockup_id}/render.\n\nThe mockup UUID is taken from the path; the body carries only per-print-area\nartwork configuration and export options.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sudomock-com-photo-mockups-api-openapi.yml#/components/schemas/PhotoMockupRender",
  "properties": {
    "print_areas": {
      "items": {
        "$ref": "#/$defs/PhotoMockupPrintAreaRender"
      },
      "type": "array",
      "maxItems": 8,
      "minItems": 1,
      "description": "Artwork configuration per render target. Use uuid for a saved print area, and surface_uuid for a whole surface. A product can be rendered either way, and saving a print area on it does not take its surface away."
    },
    "export_options": {
      "$ref": "#/$defs/PhotoMockupExportOptions",
      "description": "Export configuration for format, size and quality. Every field has a default, so the whole object is optional."
    },
    "is_async": {
      "type": "boolean",
      "description": "If true, the render is QUEUED and the call returns 202 immediately with a job_id (poll GET /api/v1/jobs/{job_id}, or receive a webhook if one is configured); result_url carries the rendered image URL on success. If false (default), the render runs synchronously and returns the result.",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "print_areas"
  ],
  "$defs": {
    "PhotoMockupAdjustments": {
      "properties": {
        "brightness": {
          "type": "integer",
          "maximum": 150.0,
          "minimum": -150.0,
          "description": "Brightness applied to the artwork, from -150 to 150, where 0 keeps it unchanged.",
          "default": 0
        },
        "contrast": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": -100.0,
          "description": "Contrast applied to the artwork, from -100 to 100, where 0 keeps it unchanged.",
          "default": 0
        },
        "opacity": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 0.0,
          "description": "How opaque the artwork is, from 0 for fully transparent to 100 for opaque.",
          "default": 100
        },
        "saturation": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": -100.0,
          "description": "Saturation applied to the artwork, from -100 for grayscale to 100 for fully saturated.",
          "default": 0
        },
        "vibrance": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": -100.0,
          "description": "Saturation that affects muted colors more than already vivid ones, from -100 to 100.",
          "default": 0
        },
        "blur": {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0,
          "description": "Softens the artwork, from 0 for sharp to 100 for the strongest blur.",
          "default": 0
        },
        "blend_mode": {
          "type": "string",
          "enum": [
            "multiply",
            "normal",
            "screen",
            "lighten",
            "soft_light",
            "overlay",
            "darken"
          ],
          "description": "How the artwork sits on the surface. 'multiply' keeps the material texture visible and is the best choice on light fabric (default); 'normal' reproduces the artwork colors exactly, whatever the product color, and is the right choice when a brand color has to match the supplied file; 'screen' lightens the artwork against the surface, which is worth reaching for only when you want that lighter result, since the default already adapts to a dark garment; 'lighten' keeps the artwork only where it is brighter than the surface; 'soft_light' gives a subtle, low-contrast finish that follows the surface; 'overlay' deepens contrast so the artwork reads as part of the material; 'darken' keeps the artwork only where it is darker than the surface.",
          "default": "multiply"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PhotoMockupAdjustments",
      "description": "Outcome-level controls for the photo mockup render."
    },
    "PhotoMockupExportOptions": {
      "properties": {
        "image_format": {
          "type": "string",
          "enum": [
            "png",
            "jpg",
            "webp"
          ],
          "description": "Output format: 'webp' (30-70% smaller, recommended), 'png' (lossless), 'jpg' (smallest, no transparency)",
          "default": "webp"
        },
        "image_size": {
          "type": "integer",
          "maximum": 10000.0,
          "minimum": 100.0,
          "description": "Length of the output's longer side in pixels (100-10000); the other side follows the product photo's proportions. Renders on an account in trial are capped at 1024: a larger image_size is rejected with error_code OUTPUT_RESOLUTION_LIMIT (HTTP 402) and is never silently downscaled. Add a payment method to render at full size.",
          "default": 2048
        },
        "quality": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 1.0,
          "description": "Compression quality for JPG/WebP (1-100). Ignored for PNG (always lossless). Default: 90.",
          "default": 90
        },
        "dpi": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 2400.0,
              "minimum": 72.0
            },
            {
              "type": "null"
            }
          ],
          "description": "Resolution tag stamped into the output file metadata (JPG/WebP via Exif XResolution, PNG via pHYs), e.g. 300 for print. This is metadata only: it does NOT change the pixels. Pixel dimensions are controlled by image_size: set image_size = print_size_inches * dpi for a true print-ready file (e.g. 12 in * 300 = 3600 px). Range 72-2400. Default: null (opt-in). Omitting it does not leave the file untagged: the encoder writes a default ~25.4 DPI (1 px/mm) tag. All three formats carry the tag, but for maximum print-tool compatibility prefer jpg or png, because WebP stores resolution in Exif and not every viewer surfaces it."
        }
      },
      "type": "object",
      "title": "PhotoMockupExportOptions",
      "description": "Format, size and quality of a photo mockup render."
    },
    "PhotoMockupPlacement": {
      "properties": {
        "position": {
          "type": "string",
          "enum": [
            "center",
            "top_left",
            "top_center",
            "top_right",
            "center_left",
            "center_right",
            "left_center",
            "right_center",
            "bottom_left",
            "bottom_center",
            "bottom_right"
          ],
          "description": "Predefined position within print area",
          "default": "center"
        },
        "coverage": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 100.0,
              "minimum": 10.0
            },
            {
              "type": "null"
            }
          ],
          "description": "How much of the surface the artwork spans, 10 to 100. Spans the whole surface by default. Belongs to a surface_uuid target, and cannot be combined with an explicit width and height."
        },
        "fit": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "fill",
                "fit",
                "crop"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "How the artwork meets the print area. 'fit' scales it until it fits inside and keeps its proportions, which is the default and can leave empty space. 'fill' stretches it to the edges and does not keep proportions. 'crop' covers the area and cuts the overflow, keeping proportions. 'contain' and 'cover' are the older names for 'fit' and 'crop' and are still accepted. Always targets the whole print area. Belongs to a uuid target, and cannot be combined with an explicit width and height."
        },
        "offset_x": {
          "type": "number",
          "description": "Horizontal offset in print-area pixels, measured from the anchor that 'position' picks, positive right. With the default position of 'center' that anchor is the middle of the print area.",
          "default": 0
        },
        "offset_y": {
          "type": "number",
          "description": "Vertical offset in print-area pixels, measured from the anchor that 'position' picks, positive down. With the default position of 'center' that anchor is the middle of the print area.",
          "default": 0
        },
        "width": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 30000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "description": "Artwork width in target pixels. Must be sent together with 'height'. An exact box belongs to either kind of target: send it instead of 'fit' on a print area, or instead of 'coverage' on a surface. Width and height are independent, so any aspect ratio is allowed."
        },
        "height": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 30000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "description": "Artwork height in target pixels. Must be sent together with 'width'. An exact box belongs to either kind of target: send it instead of 'fit' on a print area, or instead of 'coverage' on a surface. Width and height are independent, so any aspect ratio is allowed."
        },
        "rotation": {
          "type": "number",
          "maximum": 360.0,
          "minimum": -360.0,
          "description": "Rotation in degrees (clockwise positive)",
          "default": 0
        },
        "tile": {
          "type": "boolean",
          "description": "Repeat the artwork as a pattern across the whole target. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts. Requires a sizing answer.",
          "default": false
        },
        "tile_spacing": {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0,
          "description": "Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile is true.",
          "default": 0
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PhotoMockupPlacement",
      "description": "Where the artwork sits on the render target, and how big it is.\n\nSizing has exactly one spelling per target. On a surface that is\ncoverage, how much of the surface the artwork spans, or an explicit width\nand height. On a print area it is\neither fit, or an explicit width and height in print-area pixels; the two\naxes are independent, so stretching on one axis only is a supported\nplacement rather than an error, which is what makes this path as free as\nthe PSD path.\n\nEvery option has exactly one spelling: offset_x, offset_y and rotation.\nA second accepted spelling for the same option would let two callers write\nthe same placement two ways and force a precedence rule to break the tie,\nso unrecognised keys are rejected rather than translated.\n\nEvery pixel length here is a print-area pixel: the frame is the bounding\nbox of the print area's own four corner points, in the pixels of the\nproduct photo the mockup was built from. It is not a fraction of anything,\nand image_size does not change it. The artwork is cut to the print area\nitself, its own four-cornered outline and its mask, not to that bounding box.\n\nrotation is applied before the artwork is positioned, and a rotated artwork\noccupies its rotated bounding box: a 100x50 box sent with rotation 45 lands\nas a 106x106 footprint. width and height describe the box before rotation."
    },
    "PhotoMockupPrintAreaRender": {
      "properties": {
        "uuid": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "UUID of a saved print area, a bounded zone drawn on a product."
        },
        "surface_uuid": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "UUID of a surface: a printable product in the photo, or the main wall of a room photo. A product carrying saved print areas still has one, and it is a separate render target from them."
        },
        "base64": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Base64-encoded artwork image."
        },
        "artwork_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Artwork image URL"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Solid color as a hex code (e.g., '#FF0000'), or the name of a colour saved on this mockup (e.g., 'blue jean'). Names match exactly and are set with PATCH /api/v1/photo-mockups/{uuid}."
        },
        "adjustments": {
          "anyOf": [
            {
              "$ref": "#/$defs/PhotoMockupAdjustments"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional visual adjustments for the artwork."
        },
        "placement": {
          "anyOf": [
            {
              "$ref": "#/$defs/PhotoMockupPlacement"
            },
            {
              "type": "null"
            }
          ],
          "description": "Where the artwork sits and how big it is. position, offset_x, offset_y and rotation apply to either target. Sizing follows the target: coverage on a surface_uuid target, and either fit or an explicit width and height on a uuid target."
        },
        "flip_horizontal": {
          "type": "boolean",
          "description": "Flip artwork horizontally (left-right mirror)",
          "default": false
        },
        "flip_vertical": {
          "type": "boolean",
          "description": "Flip artwork vertically (top-bottom mirror)",
          "default": false
        },
        "remove_background": {
          "type": "boolean",
          "description": "Remove the image background before placing the artwork; the subject is isolated onto a clean transparent cutout. Adds 25 credits per artwork to the render cost.",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PhotoMockupPrintAreaRender",
      "description": "Per-print-area artwork configuration for a photo mockup render.\nMirrors SmartObjectInput pattern from PSD render endpoint."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sudomock-com-photo-mockup-render"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.