Dilaudid is a brand name for hydromorphone, a powerful opioid pain medication. It is used to treat moderate to severe pain and works by binding to specific receptors in the brain to reduce the perception of pain. Dilaudid is typically prescribed when other pain medications are insufficient.