{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwatch/json-schema/artificialwatch-open-weights-schema.json",
  "title": "OpenWeights",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwatch-openapi.json#/components/schemas/OpenWeights",
  "type": "object",
  "required": [
    "name",
    "url",
    "license",
    "generated",
    "count",
    "models"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "type": "string",
      "format": "uri"
    },
    "attribution": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "generated": {
      "type": "string",
      "format": "date"
    },
    "bench_generated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "ranked_of": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Models on the Bench Index"
    },
    "coding_ranked_of": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Models on the Coding Index"
    },
    "count": {
      "type": "integer"
    },
    "standard_license": {
      "type": "integer",
      "description": "Models under a standard licence (MIT, Apache 2.0)"
    },
    "models": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenWeightsModel"
      }
    }
  },
  "$defs": {
    "OpenWeightsModel": {
      "type": "object",
      "required": [
        "id",
        "name",
        "lab",
        "live_since",
        "repo",
        "hf_url",
        "license",
        "license_kind",
        "gated",
        "params",
        "params_b",
        "open_rank",
        "bench_rank",
        "bench_index",
        "coding_rank",
        "coding_index",
        "checked",
        "page"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "lab": {
          "type": "string"
        },
        "live_since": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "repo": {
          "type": "string",
          "description": "The Hugging Face repo, owner/name"
        },
        "hf_url": {
          "type": "string",
          "format": "uri"
        },
        "license": {
          "type": "string",
          "description": "The repo's own license tag; a lab's own licence reads custom (its name)"
        },
        "license_kind": {
          "type": "string",
          "enum": [
            "standard",
            "custom"
          ]
        },
        "gated": {
          "type": "boolean",
          "description": "Hugging Face asks you to accept the lab's terms (and for a manual gate, wait for approval) before downloading"
        },
        "params": {
          "type": "string",
          "description": "Total parameters as Hugging Face counts them, e.g. 763B or 2.8T"
        },
        "params_b": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The same size in billions"
        },
        "open_rank": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Rank among the open-weights models"
        },
        "bench_rank": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Rank against every model on the Bench Index, open and closed"
        },
        "bench_index": {
          "type": [
            "number",
            "null"
          ]
        },
        "coding_rank": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Rank against every model on the Coding Index"
        },
        "coding_index": {
          "type": [
            "number",
            "null"
          ]
        },
        "checked": {
          "type": "string",
          "format": "date"
        },
        "page": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}