{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ModelPricing",
  "title": "ModelPricing",
  "properties": {
    "threshold": {
      "type": "number",
      "format": "double"
    },
    "input": {
      "type": "number",
      "format": "double"
    },
    "output": {
      "type": "number",
      "format": "double"
    },
    "cacheMultipliers": {
      "properties": {
        "write1h": {
          "type": "number",
          "format": "double"
        },
        "write5m": {
          "type": "number",
          "format": "double"
        },
        "cachedInput": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "cachedInput"
      ],
      "type": "object"
    },
    "cacheStoragePerHour": {
      "type": "number",
      "format": "double"
    },
    "thinking": {
      "type": "number",
      "format": "double"
    },
    "request": {
      "type": "number",
      "format": "double"
    },
    "image": {
      "$ref": "#/components/schemas/ModalityPricing"
    },
    "audio": {
      "$ref": "#/components/schemas/ModalityPricing"
    },
    "video": {
      "$ref": "#/components/schemas/ModalityPricing"
    },
    "file": {
      "$ref": "#/components/schemas/ModalityPricing"
    },
    "web_search": {
      "type": "number",
      "format": "double"
    }
  },
  "required": [
    "threshold",
    "input",
    "output"
  ],
  "type": "object",
  "additionalProperties": false
}