This is a hydromorphone injection, and it treats pain. When a dose is given as a shot under your skin or into your muscle, it starts working in 10 to 30 minutes.