Italo Calvino's 'literature machine' is a prescient vision of the perils and promise of artificial intelligence. This article explores Calvino's thoughts on the future of literature in the age of computers, his embrace of fantasy as a way to represent the modern world, and why his work remains relevant today.