We utilized clinically readily accessible indices—age, BMI, ALT, and TG—integrated into a logistic regression to develop a MASLD risk prediction model for the T2DM population. This evidence concerns the gene GPT and type 2 diabetes mellitus.