Amazon, Google, and Microsoft have spent the past year investing billions of dollars in artificial intelligence startups. For the startups, the deals give them the cash they need to train advanced AI models as well as access to the scarce computing power essential for developing and deploying products such as ChatGPT.