Prior to the release of their second studio album '' 7/27 '' , Fifth Harmony member Dinah Jane Hansen shared her thoughts on her favorite album track " All in My Head ( Flex ) " on Instagram : " The vibe and rhythm to this I feel represents me best as a South Pacific Islander ... This is just one of those feel-good songs that you ca n't help but jam to , no matter where you 're at or who you 're with ! " " All in My Head ( Flex ) " was written by Fifth Harmony 's members , with Stargate , Benny Blanco , Fetty Wap , Tory Lanez , Sir Nolan , Julia Michaels , and Brian Garcia . The song was recorded by Mikkel Storleer Eriksen , Miles Walker and Mike Anderson at Westlake Recording Studios in Los Angeles and Hide Out Studios in London , England . Singer Victoria Monét produced the group 's vocals . Mixing was done Phil Tan at the Callanwolde Fine Arts Center with assistance from Daniela Rivera . Eriksen and Hermansen provided all the instrumentation . The group debuted the song during a performance at the 2016 Billboard Music Awards on May 22 , 2016 . It was released on digital platforms after the performance as an instant gratification track to accompany digital pre-orders of '' 7/27 '' . The song was serviced to rhythmic format radio stations in the United States on May 31 , 2016 . and was selected as an impacting song on contemporary hit radio on June 14 , 2016
2016 Billboard Music Awards
2016 Billboard Music Awards
All in My Head (Flex)