This cross-sectional analysis found that the AIP had a significant linear positive correlation with prediabetes and diabetes, regardless of whether confounding factors were adjusted for. This evidence concerns the gene AIP and diabetes mellitus.