{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynn-com/json-schema/bynn-com-bynn-v1-entities-moderation-model-entity-schema.json",
  "title": "Bynn_V1_Entities_ModerationModelEntity",
  "description": "Bynn_V1_Entities_ModerationModelEntity model",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynn-com-openapi.json#/components/schemas/Bynn_V1_Entities_ModerationModelEntity",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique model identifier"
    },
    "api_name": {
      "type": "string",
      "description": "API name for model (hyphenated, used in API calls)"
    },
    "name": {
      "type": "string",
      "description": "Model display name"
    },
    "description": {
      "type": "string",
      "description": "Model description"
    },
    "category": {
      "type": "string",
      "description": "Model category"
    },
    "moderation_type": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio",
        "text"
      ],
      "description": "Type of moderation (image, video, audio, text)"
    },
    "icon": {
      "type": "string",
      "description": "Lucide icon name for the model"
    },
    "is_active": {
      "type": "boolean",
      "description": "Whether the model is currently active"
    },
    "accuracy": {
      "type": "number",
      "description": "Model accuracy percentage"
    },
    "avg_response_time_ms": {
      "type": "integer",
      "format": "int32",
      "description": "Average response time in milliseconds (calculated from last 10 completed inferences)"
    },
    "pricing": {
      "type": "object",
      "description": "Pricing information"
    },
    "all_plans_pricing": {
      "type": "object",
      "description": "Pricing information for all plan tiers (Trial, Core, Compliance, Forensic, Enterprise, Custom, Crypto)"
    },
    "supported_formats": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {}
      },
      "description": "Supported file formats"
    },
    "max_file_size_mb": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum file size in MB"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {}
      },
      "description": "Model tags for filtering"
    },
    "input_schema": {
      "type": "object",
      "description": "Input parameter schema from Triton model class"
    },
    "output_schema": {
      "type": "object",
      "description": "Output field schema from Triton model class"
    },
    "example_request": {
      "type": "object",
      "description": "Example API request parameters"
    },
    "example_response": {
      "type": "object",
      "description": "Example API response"
    },
    "require_plan": {
      "type": "string",
      "enum": [
        "trial",
        "core",
        "compliance",
        "forensic",
        "enterprise",
        "custom",
        "crypto"
      ],
      "description": "Minimum plan required to access this model"
    },
    "sample_content": {
      "type": "array",
      "description": "Sample content for testing (URLs for media, text for text models)",
      "items": {}
    },
    "version": {
      "type": "integer",
      "format": "int32",
      "description": "Model version number"
    },
    "version_date": {
      "type": "string",
      "description": "Model version release date"
    },
    "documentation_image_url": {
      "type": "string",
      "description": "Main documentation image URL"
    },
    "has_documentation": {
      "type": "boolean",
      "description": "Whether the model has documentation content"
    },
    "documentation": {
      "type": "string",
      "description": "Rich text HTML documentation for the model"
    }
  },
  "required": [
    "id",
    "api_name",
    "name",
    "description",
    "category",
    "moderation_type",
    "icon",
    "is_active",
    "accuracy",
    "avg_response_time_ms",
    "pricing",
    "supported_formats",
    "max_file_size_mb",
    "tags",
    "input_schema",
    "output_schema",
    "example_request",
    "example_response",
    "require_plan",
    "sample_content",
    "version",
    "version_date",
    "documentation_image_url",
    "has_documentation"
  ]
}