Dilaudid (Hydromorphone) 8 mg is an opioid pain medication. An opioid is sometimes called a narcotic. Dilaudid is used to treat moderate to severe pain.