{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-model-response-schema.json",
  "title": "ModelResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyn-ai-models-api-openapi.yml#/components/schemas/ModelResponse",
  "additionalProperties": false,
  "properties": {
    "capabilities": {
      "$ref": "#/$defs/ModelCapabilitiesResponse"
    },
    "contextWindowTokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contextwindowtokens"
    },
    "customerPrice": {
      "anyOf": [
        {
          "$ref": "#/$defs/CustomerPriceResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "discovery": {
      "$ref": "#/$defs/ModelDiscoveryStateResponse"
    },
    "displayName": {
      "title": "Displayname",
      "type": "string"
    },
    "id": {
      "minLength": 1,
      "title": "Id",
      "type": "string"
    },
    "maxOutputTokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Maxoutputtokens"
    },
    "model": {
      "title": "Model",
      "type": "string"
    },
    "modelVersion": {
      "title": "Modelversion",
      "type": "integer"
    },
    "modelVersionId": {
      "title": "Modelversionid",
      "type": "string"
    },
    "notBillable": {
      "title": "Notbillable",
      "type": "boolean"
    },
    "observation": {
      "anyOf": [
        {
          "$ref": "#/$defs/ModelObservationResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "pricingStatus": {
      "title": "Pricingstatus",
      "type": "string"
    },
    "providerKey": {
      "title": "Providerkey",
      "type": "string"
    },
    "providerListPrice": {
      "anyOf": [
        {
          "$ref": "#/$defs/ProviderListPriceResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "providerModelId": {
      "title": "Providermodelid",
      "type": "string"
    },
    "selectionTier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selectiontier"
    },
    "status": {
      "title": "Status",
      "type": "string"
    },
    "versionStatus": {
      "title": "Versionstatus",
      "type": "string"
    }
  },
  "required": [
    "id",
    "model",
    "providerKey",
    "providerModelId",
    "modelVersionId",
    "status",
    "versionStatus",
    "pricingStatus",
    "notBillable",
    "displayName",
    "selectionTier",
    "modelVersion",
    "contextWindowTokens",
    "maxOutputTokens",
    "capabilities",
    "discovery",
    "observation",
    "providerListPrice",
    "customerPrice"
  ],
  "type": "object",
  "$defs": {
    "CustomerPriceComponentResponse": {
      "additionalProperties": false,
      "properties": {
        "amount": {
          "title": "Amount",
          "type": "string"
        },
        "metric": {
          "title": "Metric",
          "type": "string"
        },
        "perQuantity": {
          "title": "Perquantity",
          "type": "integer"
        }
      },
      "required": [
        "metric",
        "amount",
        "perQuantity"
      ],
      "title": "CustomerPriceComponentResponse",
      "type": "object"
    },
    "CustomerPriceResponse": {
      "additionalProperties": false,
      "properties": {
        "components": {
          "items": {
            "$ref": "#/$defs/CustomerPriceComponentResponse"
          },
          "title": "Components",
          "type": "array"
        },
        "currencyCode": {
          "title": "Currencycode",
          "type": "string"
        },
        "effectiveAt": {
          "description": "UTC RFC 3339 timestamp string.",
          "title": "Effectiveat",
          "type": "string"
        },
        "fingerprint": {
          "title": "Fingerprint",
          "type": "string"
        },
        "inputTokenMaximum": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inputtokenmaximum"
        },
        "maximumDebitAmount": {
          "title": "Maximumdebitamount",
          "type": "string"
        },
        "rateBasis": {
          "title": "Ratebasis",
          "type": "string"
        },
        "rateId": {
          "title": "Rateid",
          "type": "string"
        },
        "retiredAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Retiredat"
        },
        "tiers": {
          "items": {
            "$ref": "#/$defs/CustomerPriceTierResponse"
          },
          "title": "Tiers",
          "type": "array"
        }
      },
      "required": [
        "rateId",
        "fingerprint",
        "rateBasis",
        "currencyCode",
        "effectiveAt",
        "retiredAt",
        "inputTokenMaximum",
        "maximumDebitAmount",
        "components",
        "tiers"
      ],
      "title": "CustomerPriceResponse",
      "type": "object"
    },
    "CustomerPriceTierResponse": {
      "additionalProperties": false,
      "properties": {
        "components": {
          "items": {
            "$ref": "#/$defs/CustomerPriceComponentResponse"
          },
          "title": "Components",
          "type": "array"
        },
        "inputTokensGreaterThan": {
          "title": "Inputtokensgreaterthan",
          "type": "integer"
        }
      },
      "required": [
        "inputTokensGreaterThan",
        "components"
      ],
      "title": "CustomerPriceTierResponse",
      "type": "object"
    },
    "ModelCapabilitiesResponse": {
      "additionalProperties": false,
      "properties": {
        "images": {
          "title": "Images",
          "type": "boolean"
        },
        "structuredOutput": {
          "title": "Structuredoutput",
          "type": "boolean"
        },
        "text": {
          "title": "Text",
          "type": "boolean"
        },
        "tools": {
          "title": "Tools",
          "type": "boolean"
        }
      },
      "required": [
        "text",
        "images",
        "tools",
        "structuredOutput"
      ],
      "title": "ModelCapabilitiesResponse",
      "type": "object"
    },
    "ModelDiscoveryStateResponse": {
      "additionalProperties": false,
      "properties": {
        "blockerReasonCodes": {
          "items": {
            "type": "string"
          },
          "title": "Blockerreasoncodes",
          "type": "array"
        },
        "recommended": {
          "title": "Recommended",
          "type": "boolean"
        },
        "runnable": {
          "title": "Runnable",
          "type": "boolean"
        },
        "warningReasonCodes": {
          "items": {
            "type": "string"
          },
          "title": "Warningreasoncodes",
          "type": "array"
        }
      },
      "required": [
        "runnable",
        "recommended",
        "blockerReasonCodes",
        "warningReasonCodes"
      ],
      "title": "ModelDiscoveryStateResponse",
      "type": "object"
    },
    "ModelObservationResponse": {
      "additionalProperties": false,
      "properties": {
        "accountVisible": {
          "title": "Accountvisible",
          "type": "boolean"
        },
        "capabilities": {
          "additionalProperties": true,
          "title": "Capabilities",
          "type": "object"
        },
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Displayname"
        },
        "freshness": {
          "title": "Freshness",
          "type": "string"
        },
        "maxInputTokens": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxinputtokens"
        },
        "maxOutputTokens": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxoutputtokens"
        },
        "observedAt": {
          "description": "UTC RFC 3339 timestamp string.",
          "title": "Observedat",
          "type": "string"
        },
        "refreshId": {
          "minLength": 1,
          "title": "Refreshid",
          "type": "string"
        },
        "releaseTime": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Releasetime"
        }
      },
      "required": [
        "refreshId",
        "observedAt",
        "freshness",
        "accountVisible",
        "displayName",
        "releaseTime",
        "maxInputTokens",
        "maxOutputTokens",
        "capabilities"
      ],
      "title": "ModelObservationResponse",
      "type": "object"
    },
    "ProviderListPriceResponse": {
      "additionalProperties": false,
      "properties": {
        "components": {
          "items": {
            "$ref": "#/$defs/ProviderPriceComponentResponse"
          },
          "title": "Components",
          "type": "array"
        },
        "currencyCode": {
          "title": "Currencycode",
          "type": "string"
        },
        "effectiveAt": {
          "description": "UTC RFC 3339 timestamp string.",
          "title": "Effectiveat",
          "type": "string"
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "pricingProfile": {
          "title": "Pricingprofile",
          "type": "string"
        },
        "retiredAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Retiredat"
        },
        "sourceUrl": {
          "title": "Sourceurl",
          "type": "string"
        },
        "verifiedAt": {
          "description": "UTC RFC 3339 timestamp string.",
          "title": "Verifiedat",
          "type": "string"
        }
      },
      "required": [
        "id",
        "currencyCode",
        "pricingProfile",
        "sourceUrl",
        "verifiedAt",
        "effectiveAt",
        "retiredAt",
        "components"
      ],
      "title": "ProviderListPriceResponse",
      "type": "object"
    },
    "ProviderPriceComponentResponse": {
      "additionalProperties": false,
      "properties": {
        "condition": {
          "additionalProperties": true,
          "title": "Condition",
          "type": "object"
        },
        "conditionKey": {
          "title": "Conditionkey",
          "type": "string"
        },
        "ratePerUnit": {
          "title": "Rateperunit",
          "type": "string"
        },
        "unit": {
          "title": "Unit",
          "type": "string"
        },
        "unitQuantity": {
          "title": "Unitquantity",
          "type": "integer"
        },
        "usageCategory": {
          "title": "Usagecategory",
          "type": "string"
        }
      },
      "required": [
        "usageCategory",
        "conditionKey",
        "condition",
        "unit",
        "unitQuantity",
        "ratePerUnit"
      ],
      "title": "ProviderPriceComponentResponse",
      "type": "object"
    }
  }
}