A nomogram was constructed based on age, BMI, ALT, TG, and 2 h CP to predict the probability of MASLD occurrence in patients with diabetes. Here, GPT is linked to diabetes mellitus.