In the Tang Dynasty, the status of Kunlun slaves was very low, and they were basically slaves. Ge Lao in the Twelve Scenes of Chang 'an was actually a slave, but he got the help of his master, so after he was redeemed, he managed the underground Chang 'an very well and had a lot of power, so most people were afraid to say him, but except Ge Lao, almost all other Kunlun slaves were slaves.
Kunlun slaves in the Tang Dynasty basically stayed in Chang 'an or Luoyang, but in ancient books, Kunlun slaves all came from Southeast Asia, except Southeast Asia, which was African black. Moreover, people who entered the Central Plains from foreign countries generally had no status, because they had no money and did not understand the language at that time, so most of them became slaves.
So there were blacks in Kunlun slaves at that time, but not all of them were black, because there were people from all corners of the country. It's just that people were all black at that time, so everyone thought they were black, but they weren't. Those black people also come from Southeast Asia, not Africa. Because of Ge Lao in this drama, we all thought that Kunlun slaves were black.