The rocket company has set aside more than $500 million for potential litigation losses, in part to account for complaints alleging Grok created sexualized images.
Mr. Musk's rocket and satellite maker disclosed its financial performance as it prepares to go public in what is set to be one of the largest offerings to date.