{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pictify-io/json-schema/pictify-io-batch-render-request-schema.json",
  "title": "BatchRenderRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pictify-io-batch-api-openapi.yml#/components/schemas/BatchRenderRequest",
  "type": "object",
  "required": [
    "variableSets"
  ],
  "properties": {
    "variableSets": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "minItems": 1,
      "maxItems": 100
    },
    "format": {
      "type": "string",
      "enum": [
        "png",
        "jpeg",
        "webp"
      ],
      "default": "png"
    },
    "quality": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1,
      "default": 0.9
    },
    "layout": {
      "type": "string",
      "pattern": "^[a-z0-9-]{1,64}$",
      "description": "Layout variant to use for all batch items. Omit for default layout."
    },
    "layouts": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z0-9-]{1,64}$"
      },
      "description": "Array of layout variant names to render for all batch items. Use instead of `layout` to render multiple layouts per item."
    },
    "concurrency": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "default": 5
    }
  }
}