The suit is the first of its kind against a provider of artificial intelligence, but similar suits have been filed against social media giant Meta Platforms Inc., which owns Facebook and Instagram, and the parent companies of TikTok, Shapchat and YouTube.