{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lovpics-com/json-schema/lovpics-com-aidesigner-from-material-request-schema.json",
  "title": "AIDesignerFromMaterialRequest",
  "description": "Material swatch(es) + instructions → AI-original product design(s); optional multi-variation contact sheet.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lovpics-com-openapi.json#/components/schemas/AIDesignerFromMaterialRequest",
  "properties": {
    "materialImagesB64": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Materialimagesb64",
      "description": "One or more base64 data URLs of material / texture / swatch references"
    },
    "instructions": {
      "type": "string",
      "title": "Instructions",
      "description": "What to design (product type, mood, details, etc.)",
      "default": ""
    },
    "designOutputType": {
      "type": "string",
      "title": "Designoutputtype",
      "description": "single = one concept per image; multi_sheet = one image with a grid of variations",
      "default": "single"
    },
    "modelImageB64": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Modelimageb64",
      "description": "Optional model reference for editorial wear shot"
    },
    "modelDescription": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Modeldescription",
      "description": "Optional text model direction when no model image"
    },
    "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": [
    "materialImagesB64",
    "aspectRatio"
  ]
}