{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/synlake-ai/json-schema/synlake-ai-estimate-request-schema.json",
  "title": "EstimateRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/synlake-ai-openapi.json#/components/schemas/EstimateRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "intent",
    "requirements"
  ],
  "properties": {
    "intent": {
      "type": "string",
      "enum": [
        "compute"
      ],
      "description": "v0.1: only 'compute'"
    },
    "requirements": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "vcpus": {
          "type": "integer"
        },
        "memory_gb": {
          "type": "number"
        },
        "gpu": {
          "type": "boolean"
        },
        "region": {
          "type": "string"
        },
        "architecture": {
          "type": "string",
          "enum": [
            "x86_64",
            "arm64"
          ]
        }
      }
    },
    "providers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Provider"
      }
    },
    "pricing_model": {
      "$ref": "#/$defs/PricingModel"
    },
    "constraints": {
      "type": "object",
      "additionalProperties": false,
      "description": "Optional. /estimate annotates budget_met + within_budget; /query enforces with BUDGET_EXCEEDED. (SYN-53)",
      "properties": {
        "max_monthly_budget_usd": {
          "type": "number",
          "minimum": 0
        }
      }
    }
  },
  "$defs": {
    "PricingModel": {
      "type": "string",
      "enum": [
        "on_demand",
        "spot",
        "reserved_1y"
      ]
    },
    "Provider": {
      "type": "string",
      "enum": [
        "aws",
        "gcp",
        "azure"
      ]
    }
  }
}