Green’s Dictionary of Slang

freestyle adv.

(orig. US black/teen) of (rap) music, in a spontaneous manner.

[UK]M. Manning Get Your Cock Out 19: The band started jamming freestyle, a kaleidoscopic space metal boogie from the stars.
posting at www.proz.com 🌐 Rapping freestyle is off the top of your head (if you rap) and people who are skilled in it can take part in ‘rap battles’.