{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/synlake-ai/json-schema/synlake-ai-estimate-response-schema.json",
  "title": "EstimateResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/synlake-ai-openapi.json#/components/schemas/EstimateResponse",
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string"
    },
    "estimates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/$defs/Provider"
          },
          "instance_type": {
            "type": "string"
          },
          "monthly_estimate": {
            "type": "number"
          },
          "within_budget": {
            "type": "boolean",
            "description": "Present only when constraints.max_monthly_budget_usd was sent. (SYN-53)"
          }
        }
      }
    },
    "cheapest": {
      "$ref": "#/$defs/Provider"
    },
    "savings_vs_most_expensive": {
      "type": "string"
    },
    "budget_met": {
      "type": "boolean",
      "description": "Present only when constraints.max_monthly_budget_usd was sent. True iff at least one estimate fits. (SYN-53)"
    },
    "budget_requested": {
      "type": "number",
      "description": "Echo of the requested budget. Omitted when no budget was sent. (SYN-53)"
    },
    "execution_kit_available": {
      "type": "boolean"
    },
    "get_api_key": {
      "type": "string",
      "format": "uri"
    }
  },
  "$defs": {
    "Provider": {
      "type": "string",
      "enum": [
        "aws",
        "gcp",
        "azure"
      ]
    }
  }
}