{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskmodels-app/json-schema/riskmodels-app-estimate-response-schema.json",
  "title": "EstimateResponse",
  "description": "Cost estimate for a request before it is made.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskmodels-app-billing-api-openapi.yml#/components/schemas/EstimateResponse",
  "type": "object",
  "required": [
    "estimated_cost_usd",
    "capability",
    "pricing_model",
    "note"
  ],
  "properties": {
    "estimated_cost_usd": {
      "type": "number",
      "format": "float"
    },
    "estimated_tokens": {
      "type": "integer"
    },
    "estimated_rows": {
      "type": "integer",
      "description": "Estimated row count for time-series endpoints."
    },
    "estimated_bytes": {
      "type": "integer",
      "description": "Estimated response size in bytes."
    },
    "capability": {
      "type": "string"
    },
    "pricing_model": {
      "type": "string",
      "enum": [
        "per_request",
        "per_position",
        "per_token",
        "subscription"
      ]
    },
    "unit_cost_usd": {
      "type": "number",
      "format": "float"
    },
    "min_charge": {
      "type": "number",
      "format": "float"
    },
    "note": {
      "type": "string"
    }
  }
}