Many API calls can be answered by something as underpowered as an Raspi. But AI needs very expensive GPUs to run.
So no way it will be as cheap. That is just wishfull thinking.