Play video content CARDI COLLAB COMIN'

Lil Kim is reaffirming her allegiance with Cardi B ... and probably at the perfect time too, because her BFF just might be heading into a full-scale rap war.

The legendary rapper is set to kick off BET's "Rap City" reboot, and in an upcoming interview with host Big Tigger ... Kim gushed over her friendship with Cardi, and even admitted to taking her advice when it comes to navigating life and career.

We're told the early episodes will feature appearances from DJ Drama, Remy Ma, Rapsody, G Herbo, Ice Spice and more ... with the premiere coming tonight at 8 PM ET/PT.

Kim's allegiance to Cardi is just the latest development in the female rap battle -- things are getting extremely feisty in the wake of Cardi and City Girl rapper JT's recent spat online.

im not like that at alllll I been doing remixes & never got credited ON A CHART BUT they get sung word for word and help push the original songs as intended unlike y’all well I can’t even say y’all cause you don’t rap,you TWEET! Congratulations Glo&stream FNF remix AND QUEENMIX😛 https://t.co/vk5pe33XLr

— J🫖🪄 (@ThegirlJT) October 3, 2022 @ThegirlJT

On Monday, JT congratulated GloRilla for her first entry into the Billboard Hot 100 top 10 ... her "Tomorrow 2" single co-starring Cardi B -- only JT didn't name Cardi, prompting fans to instigate.

JT recently appeared on Nicki Minaj's "Super Freaky Girl (Remix)" ... so saluting Cardi B would be considered a slap in the face in the Barbz' eyes.

I definitely didn’t…P wanted to put me in to your writers cause yall numbers make him penies ……My talent speaks for it self tho https://t.co/uRdbIHkyul pic.twitter.com/ODupmXuI7x

— Cardi B (@iamcardib) October 3, 2022 @iamcardib

However, the Twitter chatter alerted Cardi ... and she proceeded to lay into JT for needing her help to pad City Girls' video stats. JT didn't let the criticism slide and then chastised Cardi for using writers to help with her songs.

The pettiness didn't end there ... Nicki entered the fray by changing her Twitter avatar to a photo of JT -- to which Cardi countered by changing her avatar to Nicki's longtime nemesis Remy Ma.

nicki minaj cardi b

Lines in the sand, social media, music charts and TV appearances have been drawn!!! We'll see if cooler heads prevail.

ncG1vNJzZmivp6x7tbnZZ5qopV9nfXN%2BjmpnaGhkZLmquIykoKZlk5a%2FpbWMm2SrmaBisKrA2GaZnp2WYruqr8qiZKahnpa3bq%2FIrbBmn5mnubR5ya1m