Alec Baldwin is fed up with New York — and is threatening to bolt big bad Gotham for the safety of LA’s gated communities.

“I probably have to move out of New York . . . Everything I hated about LA I’m beginning to crave,” the actor wrote in a New York magazine cover story.

“LA is a place where you live behind a gate, you get in a car, your interaction with the public is minimal. I used to hate that. But New York has changed.

“Manhattan is like Beverly Hills and the soul of New York has moved to Brooklyn, where everything new and exciting seems to be. I have to accept that.”

Baldwin, 55, who lives in the West Village with wife Hilaria, 30, and baby Carmen, took a p.r. beating in 2013 after making a series of hateful comments.

He called a male Daily Mail reporter a “toxic little queen” in June over a story that Hilaria tweeted at James Gandolfini’s Manhattan funeral.

And in November, Baldwin lost it with a photographer near his apartment, allegedly calling him a “c- -ksucking fag.” Baldwin confessed to saying “c- -ksucker” but denied using the anti-gay slur.

MSNBC later pulled his “Up Late” talk show.

In the magazine piece, Baldwin defended his homophobic behavior by name-dropping such famous gay pals as Cynthia Nixon and “Modern Family’s” Jesse Tyler Ferguson.

“Look, I work in show business. I am awash in gay people, as colleagues and as friends,” he wrote.

Baldwin went on to trash a litany of media figures.

  • “Morning Joe” co-host Joe Scarborough “is neither eloquent nor funny.”
  • MSNBC’s Rachel Maddow is “a phony who doesn’t have the same passion for the truth off-camera that she seems to have on the air.”
  • CNN’s Anderson Cooper is “the self-appointed Jack Valenti of gay media culture,” referring to the late president of the Motion Picture Association of America who created the film-ratings system.

Baldwin also put a weird spin on his clash with Shia LaBeouf that ended with the younger actor’s firing from their Broadway play, “Orphans.” LaBeouf was angry Baldwin didn’t know his lines at rehearsals.

“I asked, ‘If I don’t say my words fast enough, you’re going to just say your next line?’ I just said, ‘You realize the lines are written in a certain order?’ He just glared at me,” Baldwin wrote.