{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keepbal-com/json-schema/keepbal-com-catalog-model-schema.json",
  "title": "CatalogModel",
  "description": "Raw compatibility token rates in micro-USD per million tokens. The legacy output_micros_per_m field remains present for embeddings but is inapplicable; embeddings bill input tokens only. Cache rates apply to generation endpoints when known; zero is a known rate, while absent/null is unknown.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keepbal-com-openapi.yaml#/components/schemas/CatalogModel",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "input_micros_per_m": {
      "type": "integer",
      "minimum": 0
    },
    "output_micros_per_m": {
      "type": "integer",
      "minimum": 0,
      "description": "Inapplicable for embeddings; retained for compatibility"
    },
    "cache_read_micros_per_m": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "cache_write_micros_per_m": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    }
  },
  "additionalProperties": true
}