Background Accurate measurement of the spinal alignment parameters is crucial for diagnosing and evaluating adolescent idiopathic scoliosis (AIS). Manual measurement is subjective and time-consuming. The recently developed artificial intelligence models mainly focused on measuring the coronal Cobb angle (CA) and ignored the evaluation of the sagittal plane. We developed a deep-learning model that could automatically measure spinal alignment parameters in biplanar radiographs. Methods In this study, our model adopted ResNet34 as the backbone network, mainly consisting of keypoint detection and CA measurement. A total of 600 biplane radiographs were collected from our hospital and randomly divided into train and test sets in a 3:1 ratio. Two senior spinal surgeons independently manually measured and analyzed spinal alignment and recorded the time taken. The reliabilities of automatic measurement were evaluated by comparing them with the gold standard, using mean absolute difference (MAD), intraclass correlation coefficient (ICC), simple linear regression, and Bland-Altman plots. The diagnosis performance of the model was evaluated through the receiver operating characteristic (ROC) curve and area under the curve (AUC). Severity classification and sagittal abnormalities classification were visualized using a confusion matrix. Results Our AI model achieved the MAD of coronal and sagittal angle errors was 2.15 degrees and 2.72 degrees, and ICC was 0.985, 0.927. The simple linear regression showed a strong correction between all parameters and the gold standard (p < 0.001, r(2) >= 0.686), the Bland-Altman plots showed that the mean difference of the model was within 2 degrees and the automatic measurement time was 9.1 s. Our model demonstrated excellent diagnostic performance, with an accuracy of 97.2%, a sensitivity of 96.8%, a specificity of 97.6%, and an AUC of 0.972 (0.940-1.000).For severity classification, the overall accuracy was 94.5%. All accuracy of sagittal abnormalities classification was greater than 91.8%. Conclusions This deep learning model can accurately and automatically measure spinal alignment parameters with reliable results, significantly reducing diagnostic time, and might provide the potential to assist clinicians.