{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynn-com/json-schema/bynn-com-post-face-collections-token-search-schema.json",
  "title": "postFaceCollectionsTokenSearch",
  "description": "Search for faces in a collection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynn-com-face-search-api-openapi.yml#/components/schemas/postFaceCollectionsTokenSearch",
  "type": "object",
  "properties": {
    "image_url": {
      "type": "string",
      "description": "URL of the image containing a face to search for"
    },
    "base64_image": {
      "type": "string",
      "description": "Base64 strict encoded image data (max 20MB decoded)"
    },
    "file": {
      "type": "string",
      "format": "binary",
      "description": "Image file upload (multipart/form-data, max 20MB)"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of results to return (1-100)",
      "minimum": 1,
      "maximum": 100,
      "default": 10
    },
    "distance_threshold": {
      "type": "number",
      "format": "float",
      "description": "Max cosine distance for matches (0.1-1.0, lower is stricter); omit for the gallery-calibrated default."
    }
  }
}