Microsoft and Uber have hit walls in artificial intelligence spending, as token-based billing ramps up AI costs for companies.