OpenAI filed confidentially for an IPO, as the ChatGPT maker looks to join artificial intelligence rivals tapping public markets to fund ambitious growth plans.