{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokcloner-com/json-schema/tokcloner-com-model-catalog-schema.json",
  "title": "ModelCatalog",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokcloner-com-openapi.json#/components/schemas/ModelCatalog",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "credits": {
      "type": "object",
      "properties": {
        "pipeline": {
          "type": "integer"
        },
        "description": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "credits_per_slide": {
            "description": "Number, or an object keyed by quality/resolution"
          },
          "plan_required": {
            "type": "string",
            "enum": [
              "starter",
              "pro",
              "studio"
            ]
          },
          "qualities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "resolutions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "allowed_model_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "estimate_example": {
      "type": "object",
      "properties": {
        "slides": {
          "type": "integer"
        },
        "model": {
          "type": "string"
        },
        "total_credits": {
          "type": "integer"
        }
      }
    }
  }
}