With the increase in the AIP, the risk of T2D among female was more significant than that among male (OR = 11.98, 95% CI: 7.94–18.08). This evidence concerns the gene AIP and type 2 diabetes mellitus.