These medications are not typically used as pain relievers, and they don't possess inherent pain-relieving properties. However, they can effectively alleviate certain specific types of pain. They are particularly effective in neuropathic pain that occurs after nerve injuries.
Some antidepressant medications (though not all antidepressants have this property), antiepileptic drugs (used for seizures), topical local anesthetics, and corticosteroids fall into this category.