AI requires energy in order to function. I've seen a handful of sci-fi scenarios where money is replaced with energy, and units of energy are traded and stored just like money. The second law of thermodynamics even ensures a certain amount of inflation.