The evil babysitter facing trial for starving and beating a young child to death took a plea deal in Manhattan court that will land her in prison for 22 years to life — as the tragic tot’s mother sobbed in the gallery.

Kryzie King, 29, admitted that she beat little Myls Dobson with belts and cords, burned him with an oven rack and locked him on a balcony in freezing temperatures wearing nothing but a T-shirt and shorts.

She copped to all nine counts in the indictment including murder in the second degree for the 4-year-old’s tragic death 2½ years ago.

The boy’s mother, Ashlee Dobson, was so distraught during the hearing that she left the courtroom, buried her head in her own mother’s lap on a hallway bench and wept.

During the proceeding, King bowed her head and sniffled as she answered “Yes” to each of the charges.

Justice Robert Stolz extended the deal to King over the objection of prosecutors, who wanted nothing less than 25 years to life.

For the first time, the prosecution disclosed that King waited at least a full day after Myls took his last breath to call cops on Jan. 8, 2014.

“She had Myls Dobson in her apartment dead for at least 24 hours before notifying the authorities,” ADA Nicole Blumberg said in Manhattan Supreme Court.

King, a transgender beautician, had been in a relationship with the boy’s father, Okee Wade. He left the child in her care shortly before he got locked up in New Jersey. The boy’s mother had previously lost custody for abusing him.

“The young child, Myls Dobson, was in the defendant’s exclusive care for 29 days and during that period of time, the defendant by her own admission watched a happy, thriving child disintegrate as a result of her conduct,” Blumberg said.

King had duct-taped the child’s mouth during some of the beatings to prevent neighbors at her luxury Midtown high-rise from hearing his screams, the prosecutor said.

When he was found, he was extremely malnourished and by King’s admission hadn’t had a full meal since Dec. 26, Blumberg said.

About a dozen of Myls’ family members and friends packed the courtroom.

The boy’s great aunt, Linda Dobson, called King a “monster“ who took the life of a “very smart and happy boy.”

She said she broke into tears when she read about the similar case of 6-year-old Zymere Perkins, who died this week at the hands of his abusive stepfather and neglectful mother.

“It’s the same thing, children are being failed,” she said. “They aren’t being given a chance to live.”

In a videotaped interview recorded shortly after Myls’ died, King whined about how bad Myls was and blamed him for making her beat him.

King is expected to be sentenced Oct. 21.