{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/glyphapi-dev/json-schema/glyphapi-dev-glyph-in-schema.json",
  "title": "GlyphIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/glyphapi-dev-openapi.json#/components/schemas/GlyphIn",
  "properties": {
    "cutoff": {
      "type": "string",
      "format": "date-time",
      "title": "Cutoff",
      "description": "ISO8601 — your model's training cutoff"
    },
    "query": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "title": "Query"
    },
    "k": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "K",
      "default": 6
    },
    "tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tier",
      "description": "Density tier: '6x' | '10x' | '15x'. Default '10x'."
    },
    "mode": {
      "type": "string",
      "title": "Mode",
      "description": "'combined' (all pieces on shared pages, token-efficient) or 'per_piece' (one image per result).",
      "default": "combined"
    },
    "sources": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sources",
      "description": "Optional source filter, same semantics as /query."
    }
  },
  "type": "object",
  "required": [
    "cutoff",
    "query"
  ]
}