Four of New York’s Finest rushed to the rescue of a baby girl suffering a seizure Saturday night in Brooklyn, pulling the tot back from the brink, according to her grateful mom.

Caroline Ivanov was celebrating her mother-in-law’s birthday at a restaurant near Ocean Parkway and Brighton Beach Avenue around 7:10 p.m. when her 15-month-old, Chloe, suddenly started convulsing, became breathless, and turned blue.

“This is my first child, my only child, and I’m watching her go lifeless in my arms,” said Ivanov, 29. “Obviously I’m terrified.”

Ivanov dashed out of the restaurant screaming for help, spotted a 60th Precinct police car stopped at a red light, and ran over, frantically pounding on the window for help.

Officers Michael Pace and Joseph Doyle, both 26, quickly radioed for an ambulance.

Two nearby transit cops, Officer Daniel Newman and Lieutenant Patrick King, heard the call come over the radio.

“I thought, ‘I have to get there,’” said Newman, 29, also a certified EMT.

Now joined by Newman and King, Pace returned to the radio to ask how far out the ambulance was.

The reply was seven to eight minutes — time the cops decided that young Chloe couldn’t spare.

“Instead of waiting for an ambulance, they rushed her straight to Coney Island Hospital,” said Ivanov. “And honestly, if it wasn’t for them, I don’t know if I would be holding my daughter right now.”

The four cops plus the Ivanovs sped off in the patrol car towards the hospital, with Newman performing CPR on Chloe in the backseat.

“It’s scary, but there was no time to think,” said Newman. “All I could think about was just doing whatever I could do to keep some form of CPR going in the back of the cop car, bringing them to the hospital, [and] she’ll have a chance.”

Right as the car pulled up to Coney Island Hospital, Chloe’s heart began to beat, she let out a cry, and color returned to her face.

In a brief emergency room stay, the tot was treated for a 104.5-degree fever, and released.

“She’s getting better, but honestly I don’t know where we would be if it wasn’t for the cops that were on the street,” said Ivanov, of Westchester. “They really acted like New York’s Finest at that moment, and I don’t know if I would have my daughter if it weren’t for them.”