{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-cost-estimate-response-schema.json",
  "title": "CostEstimateResponse",
  "description": "Response body for /cost/estimate endpoint.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-cost-tracking-api-openapi.yml#/components/schemas/CostEstimateResponse",
  "properties": {
    "model": {
      "type": "string",
      "title": "Model"
    },
    "input_tokens": {
      "type": "integer",
      "title": "Input Tokens"
    },
    "output_tokens": {
      "type": "integer",
      "title": "Output Tokens"
    },
    "num_requests_per_day": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Num Requests Per Day"
    },
    "num_requests_per_month": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Num Requests Per Month"
    },
    "cost_per_request": {
      "type": "number",
      "title": "Cost Per Request",
      "description": "Total cost per request (includes margin)"
    },
    "input_cost_per_request": {
      "type": "number",
      "title": "Input Cost Per Request",
      "description": "Input token cost per request (before margin)"
    },
    "output_cost_per_request": {
      "type": "number",
      "title": "Output Cost Per Request",
      "description": "Output token cost per request (before margin)"
    },
    "margin_cost_per_request": {
      "type": "number",
      "title": "Margin Cost Per Request",
      "description": "Margin/fee added per request",
      "default": 0.0
    },
    "daily_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Cost",
      "description": "Total daily cost (includes margin)"
    },
    "daily_input_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Input Cost",
      "description": "Daily input token cost"
    },
    "daily_output_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Output Cost",
      "description": "Daily output token cost"
    },
    "daily_margin_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Margin Cost",
      "description": "Daily margin/fee"
    },
    "monthly_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Cost",
      "description": "Total monthly cost (includes margin)"
    },
    "monthly_input_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Input Cost",
      "description": "Monthly input token cost"
    },
    "monthly_output_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Output Cost",
      "description": "Monthly output token cost"
    },
    "monthly_margin_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Margin Cost",
      "description": "Monthly margin/fee"
    },
    "input_cost_per_token": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Cost Per Token"
    },
    "output_cost_per_token": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Cost Per Token"
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    }
  },
  "type": "object",
  "required": [
    "model",
    "input_tokens",
    "output_tokens",
    "cost_per_request",
    "input_cost_per_request",
    "output_cost_per_request"
  ]
}