High albumin levels and LMR and low ALP levels and TB were significantly associated with better OS in patients treated with pembrolizumab. Here, ALB is linked to tuberculosis.