When a migraine doesn't respond to any other treatment, ketamine may offer relief. Operating differently than opioids, non-steroidal anti-inflammatories, and triptans, ketamine is increasingly available to treat chronic pain, migraine, and other health issues.