{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openmayhem-ai/json-schema/openmayhem-ai-catalog-model-schema.json",
  "title": "CatalogModel",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openmayhem-ai-openapi.json#/components/schemas/CatalogModel",
  "type": "object",
  "required": [
    "id",
    "name",
    "endpoints",
    "providers_online",
    "attestation_tiers",
    "live_attestation_tiers",
    "attestation_tier_labels",
    "live_attestation_tier_labels",
    "quantizations",
    "live_quantizations",
    "route_count",
    "registered_route_count",
    "provider_count",
    "registered_provider_count",
    "providers",
    "prompt_confidential",
    "registered_prompt_confidential",
    "kyb_identities",
    "registered_kyb_identities",
    "attestation_verification",
    "capacity",
    "routes",
    "pricing"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Lowercase catalog model id."
    },
    "object": {
      "type": "string",
      "enum": [
        "model"
      ]
    },
    "name": {
      "type": "string"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "CHAT",
          "COMPLETIONS",
          "RESPONSES",
          "EMBEDDINGS",
          "DECISIONS",
          "IMAGES",
          "VIDEOS",
          "AUDIO_SPEECH",
          "AUDIO_TRANSCRIPTIONS",
          "AUDIO_GENERATIONS",
          "MUSIC",
          "WORKFLOWS"
        ]
      }
    },
    "family": {
      "type": [
        "string",
        "null"
      ]
    },
    "model_class": {
      "type": [
        "string",
        "null"
      ]
    },
    "context_length": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "max_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "parameters": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "request_contracts": {
      "type": "array",
      "description": "Signed endpoint request contracts, including required attributes and allowed values. Inspect the contract for the selected endpoint rather than assuming all models accept the same parameters.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "workflow": {
      "type": [
        "object",
        "null"
      ],
      "description": "Signed workflow policy when available, including approved graph constraints and parts. Custom dimensions and LoRAs remain subject to this policy.",
      "additionalProperties": true
    },
    "workflow_media": {
      "type": [
        "object",
        "null"
      ],
      "description": "Validated media presentation metadata when available: supported controls, presets and approved selections used by Studio. This does not imply every model supports these features.",
      "additionalProperties": true
    },
    "live_capacity_profiles": {
      "type": "array",
      "description": "Current provider capacity profiles. A request must fit an eligible provider as well as the model contract; a catalog preset is not an availability guarantee.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "registered_capacity_profiles": {
      "type": "array",
      "description": "Registered capacity profiles, including providers that may not currently be available.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "listed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "providers_online": {
      "type": "integer",
      "minimum": 0
    },
    "attestation_tiers": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 4
      }
    },
    "live_attestation_tiers": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 4
      }
    },
    "attestation_tier_labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "live_attestation_tier_labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "quantizations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "live_quantizations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "route_count": {
      "type": "integer",
      "minimum": 0
    },
    "registered_route_count": {
      "type": "integer",
      "minimum": 0
    },
    "provider_count": {
      "type": "integer",
      "minimum": 0
    },
    "registered_provider_count": {
      "type": "integer",
      "minimum": 0
    },
    "providers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogProvider"
      }
    },
    "prompt_confidential": {
      "type": "boolean",
      "description": "True when a live confidential route exists."
    },
    "registered_prompt_confidential": {
      "type": "boolean"
    },
    "kyb_identities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogKybIdentity"
      }
    },
    "registered_kyb_identities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogKybIdentity"
      }
    },
    "attestation_verification": {
      "type": [
        "object",
        "null"
      ],
      "description": "Sanitized aggregate policy-readiness counts from Core.",
      "additionalProperties": true
    },
    "capacity": {
      "$ref": "#/$defs/CatalogCapacity"
    },
    "routes": {
      "type": "array",
      "description": "Sanitized registered route tuples. live marks routes currently dispatch-eligible; one tuple must satisfy all composed route filters.",
      "items": {
        "$ref": "#/$defs/CatalogRoute"
      }
    },
    "pricing": {
      "$ref": "#/$defs/CatalogPricing"
    }
  },
  "$defs": {
    "CatalogCapacity": {
      "type": "object",
      "required": [
        "context_tokens",
        "output_tokens",
        "concurrent_requests"
      ],
      "properties": {
        "context_tokens": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        },
        "output_tokens": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        },
        "concurrent_requests": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        }
      }
    },
    "CatalogKybIdentity": {
      "type": "object",
      "required": [
        "provider",
        "legal_name",
        "jurisdiction",
        "proof_hash",
        "kyb_ref"
      ],
      "properties": {
        "provider": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "legal_name": {
          "type": "string"
        },
        "jurisdiction": {
          "type": "string"
        },
        "proof_hash": {
          "type": "string"
        },
        "kyb_ref": {
          "type": "string"
        }
      }
    },
    "CatalogPricing": {
      "type": "object",
      "required": [
        "unit",
        "rates",
        "prompt_per_million_au",
        "completion_per_million_au",
        "request_au",
        "min_request_au",
        "price_version",
        "representative_request_au",
        "representative_usage"
      ],
      "properties": {
        "unit": {
          "type": "string",
          "enum": [
            "au_usd"
          ]
        },
        "rates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogRate"
          }
        },
        "dimensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogRate"
          }
        },
        "prompt_per_million_au": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[0-9]+$"
        },
        "completion_per_million_au": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[0-9]+$"
        },
        "request_au": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "min_request_au": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "price_version": {
          "type": "integer",
          "minimum": 1
        },
        "representative_request_au": {
          "type": "string",
          "pattern": "^[0-9]+$",
          "description": "Retail price for one granularity block of every priced dimension. Use this unit-aware reference for cross-modality comparison; it is not a forecast for an arbitrary request."
        },
        "representative_usage": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0
          }
        }
      }
    },
    "CatalogProvider": {
      "type": "object",
      "required": [
        "id",
        "live"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "live": {
          "type": "boolean"
        }
      }
    },
    "CatalogRate": {
      "type": "object",
      "required": [
        "unit",
        "per_unit_au",
        "granularity"
      ],
      "properties": {
        "unit": {
          "type": "string"
        },
        "per_unit_au": {
          "type": "string",
          "pattern": "^[0-9]+$",
          "description": "Atto-USD per billing unit."
        },
        "granularity": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "CatalogRoute": {
      "type": "object",
      "required": [
        "provider",
        "live",
        "attestation_tier",
        "quantization",
        "context_tokens",
        "prompt_confidential",
        "tools",
        "structured_output"
      ],
      "properties": {
        "provider": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "live": {
          "type": "boolean"
        },
        "attestation_tier": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 4
        },
        "quantization": {
          "type": [
            "string",
            "null"
          ]
        },
        "context_tokens": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1
        },
        "prompt_confidential": {
          "type": "boolean"
        },
        "tools": {
          "type": "boolean"
        },
        "structured_output": {
          "type": "boolean"
        },
        "kyb": {
          "oneOf": [
            {
              "$ref": "#/$defs/CatalogKybIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "attestation_verification": {
          "type": [
            "object",
            "null"
          ],
          "description": "Sanitized route policy readiness; internal reasons are never exposed.",
          "properties": {
            "policy_required": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "locally_ready": {
              "type": [
                "boolean",
                "null"
              ]
            }
          }
        }
      }
    }
  }
}