This study was a double blind, placebo-controlled, randomized trial in adult patients with episodic migraine. There was a screening period of 2 weeks to assess initial eligibility, and a 4-week baseline period. After randomization, participants entered the double-blind treatment epoch (DBTE) and had clinic visits for 12 weeks. All participants who completed the DBTE were eligible to enter the Open-Label Treatment Epoch (OLTE) for up to 156 weeks. All participants had a 12 week Follow-Up Epoch and a a Follow-Up visit 16 weeks after the last dose of AMG334 unless the participant continued on commercially available AMG334. Participants who had demonstrated clinical benefit were eligible to enter a Post Trial Access (PTA-Open Label Treatment Epoch) of flexible duration for approximately 6 months.