In our study, the machine learning-trained diagnostic model (AUC = 0.998) and the identified pyroptosis-related core gene ATP6AP1 provided an actionable strategy to overcome immune resistance in HCC. This evidence concerns the gene ATP6AP1 and hepatocellular carcinoma.