Elon Musk’s aerospace company SpaceX has acquired his AI startup xAI, according to a post on the company's website.