{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lovpics-com/json-schema/lovpics-com-material-to-design-request-schema.json",
  "title": "MaterialToDesignRequest",
  "description": "Design artwork + material swatch → photorealistic product; optional model → editorial wear shot.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lovpics-com-openapi.json#/components/schemas/MaterialToDesignRequest",
  "properties": {
    "designImageB64": {
      "type": "string",
      "title": "Designimageb64",
      "description": "Base64 data URL of the design artwork"
    },
    "materialImageB64": {
      "type": "string",
      "title": "Materialimageb64",
      "description": "Base64 data URL of the material / texture reference"
    },
    "modelImageB64": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Modelimageb64",
      "description": "Optional base64 data URL of model reference for try-on shot"
    },
    "modelDescription": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Modeldescription",
      "description": "Optional text description when no model image is provided"
    },
    "instructions": {
      "type": "string",
      "title": "Instructions",
      "description": "Extra instructions (product type, angles, styling)",
      "default": ""
    },
    "aspectRatio": {
      "type": "string",
      "title": "Aspectratio",
      "description": "Target aspect ratio (e.g. 3:4, 1:1)"
    },
    "numberOfImages": {
      "type": "integer",
      "maximum": 8.0,
      "minimum": 1.0,
      "title": "Numberofimages",
      "description": "Number of images (1-8)",
      "default": 1
    },
    "modelType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Modeltype",
      "description": "basic or pro",
      "default": "basic"
    },
    "imageOutputSize": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Imageoutputsize",
      "description": "Pro: 1K, 2K, 4K",
      "default": "1K"
    },
    "negativePrompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Negativeprompt",
      "description": "Elements to avoid"
    },
    "styleDescription": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Styledescription",
      "description": "Optional extra style hint"
    },
    "brand": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand",
      "description": "Optional brand kit"
    },
    "previous_generations": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Generations",
      "description": "Recent output URLs for style continuity"
    }
  },
  "type": "object",
  "required": [
    "designImageB64",
    "materialImageB64",
    "aspectRatio"
  ]
}