The protein levels of PD-L1 were significantly increased 2 h, 4 h and 6 h after treatment, and PD-1 was significantly increased at 2 h and 6 h. The blockade of PD-1 increased acute nitroglycerin-induced hyperalgesia, and this effect was accompanied by a more significant increase in calcitonin gene-related peptide, IL-1β, TNF-α, IL-6 and IL-18 in the trigeminal ganglia.