Minaj will join stars Cameron Diaz, Kate Upton, Leslie Mann and Nikolaj Coster-Waldau in the movie, reported Aceshowbiz.
The 30-year-old "American Idol" judge, who is known for her outlandish costumes, cosmetics, and wigs, is tapped to play Diaz's opinionated assistant, who is onto her third marriage, at law firm.
The 20th Century Fox comedy centers on Diaz's character who finds out that her boyfriend, played by Coster-Waldau, is already married.
Trying to get back at him, she allies herself with his wife and another mistress. Mann plays Waldau's spouse, while Upton portrays the other woman of the Danish actor.
Earlier, Minaj voiced her interest in making her film debut.
"I want to do something like a small action movie," she had said.