Anthony Weiner didn’t dodge a stiff sentence — but managed to pull a vanishing act before the media Tuesday.

A day after being slapped with a 21-month prison stint for sexting an underage teen girl, Weiner emerged from his Manhattan pad, less than three hours after his wife, Huma Abedin, walked in.

Weiner strode out of his Irving Place building at 11 a.m.

“Do you have it? Did you get what you need?” the disgraced former congressman asked a photographer from The Post.

Asked how he was feeling, an irritated Weiner answered: “I have nothing to say, thank you.”

Wearing an orange Mets cap, a blue Citibike T-shirt, white shorts and blue sneakers, the same outfit he had on Monday after his court appearance, he walked to the Union Square subway station.

He scampered down a flight of stairs, stopped halfway down, came back up and appeared to wait for a cab — before darting back down into the station.

Using a MetroCard, he went through the turnstiles, walked halfway across the Park Avenue underpass, stopped and then continued toward the Union Square side staircase.

He then seemingly vanished into thin air — leaving a gaggle of reporters with their notebooks hanging.

A stone-faced Abedin wasn’t much more forthcoming when she showed up at 8:30 a.m. wearing dark shades, a white blouse and flared blue jeans adorned with flowers.