Dilaudid, known by its generic name hydromorphone, is a powerful prescription opioid commonly used for managing moderate to severe pain. It is often prescribed when other pain relief methods, such as non-opioid medications, are insufficient or when the patient has developed a tolerance to milder forms of pain relief.