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. The gene discussed is IL10; the disease is melanoma.