Sam Altman said Elon Musk tried many times for total control of OpenAI, which he's now suing.

Musk’s lawsuit accusing Altman and OpenAI of abandoning their mission as a non-profit has shed light on their workings at the artificial intelligence giant.

Altman took the stand Tuesday during a high-stakes trial brought to court by Elon Musk.