Vehicle valuation calculation module, version phase5-js-exact-v1. Import calculate from engine.mjs; load the matching model.json once. calculate(modelData, vehicle, purpose='quote', overlay=false) Inputs: make, model, registration_year, mileage_miles (number or null), engine_litres (number or null), fuel_type, transmission, valuation_date YYYY-MM-DD; optional Boolean modified, specialist_import, write_off, classic, generation_unverified. Return status indicative or customer_input_required; null values on fallback; GBP values/ranges, mileage assumption, versions and reason codes. Default quote mode intentionally returns no automated estimate. Explicit research mode reproduces the fitted Phase 4 model. overlay=true applies the optional frozen Autoza challenger. UI uses baseline first; no insurer calls or personal-data storage. The published UI is a 19 October 2026 snapshot, not a live market valuation. Index/report freshness checks apply to dates supplied by calling applications. Engine model is an exact JavaScript export of the fitted 300-tree predictor, not a replacement approximation. Numerical/rounding parity checked against Python. Model data contains trees and aggregate support statistics, no raw advert records. Source date provenance and limits are described on the page. Current individual vehicle accuracy is unmeasured; no current interval coverage promise is made. HTTP endpoint: POST /api/vehicle-valuation JSON body: {"vehicle":{...fields above...},"purpose":"research","overlay":false} Missing purpose defaults to quote. Invalid JSON returns HTTP400. Oversized bodies return HTTP413; model failures HTTP503 with a null valuation. Valid unsupported vehicles return HTTP200 with customer_input_required. GET returns contract metadata. The HTTP endpoint and browser both call the same engine and model data. Response includes calculation_version, calibration_date and optional candidate_version.