{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/operatornest-com/json-schema/operatornest-com-model-snapshot-schema.json",
  "title": "ModelSnapshot",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/operatornest-com-openapi.json#/components/schemas/ModelSnapshot",
  "type": "object",
  "properties": {
    "source": {
      "const": "models.dev"
    },
    "sourceUrl": {
      "const": "https://models.dev/api.json?type=all"
    },
    "license": {
      "const": "MIT"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "baselineAt": {
      "type": "string",
      "format": "date-time"
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerDoc": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "canonicalModelId": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "decision",
              null
            ]
          },
          "cost": {
            "type": "object",
            "properties": {
              "input": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "output": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "input",
              "output"
            ],
            "additionalProperties": true
          },
          "limit": {
            "type": "object",
            "properties": {
              "context": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "output": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "context",
              "output"
            ],
            "additionalProperties": true
          },
          "modalities": {
            "type": "object",
            "properties": {
              "input": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "output": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "input",
              "output"
            ],
            "additionalProperties": false
          },
          "reasoning": {
            "type": "boolean"
          },
          "toolCall": {
            "type": "boolean"
          },
          "attachment": {
            "type": "boolean"
          },
          "openWeights": {
            "type": "boolean"
          },
          "knowledge": {
            "type": "string"
          },
          "releaseDate": {
            "type": "string"
          },
          "lastUpdated": {
            "type": "string"
          }
        },
        "required": [
          "providerId",
          "providerName",
          "id",
          "name",
          "type",
          "cost",
          "limit",
          "modalities",
          "reasoning",
          "toolCall",
          "attachment",
          "openWeights"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "source",
    "sourceUrl",
    "license",
    "updatedAt",
    "models"
  ],
  "additionalProperties": false
}