Sam Altman testified in trial that could determine the future of OpenAI, the company behind ChatGPT.

OpenAI co-founder and CEO Sam Altman has taken the witness stand in a high-stakes trial pitting some of the world's richest technology tycoons against each other.

Testifying on Tuesday, Altman rejected Elon Musk's claim that he betrayed the company's founding mission to serve the public good.

Altman said it was rather Musk, the world's richest person, who was interested in seizing control of the artificial intelligence startup.

OpenAI, the creator of ChatGPT, was founded as a nonprofit in 2015 by several entrepreneurs, including Musk and Altman. It established a for-profit subsidiary in 2019.