The cost and sustainability of generative AI