Freestyle is improvised rap created spontaneously without prior preparation. It emphasizes:
Notable freestylers: Eminem, Jay-Z, Kendrick Lamar (though all also write extensively).
Rap (short for "rhythm and poetry") is the broader term encompassing both written and improvised lyrics. It features:
Legendary rappers: Tupac, Biggie, Nas — primarily writers, not freestylers.
Freestyle ⊂ Rap. All freestyling is rap; not all rap is freestyled. Freestyle is a specific mode of rap focused on improvisation.