{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beam-ai/json-schema/beam-ai-gpt-model-schema.json",
  "title": "GptModel",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beam-ai-custom-tool-api-openapi.yml#/components/schemas/GptModel",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "modelName": {
      "type": "string"
    },
    "modelValue": {
      "type": "string"
    },
    "isDefault": {
      "type": "boolean"
    },
    "llmsGroupId": {
      "type": "string"
    },
    "creditsCost": {
      "type": "number"
    },
    "inputTokenPrice": {
      "type": "number"
    },
    "outputTokenPrice": {
      "type": "number"
    },
    "enableInChat": {
      "type": "boolean"
    },
    "isPremium": {
      "type": "boolean"
    },
    "llmsGroup": {
      "$ref": "#/$defs/LlmsGroup"
    }
  },
  "required": [
    "id",
    "modelName",
    "modelValue",
    "isDefault",
    "llmsGroupId",
    "creditsCost",
    "inputTokenPrice",
    "outputTokenPrice",
    "enableInChat",
    "isPremium",
    "llmsGroup"
  ],
  "$defs": {
    "GptModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "modelName": {
          "type": "string"
        },
        "modelValue": {
          "type": "string"
        },
        "isDefault": {
          "type": "boolean"
        },
        "llmsGroupId": {
          "type": "string"
        },
        "creditsCost": {
          "type": "number"
        },
        "inputTokenPrice": {
          "type": "number"
        },
        "outputTokenPrice": {
          "type": "number"
        },
        "enableInChat": {
          "type": "boolean"
        },
        "isPremium": {
          "type": "boolean"
        },
        "llmsGroup": {
          "$ref": "#/$defs/LlmsGroup"
        }
      },
      "required": [
        "id",
        "modelName",
        "modelValue",
        "isDefault",
        "llmsGroupId",
        "creditsCost",
        "inputTokenPrice",
        "outputTokenPrice",
        "enableInChat",
        "isPremium",
        "llmsGroup"
      ]
    },
    "LlmsGroup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "isActive": {
          "type": "boolean"
        },
        "llmModels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GptModel"
          }
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "description",
        "icon",
        "isActive",
        "llmModels",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}