Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Rapper Nicki Minaj spent Saturday night teaching her fans a life lesson: It pays to get good grades.

The 34-year-old Grammy nominee offered to pay more than $20,000 in student loans for a dozen of her Twitter followers on one condition — they must have straight A's or an impressive GPA.

Recording artist Nicki Minaj arrives at the 2015 MTV Video Music Awards in Los Angeles, California, August 30, 2015. REUTERS/Danny Moloshok DANNY MOLOSHOK / Reuters

Minaj was initially answering Twitter questions about a lip syncing contest surrounding her "Regret in Your Tears" music video, but she shifted gears when one follower asked if the Queens, New York-born artist would pay for her college tuition. Minaj agreed and opened up the opportunity to others.

Show me straight A's that I can verify w/ur school and I'll pay it. Who wants to join THAT contest?!?!🤷‍️ Dead serious. Shld I set it up? https://t.co/czH715u64a — NICKI MINAJ (@NICKIMINAJ) May 7, 2017

The Morning Rundown Get breaking news and insider analysis on the rapidly changing world of media and technology right to your inbox. This site is protected by recaptcha

The requests flooded in, with fans sending the star screenshots of their report cards and student loan balances.

Among the lucky fans was one person who identified herself as a single mother from Queens who needed $500 for her remaining tuition. Minaj also agreed to dish out $6,000 to cover the fall semester for another follower, including his room and board, courses and meal plan.

"U want to go to college but can't? How much do u need to get u in school? Is that the only thing stopping u?" Minaj asked a immigrant fan who said she could not afford classes.

Ok. I'll pay it. If u have proof. https://t.co/cWnNGHk3Oe — NICKI MINAJ (@NICKIMINAJ) May 7, 2017

The singer, who attended La Guardia High School for the Arts, in New York City, has been an education advocate in the past.

When Minaj met viral video stars Sophia and Rosie Grace in 2011 on the Ellen DeGeneres Show, she advised the two to "stay in school."

"Music is beautiful, but I want you to stay in school, okay?" Minaj said. "Put your books first and singing second, okay?"

The fans contacted by NBC News did not immediately respond to requests for comment, but TMZ reported that they had confirmed that at least two people received payments from the "Super Bass" singer.