Fantasia is defined as the following

 

a musical composition with a free form and often an improvisatory style.

a musical composition based on several familiar tunes.

a thing composed of a mixture of different forms or styles.