{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/auxen-ai/json-schema/auxen-ai-model-schema.json",
  "title": "Model",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/auxen-ai-openapi.json#/components/schemas/Model",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tier": {
      "enum": [
        "fast",
        "balanced",
        "powerful",
        "maximum"
      ]
    },
    "family": {
      "type": "string"
    },
    "status": {
      "enum": [
        "active",
        "legacy"
      ],
      "description": "Legacy models are listed only with include_legacy=true and can be deployed until 2027-04-02; after that, deploys return MODEL_DEPRECATED with replacement_model."
    },
    "is_default_for_tier": {
      "type": "boolean"
    },
    "is_recommended": {
      "type": "boolean"
    },
    "context_length": {
      "type": "integer"
    },
    "license": {
      "type": "string"
    },
    "hf_repo": {
      "type": "string"
    },
    "release_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "replacement_model": {
      "type": [
        "string",
        "null"
      ]
    },
    "rate_per_hour": {
      "type": "string"
    },
    "minimum_session_minutes": {
      "type": "integer",
      "description": "Warm-up is free. Once a deployment is ready, each session (ready → pause or delete) is billed for at least this many minutes."
    },
    "size_group": {
      "enum": [
        "small",
        "medium",
        "large",
        "xl"
      ]
    },
    "parameter_count": {
      "type": "string"
    },
    "speed_rating": {
      "enum": [
        "fast",
        "balanced",
        "powerful",
        "maximum"
      ]
    },
    "best_for": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "plans": {
      "type": "object",
      "description": "Pay-as-you-go pricing for this model at Standard throughput. The legacy `subscription` field is retained for grandfathered accounts.",
      "properties": {
        "pay_as_you_go": {
          "type": "object",
          "properties": {
            "hourly_cost": {
              "type": "number"
            }
          }
        },
        "on_demand": {
          "deprecated": true,
          "description": "Back-compat alias for `pay_as_you_go`.",
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "hourly_cost": {
              "type": "number"
            }
          }
        },
        "subscription": {
          "deprecated": true,
          "description": "Legacy field. Subscription billing is grandfathered; not available for new deployments.",
          "type": "object",
          "properties": {
            "plan": {
              "enum": [
                "shared",
                "dedicated",
                "business",
                "enterprise"
              ]
            },
            "monthly_cost": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}