“New York State knows no creative bounds, and provides an unrivaled opportunity to work with the very best in the industry,” he said.

Mr. Safran said the credit of up to 30 percent of many of the costs incurred in production, including salaries paid to crew members, was not the deciding factor in the decision to relocate. The reason was largely creative. But he said the move would help to offset the higher cost of shooting in New York.

Officials said 46 episodic shows were now being produced in the city, up from 29 just over a year ago. But they are not all on traditional networks. Shows in the Marvel Defenders series that can be viewed on Netflix are being produced in Brooklyn. The Netflix sitcom “Unbreakable Kimmy Schmidt” and Amazon’s “Mozart in the Jungle” series, which won a Golden Globe, are also filmed in the city.

Julie Menin, commissioner of the Mayor’s Office of Media and Entertainment, said the growth of TV production in the city had been “explosive” and had created thousands of high-paying jobs that support small businesses.

As an example, she cited Café Grumpy, a coffeehouse across the street from the Broadway Stages studios in Greenpoint, which has added five locations. Ms. Menin, in her second month as commissioner, said she had been encouraging producers to shoot in more locations in boroughs other than Manhattan and to patronize local businesses when they do.