{
  "tool_id": "ai_stack_cost_calculator",
  "slug": "ai-stack-cost-calculator",
  "path": "/ai-stack-cost-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aibizhub.io/ai-stack-cost-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aibizhub.io/engines/ai-stack-cost-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aibizhub.io/methodology/ai-stack-cost-calculator/",
  "sample_input": {
    "tool": "ai_stack_cost_calculator",
    "hosting_index": "1",
    "hosting_custom_cost": 0,
    "database_index": "1",
    "database_custom_cost": 0,
    "auth_index": "0",
    "auth_custom_cost": 0,
    "ai_model_index": "0",
    "ai_custom_input_cost": 0,
    "ai_custom_output_cost": 0,
    "avg_input_tokens": 500,
    "avg_output_tokens": 1000,
    "api_calls_per_user_per_day": 5,
    "email_index": "0",
    "email_custom_cost": 0,
    "monitoring_index": "0",
    "monitoring_custom_cost": 0,
    "domain_cost_yearly": 15,
    "other_monthly_costs": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "hosting_index": {
        "type": "string"
      },
      "hosting_custom_cost": {
        "type": "number"
      },
      "database_index": {
        "type": "string"
      },
      "database_custom_cost": {
        "type": "number"
      },
      "auth_index": {
        "type": "string"
      },
      "auth_custom_cost": {
        "type": "number"
      },
      "ai_model_index": {
        "type": "string"
      },
      "ai_custom_input_cost": {
        "type": "number"
      },
      "ai_custom_output_cost": {
        "type": "number"
      },
      "avg_input_tokens": {
        "type": "number"
      },
      "avg_output_tokens": {
        "type": "number"
      },
      "api_calls_per_user_per_day": {
        "type": "number"
      },
      "email_index": {
        "type": "string"
      },
      "email_custom_cost": {
        "type": "number"
      },
      "monitoring_index": {
        "type": "string"
      },
      "monitoring_custom_cost": {
        "type": "number"
      },
      "domain_cost_yearly": {
        "type": "number"
      },
      "other_monthly_costs": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "hosting_index",
      "hosting_custom_cost",
      "database_index",
      "database_custom_cost",
      "auth_index",
      "auth_custom_cost",
      "ai_model_index",
      "ai_custom_input_cost",
      "ai_custom_output_cost",
      "avg_input_tokens",
      "avg_output_tokens",
      "api_calls_per_user_per_day",
      "email_index",
      "email_custom_cost",
      "monitoring_index",
      "monitoring_custom_cost",
      "domain_cost_yearly",
      "other_monthly_costs"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "tiers": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "users": {
              "type": "number"
            },
            "hosting": {
              "type": "number"
            },
            "database": {
              "type": "number"
            },
            "auth": {
              "type": "number"
            },
            "aiApi": {
              "type": "number"
            },
            "email": {
              "type": "number"
            },
            "monitoring": {
              "type": "number"
            },
            "domain": {
              "type": "number"
            },
            "other": {
              "type": "number"
            },
            "total": {
              "type": "number"
            },
            "costPerUser": {
              "type": "number"
            }
          }
        }
      },
      "dominantDriver": {
        "type": "string"
      },
      "dominantDriverPercent": {
        "type": "number"
      },
      "insight": {
        "type": "string"
      }
    }
  }
}
