Longtime “Star Trek” producer and “Flash Forward” co-creator Brannon Braga is firming up his relationship with 20th Century Fox TV.

Braga has sealed a hefty seven-figure overall deal with the studio, where he’s spent the past two seasons as an exec producer on “24.”

Under the new deal, Braga will develop projects for the studio, and will likely also work on a new or existing 20th show next season.

“Brannon quickly became integral to the success of the last couple seasons of ’24,'” said 20th Century Fox TV chairman Gary Newman. “We thought it was a great idea to have someone as talented as he is here to develop.”

Newman said 20th was especially interested in Braga’s background in the sci-fi genre. Scribe’s credits include all four of the modern “Star Trek” series — “The Next Generation,” “Deep Space Nine,” “Voyager” and “Enterprise.” He also exec produced “Threshold” for CBS.

And this season, Braga created “Flash Forward” with David Goyer, but wasn’t able to join that show full time due to his “24” commitment. He still serves as an exec producer on “Flash Forward,” which returns to ABC for the second half of its freshman season this Thursday.

“He’s known for his ability to write genre programming, and as a studio, we love that programming,” Newman said. “It takes advantage of all the new opportunities the digital world gives you to connect with your rabid fanbase.”

Braga credited his experience on “24” with 20th execs Newman, Dana Walden and Jennifer Nicholson Salke for making the commitment. (Braga first met 20th chairman Walden back at Paramount, where he toiled on “Star Trek” and she was a PR exec.)

“Creatively, Fox and I are very much aligned,” he said. “The kind of shows they do and the way they develop, it’s an innovative group. We get along very well.”

Braga said it’s too soon to identify what he might tackle with development. But having just worked on two heavily serialized shows, the scribe said he wouldn’t mine tackling a different form.

Braga added that he’s not certain yet whether he’ll return to sci-fi, noting that “24” reps “my first terrestrial experience in quite a few years.” But it remains a possibility, he added.

Meanwhile, with “Flash Forward” about to return, the producer said he’s keeping his fingers crossed that fans and viewers will return after such a lengthy hiatus.

Braga’s feature credits include 1994’s “Star Trek: Generations” and 1996’s “Star Trek: First Contact.”