The body weight index, plasma glucose, conventional lipids, TyG index, AIP, atherogenic coefficient (AC), and coronary risk index (CRI) were significantly higher, while HDL-C was lower (p < 0.001) in patients with NAFLD than those without NAFLD (all p < 0.001). This evidence concerns the gene AIP and metabolic dysfunction-associated steatotic liver disease.