The mad mullahs took a victory lap when $400 million delivered by the Obama administration touched down at an Iranian airport — bragging that they had snookered the United States and got the best of what they called a cash-for-hostages swap.

The stunning revelation emerged when a video surfaced Friday that an Iranian narrator says shows the arrival of the crate of cash — a payment President Obama insists was not ransom money for the release of four American hostages.

The propaganda video aired Feb. 15 — about a month after the Jan. 17 delivery — on state-run Iranian TV as part of a documentary called “Rules of the Game,” the Daily Mail reported.

In the video, a Persian-speaking narrator describes the ­cash-for-hostages deal as a plane is seen at night at an airport along with a photo of a giant pallet apparently stacked with bank notes.

“In the early morning hours of January 17, 2016, at Mehrabad Airport, $400 million in cash was transported to Iran on an airplane,” the narrator says.

He then boasts about how the Islamic theocracy led by president Hassan Rouhani got the better of the deal by far.

“The Islamic Republic made an expensive offer to the equation: the release of seven Iranian prisoners in the United States, $1.7 billion and the lifting of sanctions against 16 Iranians who were prosecuted by the US legal system with the unjust excuse of sanctions violations,” the narrator says.

“But this was not all the Iranians’ demands. Lifting sanctions against Sepah Bank was added to Iran’s list. All of this, in return for the release of only four American citizens: a win-lose deal that benefits the Islamic Republic of Iran and hurts the United States.”

The TV producers even boasted that Iran was meddling in US politics by leaving Obama vulnerable to a backlash from Republicans if they found out about the payoff — even though Obama had agreed to a nuke deal favorable to the terror-supporting nation.

“The Democrats’ concerns were mostly due to the fact that Obama’s rivals, the Republican presidential candidates, might find out the details of this deal through legal means,” the narrator says.

That might lead the GOP to “use them against Democrats at the time of the next presidential election — just like what happened to Jimmy Carter,” he says.

During Carter’s presidency, 52 US citizens were held hostage for 444 days in Iran. They were released as President Ronald Reagan was being inaugurated in 1981.

Several senior US officials have said they were unaware of any video showing a money transfer, which the Obama administration says was part of a settlement from a decades-old arms deal.

The Daily Mail reported the copy of the video was poor quality so it couldn’t be determined which bank notes were shown.