LOS ANGELES — Sign with us. We can offer you spectacular opportunities. Have I mentioned how brilliant you are?

So went the courtship of the producer J. J. Abrams by Apple, NBCUniversal, WarnerMedia and other entertainment companies over the past six months, as the companies scrambled to secure creative content for their streaming services.

The contest neared a conclusion on Monday, with lawyers for Mr. Abrams in final negotiations with Warner for a multiyear partnership valued at about $500 million, according to two people briefed on the matter who spoke on the condition of anonymity because the deal was not completed.

In return for that breathtaking sum, WarnerMedia will get a first look at projects developed by Bad Robot, the media company run by Mr. Abrams and Katie McGrath, his wife. The deal covers movies, television shows, video games, consumer products, music and digital content for a WarnerMedia streaming service set to arrive early next year. It was unclear whether Mr. Abrams would continue to accept directing jobs at rival studios, a perk that was part of his previous deals.