The Q4 groups in Non-HDL-C, TG/HDLC, AI, AIP, and LCI showed a higher T2DM risk (OR = 1.83, 95% CI = 1.43–2.36; OR = 1.77, 95% CI = 1.39–2.26; OR = 1.81, 95% CI = 1.42–2.30; OR = 1.77, 95% CI = 1.39–2.26, OR = 2.01, 95% CI = 1.58–2.58, respectively) compared to the Q1 groups. Here, AIP is linked to type 2 diabetes mellitus.