PNI and LIPI predicted survival outcomes in patients with advanced NSCLC treated with chemoimmunotherapy, especially in patients with PD-L1 TPS <50%. Here, CD274 is linked to non-small cell lung carcinoma.