{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pennyocr-com/json-schema/pennyocr-com-url-ocrrequest-schema.json",
  "title": "UrlOCRRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pennyocr-com-openapi.json#/components/schemas/UrlOCRRequest",
  "properties": {
    "url": {
      "type": "string",
      "title": "Url"
    },
    "format": {
      "type": "string",
      "title": "Format",
      "default": "markdown"
    },
    "pages": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pages",
      "description": "Page range like '1-20,25'. Default: all."
    },
    "max_pages": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Pages",
      "description": "Refuse (413) if selection exceeds this."
    },
    "max_cost_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Cost Usd",
      "description": "Refuse (413) if cost would exceed this."
    }
  },
  "type": "object",
  "required": [
    "url"
  ]
}