Fartleks are just a more general term for a more free interval form, typically doing alternations/variations in pace rather than classic intervals with standing rest. You can choose intensity and rep length and "rest" intervals as you like.
There are loads of different fartlek variations people use. The physiological adaptation can be very different based on what the contents and paces are. One benefit of doing fartlek as an alternating style workout rather than standing rest is that one might train the ability to redistribute lactate and recover while running, which is beneficial for maybe raising the lactate threshold.
The body quickly gets used to what you do so variation in the intense work can be a key factor in increasing adaptation.
If you have not used fartleks in any form I suggest you investigate forms of fartleks and also decide what factor you would like to improve, design some fartleks and then try it out.
It is easy to design a HIIT fartlek. Just try 20x1min hard+1min easy/moderate and you will quickly discover. Another could be a VO2max type with 5 series of 3x40s hard+60s 10k (total series time=5min) with 2-3min easy between series.