Ramping up its public-relations blitz against the specialized-high-school admissions test, City Hall enlisted current and former city students to blast the polarizing exam in a 22-minute YouTube video posted Friday to the official NYC Mayor’s Office account.

The panel, which included Asian, Hispanic and black speakers, presented a largely negative perspective on the contentious issue.

The five teens take turns denouncing the SHSAT test as a self-esteem-skewering instrument of “immoral” racial division on the video, which was produced by the mayor’s office and tweeted out by the DOE.

A black student enrolled at a specialized high school argued that support for the test is rooted in racism.

“People who advocate for the exam, they don’t say it, but there is, like, a little bit of racism,” she argues. “You could sense the racism in the rationale or the reasoning they have for keeping the exam.”

The student tells an unseen moderator that test backers champion a “meritocratic” system without considering “poverty and institutional racism and classism that all impact how students do on the exam.”

To boost diversity at the schools, Mayor de Blasio wants to scrap the single-test entry system and replace it with multiple measures of assessment. The schools are currently mostly Asian and white.

In the video, an Asian student, currently a senior at a specialized high school, says she “came from a predominately white and Asian-American neighborhood” and was groomed to tackle the test from a young age.

She said many Asian-Americans who support the test don’t take the challenges of other communities into account. “They don’t ever think about, like, what about the kids who don’t even know about the exam and can’t even afford the test prep that all you guys are taking.”

The student said her background eased her path to a specialized school.

“Thinking back now, it makes me realize how privileged I was to be able to, first of all, know about the test, and then, second of all, be able to take prep classes,” she said.

But proponents of the current system lambasted the video as an unseemly exercise in political public relations.

“It’s pathetic,” said Wai Wah Chin of the Chinese American Citizens Alliance Greater New York, who stressed that no kids with dissenting views were presented. “The city is wasting resources and taxpayer money to produce biased propaganda.”

A Hispanic male student who attended a mostly black and Hispanic middle school recalled the “intimidating” circumstances the day he took the test. He recalled the “demoralizing” impact of failing to land a score high enough for admission to any of the specialized high schools.

“It was predominately white and Asian-American students,” he said. “I’d never been in a setting that was predominately white at all.”

“It’s kind of like you weren’t supposed to be there to begin with,” he said. “Why did you take this test?”

City Hall spokesman William Baskin-Gerwitz responded to criticism that the video was one-sided.

“We were looking for students who supported the city’s educational effort,” he said.