Skip to the main content
POST3 unitsBearer gfk1.* requiredMCP: gridforge_spec

POST /v1/spec

Turn a binding constraint into a tender-ready technical specification: every numeric requirement derived from the capacity model and naming the constraint it came from, quoted at the site's own conditions rather than a manufacturer's reference condition, plus a machine-readable response schedule.

Server: https://gridforge-engine.fly.dev · Operation ID: gridforge_spec · TS SDK: client.spec()

Behaviour & Evidence Boundary

Turn a binding constraint into a tender-ready technical specification: every numeric requirement derived from the capacity model and naming the constraint it came from, quoted at the site's own conditions rather than a manufacturer's reference condition, plus a machine-readable response schedule. Pass list=true to see which reliefs on the ladder can be tendered. Returns: the specification document, what it is sized for, and the response template a supplier fills in. Every numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.

Call via cURL, TypeScript SDK & Python CLI

cURL (HTTPS JSON)
bash
curl -sS -X POST "https://gridforge-engine.fly.dev/v1/spec" \
  -H "Authorization: Bearer $GRIDFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"intake":{"project":{"client":"Reference Project (synthetic)","reference":"REF-EU-01/DH-02","objective":"max_compute","note":"SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."},"site":{"id":"REF-EU-01","name":"Reference Colocation Campus","country":"DE","metro":"Frankfurt","design_drybulb_C":34,"design_wetbulb_C":21},"hall":{"id":"DH-02","build_year":2015,"floor_type":"raised_floor","net_white_space_m2":2400,"floor_loading_kPa":{"value":12,"note":"Design value from the building record, not a survey"},"clear_height_m":3.2,"aisle_pitch_m":2.4,"rack_positions":560,"positions_available":180,"design_density_kW_per_rack":8,"containment":"cold_aisle"},"grid":{"dso":"Reference DSO","firm_capacity_MVA":14,"power_factor":0.97,"contracted_MW":12,"current_site_peak_MW":{"value":7.4,"note":"12 months of half-hourly metered data"},"current_it_load_MW":4.9,"queue_note":"Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."},"lv":{"voltage_V":400,"phases":3,"busway_ampacity_A":{"value":400,"note":"Legacy 400 A busway; modern AI halls use 800-1000 A"},"busway_runs":8,"busway_utilisation_limit":0.8,"tapoff_max_A":63},"thermal":{"plant":{"id":"CH-PLANT","chilled_water_capacity_kW":6800,"design_supply_C":{"value":6,"note":"Legacy low-temperature plant"},"design_return_C":12,"pump_flow_capacity_l_per_min":9000,"available_head_kPa":250,"free_cooling_hours_per_year":2600},"residual_air_capacity_kW_per_rack":{"value":9,"evidence":"E3","note":"Derived from hall design density and containment; confirm by measurement"},"cdus":[]},"compute":{"platform":"gb300_nvl72","utilisation":0.75,"default_architecture":"hybrid_dlc"}},"objective":"max_compute","format":"md"}'
TypeScript SDK — client.spec()
ts
import { GridForgeClient } from "@timetopower/gridforge-sdk";

const client = new GridForgeClient({ apiKey: process.env.GRIDFORGE_API_KEY });
const result = await client.spec({
  "intake": {
    "project": {
      "client": "Reference Project (synthetic)",
      "reference": "REF-EU-01/DH-02",
      "objective": "max_compute",
      "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
    },
    "site": {
      "id": "REF-EU-01",
      "name": "Reference Colocation Campus",
      "country": "DE",
      "metro": "Frankfurt",
      "design_drybulb_C": 34,
      "design_wetbulb_C": 21
    },
    "hall": {
      "id": "DH-02",
      "build_year": 2015,
      "floor_type": "raised_floor",
      "net_white_space_m2": 2400,
      "floor_loading_kPa": {
        "value": 12,
        "note": "Design value from the building record, not a survey"
      },
      "clear_height_m": 3.2,
      "aisle_pitch_m": 2.4,
      "rack_positions": 560,
      "positions_available": 180,
      "design_density_kW_per_rack": 8,
      "containment": "cold_aisle"
    },
    "grid": {
      "dso": "Reference DSO",
      "firm_capacity_MVA": 14,
      "power_factor": 0.97,
      "contracted_MW": 12,
      "current_site_peak_MW": {
        "value": 7.4,
        "note": "12 months of half-hourly metered data"
      },
      "current_it_load_MW": 4.9,
      "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
    },
    "lv": {
      "voltage_V": 400,
      "phases": 3,
      "busway_ampacity_A": {
        "value": 400,
        "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
      },
      "busway_runs": 8,
      "busway_utilisation_limit": 0.8,
      "tapoff_max_A": 63
    },
    "thermal": {
      "plant": {
        "id": "CH-PLANT",
        "chilled_water_capacity_kW": 6800,
        "design_supply_C": {
          "value": 6,
          "note": "Legacy low-temperature plant"
        },
        "design_return_C": 12,
        "pump_flow_capacity_l_per_min": 9000,
        "available_head_kPa": 250,
        "free_cooling_hours_per_year": 2600
      },
      "residual_air_capacity_kW_per_rack": {
        "value": 9,
        "evidence": "E3",
        "note": "Derived from hall design density and containment; confirm by measurement"
      },
      "cdus": []
    },
    "compute": {
      "platform": "gb300_nvl72",
      "utilisation": 0.75,
      "default_architecture": "hybrid_dlc"
    }
  },
  "objective": "max_compute",
  "format": "md"
}, { idempotencyKey: "run-001" });
console.log(result);
Python stdlib CLI (gridforge)
bash
gridforge spec examples/intake/reference_hall.json --remote

Request Contract & Input Schema

JSON body properties for POST /v1/spec
FieldTypeRequiredDescription
intakeobjectrequiredA GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.
constraintstringoptionalconstraint id to tender for
scenariostringoptional—
listbooleanoptional—
referencestringoptional—
objectivestringoptionalWhat the recommendation optimises for.
formatstringoptional—
OpenAPI 3.1 Request JSON Schema
json
{
  "type": "object",
  "required": [
    "intake"
  ],
  "properties": {
    "intake": {
      "type": "object",
      "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
      "additionalProperties": true
    },
    "constraint": {
      "type": "string",
      "description": "constraint id to tender for"
    },
    "scenario": {
      "type": "string"
    },
    "list": {
      "type": "boolean",
      "default": false
    },
    "reference": {
      "type": "string"
    },
    "objective": {
      "type": "string",
      "enum": [
        "max_compute",
        "min_cost",
        "fastest"
      ],
      "default": "max_compute",
      "description": "What the recommendation optimises for."
    },
    "format": {
      "type": "string",
      "enum": [
        "html",
        "md"
      ],
      "default": "html"
    }
  },
  "additionalProperties": false
}

Response Schema, Headers & Error Codes

Responses carry X-GridForge-Schema: gridforge/api/1, x-request-id, metering headers (X-GridForge-Units, X-GridForge-Units-Month, X-GridForge-Units-Remaining), rate-limit headers (RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset), and RFC 9745/8594 Deprecation / Sunset headers when applicable. POST calls accept Idempotency-Key up to 150 characters.

OpenAPI 3.1 200 Response Schema
json
{
  "type": "object"
}
Error codes returned by POST /v1/spec
StatusCondition
400the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit
401a metered route was called without a key, or with one the engine does not accept
402the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry
409the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready)
422the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved
429the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version)
503paid endpoints are not configured on that deployment, or a charge could not be recorded durably

Worked Example (examples/intake/reference_hall.json)

SYNTHETIC REFERENCE DATA

SYNTHETIC REFERENCE DATA — every request and response in this file was generated deterministically by running the real GridForge Python engine against examples/intake/reference_hall.json. Not a measurement of any customer asset.

Synthetic Request — POST /v1/spec
json
{
  "intake": {
    "project": {
      "client": "Reference Project (synthetic)",
      "reference": "REF-EU-01/DH-02",
      "objective": "max_compute",
      "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
    },
    "site": {
      "id": "REF-EU-01",
      "name": "Reference Colocation Campus",
      "country": "DE",
      "metro": "Frankfurt",
      "design_drybulb_C": 34,
      "design_wetbulb_C": 21
    },
    "hall": {
      "id": "DH-02",
      "build_year": 2015,
      "floor_type": "raised_floor",
      "net_white_space_m2": 2400,
      "floor_loading_kPa": {
        "value": 12,
        "note": "Design value from the building record, not a survey"
      },
      "clear_height_m": 3.2,
      "aisle_pitch_m": 2.4,
      "rack_positions": 560,
      "positions_available": 180,
      "design_density_kW_per_rack": 8,
      "containment": "cold_aisle"
    },
    "grid": {
      "dso": "Reference DSO",
      "firm_capacity_MVA": 14,
      "power_factor": 0.97,
      "contracted_MW": 12,
      "current_site_peak_MW": {
        "value": 7.4,
        "note": "12 months of half-hourly metered data"
      },
      "current_it_load_MW": 4.9,
      "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
    },
    "transformers": [
      {
        "id": "TX-A/B",
        "unit_rating_MVA": 5,
        "units": 3,
        "redundancy": "N+1",
        "derating_factor": 0.9,
        "replacement_lead_time_weeks": 160
      }
    ],
    "ups": [
      {
        "id": "UPS-1",
        "unit_rating_kW": 1200,
        "units": 6,
        "redundancy": "N+1",
        "step_load_capability": 0.5
      }
    ],
    "lv": {
      "voltage_V": 400,
      "phases": 3,
      "busway_ampacity_A": {
        "value": 400,
        "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
      },
      "busway_runs": 8,
      "busway_utilisation_limit": 0.8,
      "tapoff_max_A": 63
    },
    "thermal": {
      "plant": {
        "id": "CH-PLANT",
        "chilled_water_capacity_kW": 6800,
        "design_supply_C": {
          "value": 6,
          "note": "Legacy low-temperature plant"
        },
        "design_return_C": 12,
        "pump_flow_capacity_l_per_min": 9000,
        "available_head_kPa": 250,
        "free_cooling_hours_per_year": 2600
      },
      "residual_air_capacity_kW_per_rack": {
        "value": 9,
        "evidence": "E3",
        "note": "Derived from hall design density and containment; confirm by measurement"
      },
      "cdus": []
    },
    "compute": {
      "platform": "gb300_nvl72",
      "utilisation": 0.75,
      "default_architecture": "hybrid_dlc"
    },
    "btm_options": [
      {
        "id": "BESS-2MW-8MWh",
        "kind": "bess",
        "capacity_MW": 2,
        "capex_eur_per_kW": 900,
        "lead_time_weeks": 30,
        "firm": true,
        "firm_capacity_factor": 0.5,
        "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
      },
      {
        "id": "GEN-5MW",
        "kind": "gas_engine",
        "capacity_MW": 5,
        "capex_eur_per_kW": 800,
        "lead_time_weeks": 44,
        "firm": true,
        "opex_eur_per_MWh": 95,
        "annual_run_hours": 5000,
        "fixed_om_eur_per_kW_year": 18,
        "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
      }
    ],
    "economics": {
      "horizon_years": 10
    },
    "scenarios": [
      "retained_air",
      "rdhx",
      "hybrid_dlc",
      "full_dlc",
      "full_dlc_btm"
    ]
  },
  "objective": "max_compute",
  "format": "md"
}
Real Engine Output (Synthetic Hall) — POST /v1/spec
json
{
  "schema_version": "gridforge/api/1",
  "format": "md",
  "title": "Technical Specification — Replace busway with 800-1000 A and new tap-off units",
  "document": "# Technical Specification — Replace busway with 800-1000 A and new tap-off units\n\n*Reference Project (synthetic) · hall DH-02 · issued 2026-11-27*\n\n> **Duties in this document are derived from a capacity model of this hall. They are modelled values, not measurements of installed plant, and each one names the constraint it came from.**\n\n## 1. Purpose\n\nThis package procures the works required to relieve Busway ampacity in hall DH-02. In the capacity model for this hall that constraint is what limits deployable rack count; relieving it moves the hall from 12 to 22 racks, and it is part of a programme that reaches 62 racks in total.\n\nDuties in section 3 are sized for the end state of 62 racks of NVIDIA GB300 NVL72 — the hall this relief is part of delivering — not for the 10 rack(s) this single step unlocks on its own. Nobody buys plant for a marginal rack.\n\nIn the capacity model this step m\n... [truncated synthetic output; full length 16712 chars]",
  "calibration": {
    "state": "uncalibrated",
    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such difference has been recorded yet.",
    "observations": 0,
    "observations_total": 0,
    "observations_without_source_ref": 0,
    "sites": 0,
    "halls": 0,
    "keys_asserted": 3,
    "keys_with_site_observations": 0,
    "keys_calibrated": 0,
    "coverage": 0,
    "keys": [],
    "uncalibrated_keys": [
      "constraint.rack_feed_tapoff.racks",
      "envelope.racks",
      "envelope.it_load_kW"
    ]
  },
  "specification": {
    "constraint_id": "busway_ampacity",
    "constraint": "Busway ampacity",
    "relief": "Replace busway with 800-1000 A and new tap-off units",
    "sized_for_racks": 62,
    "requirements": 6,
    "mandatory": 6,
    "site_conditions": [
      {
        "id": "SC-01",
        "label": "Design ambient dry bulb (summer)",
        "path": "site.design_drybulb_C",
        "status": "supplied",
        "value": 34,
        "text": null,
        "unit": "degC",
        "evidence": "E3",
        "statement": "supplied by the client (not measured or surveyed by us)"
      },
      {
        "id": "SC-02",
        "label": "Design ambient wet bulb (summer)",
        "path": "site.design_wetbulb_C",
        "status": "supplied",
        "value": 21,
        "text": null,
        "unit": "degC",
        "evidence": "E5",
        "statement": "supplied by the client (not measured or surveyed by us)"
      },
      {
        "id": "SC-03",
        "label": "Facility-water supply temperature (existing plant)",
        "path": "thermal.plant.design_supply_C",
        "status": "supplied",
        "value": 6,
        "text": null,
        "unit": "degC",
        "evidence": "E5",
        "statement": "supplied by the client (not measured or surveyed by us)"
      },
      {
        "id": "SC-04",
        "label": "Technology-loop (TCS) supply target",
        "path": "thermal.tcs_target_supply_C",
        "status": "assumed",
        "value": 30,
        "text": null,
        "unit": "degC",
        "evidence": "E0",
        "statement": "not supplied: assumed 30 degC (E0)"
      },
      {
        "id": "SC-05",
        "label": "Site altitude",
        "path": null,
        "status": "not_modelled",
        "value": null,
        "text": "not modelled",
        "unit": null,
        "evidence": null,
        "statement": "not supplied: the capacity model has no altitude input, so no altitude derating of air-cooled plant, motors or electrical equipment has been applied to any duty. Responders shall quote at the site altitude the client confirms and state it."
      },
      {
        "id": "SC-06",
        "label": "LV distribution voltage",
        "path": "lv.voltage_V",
        "status": "supplied",
        "value": 400,
        "text": null,
        "unit": "V",
        "evidence": "E5",
        "statement": "supplied by the client (not measured or surveyed by us) · 3-phase"
      }
    ],
    "assumed_inputs": [
      {
        "path": "btm_options[BESS-2MW-8MWh].energy_MWh",
        "label": "BESS-2MW-8MWh battery energy rating",
        "unit": "MWh",
        "assumed": "your firm factor 0.5 accepted as declared, unchecked against the battery's energy (E0)"
      },
      {
        "path": "btm_options[GEN-5MW].units",
        "label": "GEN-5MW unit count and redundancy",
        "unit": "units",
        "assumed": "credited at nameplate x firm factor, as if no unit could be out of service (E0)"
      },
      {
        "path": "thermal.cdus",
        "label": "Installed CDU schedule",
        "unit": "",
        "assumed": "three 1,350 kW N+1 CDUs (2,700 kW usable) assumed as the starting point of the hybrid and full-DLC scenarios (E0); the kit is priced as a purchase and the racks that depend on it are dated"
      },
      {
        "path": "thermal.plant.existing_flow_l_per_min",
        "label": "Flow the existing hall already draws on the plant",
        "unit": "l/min",
        "assumed": "0 l/min, nothing subtracted (the pumped flow is read as flow available to the new load) (E0)"
      },
      {
        "path": "thermal.plant.existing_non_it_heat_kW",
        "label": "Other heat the existing hall already puts on the plant",
        "unit": "kW",
        "assumed": "0 kW, nothing subtracted (plant headroom is the plant capacity less the IT load only) (E0)"
      },
      {
        "path": "thermal.tcs_target_supply_C",
        "label": "TCS target supply temperature",
        "unit": "degC",
        "assumed": "30 [27–32] degC (E0)"
      }
    ]
  },
  "response_template": {
    "specification": {
      "project": "Reference Project (synthetic)",
      "hall": "DH-02",
      "constraint": "busway_ampacity",
      "sized_for_racks": 62
    },
    "template_version": 2,
    "supplier": "",
    "received_on": "",
    "valid_until": "",
    "currency": "",
    "values": {
      "capex_eur": null,
      "lead_time_weeks": null,
      "install_weeks": null,
      "outage_hours_per_unit": null,
      "duty_at_site_conditions": null,
      "validity_days": null
    },
    "compliance": {
      "E-10": "",
      "E-11": "",
      "E-12": "",
      "C-01": "",
      "C-02": "",
      "C-03": ""
    }
  }
}