{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pictify-io/json-schema/pictify-io-image-request-schema.json",
  "title": "ImageRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pictify-io-images-api-openapi.yml#/components/schemas/ImageRequest",
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "HTML content to render"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to screenshot (mutually exclusive with html)"
    },
    "template": {
      "type": "string",
      "description": "Template UID to render"
    },
    "variables": {
      "type": "object",
      "additionalProperties": true,
      "description": "Variables to populate in the template"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4000,
      "default": 1200,
      "description": "Output width in pixels"
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4000,
      "default": 630,
      "description": "Output height in pixels"
    },
    "selector": {
      "type": "string",
      "description": "CSS selector to capture specific element"
    },
    "fileExtension": {
      "type": "string",
      "enum": [
        "png",
        "jpg",
        "jpeg",
        "webp"
      ],
      "default": "png",
      "description": "Output image format"
    }
  }
}