Ultrasonic (US) maltreatment was performed before the vacuum far-infrared drying (VFID) of Codonopsis pilosula (CP) slices to investigate the effects of different US parameters on the drying characteristics and nutrients of CP slices. The grey correlation method with relative correlation degree (ri) as the evaluation measure was used to construct a model for the evaluation of the pretreatment quality of CP and to determine the optimal pretreatment conditions. The results showed that with the increase in US frequency and power, the drying rate increased. Under the conditions of US power of 180 W, frequency of 60 kHz and a pre-treatment time of 30 min, the drying time reduced by 28.6%. The contents of polysaccharide and syringin in dried CP slices pretreated by US increased by 14.7% and 62.0%, respectively, compared to the non-pre-treated samples, while the total flavonoid content decreased by 10.0%. In terms of colour, pretreatment had a certain protective effect on the red colour of dried products. The highest relative correlation (0.574) and the best overall quality of performance were observed at 180 W, 60 kHz and 30 min. Overall, US technology is suitable for the pretreatment processing of CP, which is of great significance to the drying of CP.