Flamenco is a genuine Spanish art, and to be more exact a genuine Southern Spanish art.
It exists in three forms: Cante, the song, Baile, the dance, and Guitarra, guitar playing.
Gipsies are very often named as the fathers of Flamenco, and at least it can be taken for certain that they played an important part in its creation. But also the popular songs and dances of Andalusia have influenced early Flamenco considerably.
Certainly there were other influences, too, as it is no surprise in a country that has been dominated by most diverse cultures and civilizations during its different historical epochs. There were the legendary Tartessos, and seven centuries of Muslim occupation hardly could have passed without leaving traces. All that, directly or indirectly, influenced Flamenco.