An opioid is a type of medication used to control pain, often referred to as a narcotic. Prescription opioids are one of many options for treating severe acute pain. While opioid medications can reduce pain during short-term use, they come with serious risks.