POST /v1/bids
Compare supplier responses against the capacity model: what each bid does to the energisation date and to deployable rack count, not only what it costs.
Server: https://gridforge-engine.fly.dev · Operation ID: gridforge_bids · TS SDK: client.bids()
Behaviour & Evidence Boundary
Compare supplier responses against the capacity model: what each bid does to the energisation date and to deployable rack count, not only what it costs. A non-compliant bid is never ranked above a compliant one. Returns: ranked bids with scores, schedule impact, and optional cost-library lines. 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 -sS -X POST "https://gridforge-engine.fly.dev/v1/bids" \
-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","responses":[{"specification":{"project":"Reference Project (synthetic)","hall":"DH-02","constraint":"busway_ampacity","sized_for_racks":62},"template_version":2,"supplier":"Synthetic Switchgear Vendor A","received_on":"2026-11-27","valid_until":"2026-11-27","currency":"EUR","values":{"capex_eur":185000,"lead_time_weeks":18,"install_weeks":4,"outage_hours_per_unit":6,"duty_at_site_conditions":800,"validity_days":90},"compliance":{"E-10":"C","E-11":"C","E-12":"C","C-01":"C","C-02":"C","C-03":"C"},"reference":"SYNTH-QUOTE-01"}]}'import { GridForgeClient } from "@timetopower/gridforge-sdk";
const client = new GridForgeClient({ apiKey: process.env.GRIDFORGE_API_KEY });
const result = await client.bids({
"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",
"responses": [
{
"specification": {
"project": "Reference Project (synthetic)",
"hall": "DH-02",
"constraint": "busway_ampacity",
"sized_for_racks": 62
},
"template_version": 2,
"supplier": "Synthetic Switchgear Vendor A",
"received_on": "2026-11-27",
"valid_until": "2026-11-27",
"currency": "EUR",
"values": {
"capex_eur": 185000,
"lead_time_weeks": 18,
"install_weeks": 4,
"outage_hours_per_unit": 6,
"duty_at_site_conditions": 800,
"validity_days": 90
},
"compliance": {
"E-10": "C",
"E-11": "C",
"E-12": "C",
"C-01": "C",
"C-02": "C",
"C-03": "C"
},
"reference": "SYNTH-QUOTE-01"
}
]
}, { idempotencyKey: "run-001" });
console.log(result);gridforge bids examples/intake/reference_hall.json responses.json --remoteRequest Contract & Input Schema
| Field | Type | Required | Description |
|---|---|---|---|
| intake | object | required | 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. |
| responses | array | required | — |
| constraint | string | optional | — |
| scenario | string | optional | — |
| ingest | boolean | optional | also return the cost-library lines the winning response implies |
| evidence_only | boolean | optional | return the validated or invalid quote lines instead of a ranking; nothing is accepted until a person reviews it |
| basis | string | optional | — |
| region | string | optional | — |
| objective | string | optional | What the recommendation optimises for. |
{
"type": "object",
"required": [
"intake",
"responses"
],
"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
},
"responses": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": true
}
},
"constraint": {
"type": "string"
},
"scenario": {
"type": "string"
},
"ingest": {
"type": "boolean",
"default": false,
"description": "also return the cost-library lines the winning response implies"
},
"evidence_only": {
"type": "boolean",
"default": false,
"description": "return the validated or invalid quote lines instead of a ranking; nothing is accepted until a person reviews it"
},
"basis": {
"type": "string",
"enum": [
"budgetary_quote",
"firm_quote",
"contracted"
],
"default": "budgetary_quote"
},
"region": {
"type": "string"
},
"objective": {
"type": "string",
"enum": [
"max_compute",
"min_cost",
"fastest"
],
"default": "max_compute",
"description": "What the recommendation optimises for."
}
},
"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.
{
"type": "object"
}| Status | Condition |
|---|---|
| 400 | the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit |
| 401 | a metered route was called without a key, or with one the engine does not accept |
| 402 | the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry |
| 409 | the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready) |
| 422 | the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved |
| 429 | the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version) |
| 503 | paid endpoints are not configured on that deployment, or a charge could not be recorded durably |
Worked Example (examples/intake/reference_hall.json)
SYNTHETIC REFERENCE DATASYNTHETIC 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.
{
"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",
"responses": [
{
"specification": {
"project": "Reference Project (synthetic)",
"hall": "DH-02",
"constraint": "busway_ampacity",
"sized_for_racks": 62
},
"template_version": 2,
"supplier": "Synthetic Switchgear Vendor A",
"received_on": "2026-11-27",
"valid_until": "2026-11-27",
"currency": "EUR",
"values": {
"capex_eur": 185000,
"lead_time_weeks": 18,
"install_weeks": 4,
"outage_hours_per_unit": 6,
"duty_at_site_conditions": 800,
"validity_days": 90
},
"compliance": {
"E-10": "C",
"E-11": "C",
"E-12": "C",
"C-01": "C",
"C-02": "C",
"C-03": "C"
},
"reference": "SYNTH-QUOTE-01"
}
]
}{
"schema_version": "gridforge/api/1",
"relief": "Replace busway with 800-1000 A and new tap-off units",
"constraint_id": "busway_ampacity",
"sized_for_racks": 62,
"ranked": [
{
"rank": 1,
"supplier": "Synthetic Switchgear Vendor A",
"headline": "Synthetic Switchgear Vendor A: EUR 185,000, 22 weeks to energised, score 85/100 (relative to the bids compared)",
"capex_eur": 185000,
"weeks_to_energised": 22,
"eur_per_rack": 2983.8709677419356,
"compliant": true,
"quoted_currency": "EUR",
"quoted_price": null,
"currency_issue": null,
"disqualified": false,
"score": 85,
"scores": {
"C1": 35,
"C2": 30,
"C3": 20,
"C4": 0,
"C5": 0
},
"score_basis": "Scored against the only bid evaluated. Scores are relative, not absolute: price and programme are scaled linearly from the best bid in this comparison (full marks) to the worst (none), and a lone bid gets full marks on both. The same bid scores differently against different competitors, so compare scores only within one comparison, never across comparisons.",
"mandatory_failed": [],
"notes": [
"E-10 (Busway continuous ampacity) is a 'shall' not less than 1,990 A, but responses[0].values.duty_at_site_conditions offers 800 A. The bid declared C, but its own figure does not meet the clause as written. This comparison does not override the declaration: before award the supplier must confirm the figure (its unit, and that it is at the site conditions rather than a reference condition) or restate it as asked (not less than 1,990 A), and the engineer must accept the bid on E-10.",
"Installation method and evidence quality are scored by the engineer, not by this tool — 15 points are unallocated until they are."
],
"figure_checks": [
{
"requirement": "E-10",
"clause": "Busway continuous ampacity",
"field": "responses[0].values.duty_at_site_conditions",
"must_be": "at_least",
"asked": 1990,
"offered": 800,
"unit": "A",
"declared": "C"
}
],
"schedule_impact": "14 weeks earlier than the modelled 36. Re-run the study with this figure before committing: if this relief sets the date, the whole envelope moves with it.",
"install_weeks_missing": false,
"programme_basis": "complete",
"needs_engineering_review": true
}
],
"leading": "Synthetic Switchgear Vendor A",
"note": "Installation method and evidence quality carry 15 of the 100 points and are scored by an engineer, not by this endpoint. A ranking that claimed to have judged them would be inventing the part that needs judgement. A bid's own figures are held to the numeric 'shall' clauses they answer (a duty below the specified minimum, a price validity under 60 days): a bid whose figure falls short of one is flagged, whatever code it declared (`figure_checks` names the clause, the figure asked and the figure offered, and `needs_engineering_review` is set); its declaration is not overridden here, so the engineer must resolve it before award. A response that was not evaluated (`disqualified`) carries no rank, is never compliant and states no schedule effect. Scores are relative, not absolute: price and programme are scaled linearly from the best bid in this comparison (full marks) to the worst (none), an\n... [truncated synthetic output; full length 1072 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"
]
}
}