Elon Musk's artificial intelligence startup xAI has raised $6 billion (roughly Rs. 49,857 crore) to accelerate its challenge to his former allies at OpenAI.