Many companies went all-in on using AI. Then they got the bill.