As of Saturday afternoon, Kanter had not posted anything online indicating that he had left Romania, but the N.B.A. said that it had worked with the State Department to ensure his release and that he had arrived safely in London.
Kanter was in the midst of a tour for his Enes Kanter Light Foundation when he arrived in Bucharest, the Romanian capital, and was held at the airport.
“The reason behind it is, of course, my political views,” Kanter said in the video, in which he claimed to have been in custody for hours.
“You guys know him by, you know, he has attacked the people in Washington,” Kanter said in reference to a recent episode involving Mr. Erdogan’s bodyguards and protesters in Washington. “He is a bad, bad man; he is a dictator and he is the Hitler of our century.”
Kanter, who turned 25 on Saturday, is known to support Fethullah Gulen, an Islamic cleric based in the United States whom Mr. Erdogan has accused of orchestrating last year’s failed coup.
If Kanter had been deported to Turkey rather than being allowed to continue his travels, he could have faced imprisonment. The Turkish authorities have arrested thousands of people thought to be supporters of Mr. Gulen since the failed coup.
Along with the video, Kanter posted two photos of himself with officers holding him at the airport. In English, he just wrote “#FreeEnes”; in Turkish, he wrote “Haha, the police officers guarding us are taking pictures. Who do you think you are messing with you cowards.”
This was not the first time that Kanter had problems related to his outspoken views about Mr. Erdogan. It was reported in July that he had received death threats after he criticized the government after a terrorist attack in Turkey. He posted screenshots on Twitter of messages he had received with phrases like “You will…