Serum IL-1β, IL-4, IL-6, IL-10, GM-CSF, TNF-ɑ, and sPD-L1 had a significant sex-related predictive impact on ORR, PFS and OS in melanoma and NSCLC patients treated with ICIs. This evidence concerns the gene CSF2 and melanoma.