This study showed that opioid use was negatively associated with thyroid-related complications in patients treated with PD-1/PD-L1 inhibitors. Here, CD274 is linked to thyroid gland disorder.