A unit increase in the ALT/AST ratio raised diabetes risk by 4% across all models (HR = 1.04; 95% CI: 1.02–1.05, P < 0.001). Here, GPT is linked to diabetes mellitus.