She almost lost her life — but kept her sense of humor.

The texting straphanger who onto the subway tracks and got run over by a train is an aspiring comic who after her brush with death tweeted a thumbs-up photo from her hospital bed with the words “im alive.”

Liza Dye, who performs with the Upright Citizens Brigade Theatre on West 26th Street, also posted a Vine video of herself at Bellevue Hospital pressing the button on her morphine pump while whispering, “Blast off!”

Dye had been texting in the Broadway-Lafayette Station in Soho at about 10 a.m. Thursday when she slipped on the wet platform and fell onto the tracks — just as a southbound B train was rolling into the station.

Workers cut power to the track and freed Dye, who was under the train but not hit by its wheels.

The 25-year-old South Carolina native, who now lives in Bed-Stuy, had been scheduled to perform Friday night at a Valentine’s Day show at The Stand in Gramercy Park.

Instead, she was in Bellevue in a neck brace and with serious leg injuries.

“She’s very tired. She’s very weak,” said her mom, Geraldine. “I did not want her to go to New York.

“She thinks she’s invincible.”

Geraldine Dye said her daughter has no health insurance and might lose her leg — but is still cracking jokes.

“Knowing Liza, she’ll probably do standup in her bed. I can visualize it. That’s her spirit,” her proud mom said. “I’m crying my eyes out and she’s cracking jokes.”

Liza Dye’s social-media accounts are full of funny bits, including one Vine video in which she acts out a scene of Beyoncé and Jay Z bickering over what to feed daughter Blue Ivy.

“Bey, are you really going to feed Blue Captain Crunch?” she asks in a hen-pecked, high-pitched “Jay Z” voice as the video shows an accusing arm pointing at a box of the sugary cereal.

“Shut up, Jay, I’m tired and she likes it,” Dye snaps back in her “Bey” voice.

Her routines have caught the eye of some of the biggest names in comedy.

Keegan-Michael Key and Jordan Peele of Comedy Central’s “Key & Peele” show gave Dye a shoutout during a November 2013 interview on NPR’s “Fresh Air” while discussing the lack of black women on “Saturday Night Live.”

“I can think of three women who would murder on ‘Saturday Night Live,’ either as writers or performers,” Key told host Terry Gross.

“Holly Walker, Liza Dye,” Peele said.

And comic Brittani Nichols praised her during a December interview on the entertainment Web site Autostraddle.

“Her candidness about how sucky things are sometimes and unwillingness to shy away from what it’s like for a black woman trying to make it in comedy is refreshing and relatable,” Nichols wrote in her introduction.