This study aimed to develop a diagnostic model for predicting early surgical site infection (SSI) based on postoperative inflammatory markers after spinal fusion surgery. In this retrospective study, we analysed the trends of inflammatory markers between SSI and non-SSI groups. The data were randomly divided into training cohort and validation cohort (ratio 7:3). The variables for SSI were analysed using stepwise logistic regression to develop the prediction model. To evaluate the model, we analysed its sensitivity, specificity, positive predictive value, negative predictive value, as well as the area under the curve in the validation cohort. Calibration plots and decision curve analysis were employed to assess the calibration and clinical usefulness of the model. We observed significant changes in inflammatory markers on the seventh day after surgery. The prediction model included four variables on the seventh day after surgery: body temperature, C-reactive protein, erythrocyte sedimentation rate and neutrophil counts. After binary processing of these data, the simplified model achieved an area under the curve of 0.86 (95% confidence interval (CI): 0.81-0.92) in the training cohort and 0.9 (95% CI: 0.82-0.98) in the validation cohort. Calibration plots and decision curve analysis demonstrated that the proposed model was effective for the diagnosis of SSI. We developed and validated a prediction model for diagnosing early infection after spinal fusion.