Companies including Microsoft, Meta, Alphabet and Amazon race to invest in and build infrastructure for what they have been touting as a limitless demand for AI services.