Two fast-acting cops turned into human fire extinguishers and used their bodies and clothes to save a man who accidentally set himself on fire at a Queens gas station, police officials said yesterday.

The drama – clearly captured on two surveillance cameras – began Saturday morning at the A&S Car Wash and gas station on Rockaway Boulevard, after the victim spilled some gasoline on himself as he was fueling up a generator in his commercial truck, cops said. Then the 22-year-old man, identified by sources as Raybir Devi of 104th Street, got into the vehicle and lit a cigarette, cops said.

Big mistake.

Seconds later, he leaped from the truck completely engulfed in flames.

Luckily for him, two officers who had just had their police cruiser washed were parked right in front of his vehicle.

Officers Thomas Weber, 37, and Stephen Clifford, 41, of the 106th Precinct, rushed up to the flaming man and immediately started covering him with their bodies and some cloths. They also dropped him to the ground and rolled him.

Some unidentified passers-by also helped.

Devi was taken to St. John’s Hospital, where he underwent surgery yesterday and was in stable condition.