Imagine you’re making dinner and realize you’re out of buttermilk. You open an AI chat and ask, “What can I use instead?”
A moment later, words start appearing on your screen. Somewhere else, chips are doing math, memory is holding pieces of your conversation, and cooling equipment is moving heat out of a building. All of that to help you finish a batch of pancakes.
So what happened after you hit Send?
Before the first word appears
For a cloud-hosted chat, your message goes to the provider’s servers. The service may send your earlier messages to the model, too. That’s how “What about oat milk?” can make sense as a follow-up, even though the new message says nothing about pancakes.
The system breaks the text into tokens, which can be whole words, pieces of words, or punctuation. The model processes those tokens to work out what it should generate first. Engineers call this stage prefill. They call the whole process of running an already-trained model to produce a result inference. Your dinner question is a request to use the model as it already exists. Hugging Face’s guide to inference
Why the answer arrives a little at a time
Once the model starts answering, it typically generates one token at a time. It uses the question and the answer so far to work out what should come next. The app can start showing you the text while the model is still working on the rest.
That could get expensive if the model had to redo the same work on the entire conversation for each new token. So serving systems usually keep some of the earlier calculations in fast memory and reuse them. Engineers call that the KV cache. It saves computation, and it takes up memory while the request is running. A busy server has to make room for those calculations across many conversations at once. Hugging Face’s inference optimization documentation
Now imagine pasting a long cookbook chapter into the chat and asking for a recipe-by-recipe list of substitutions. You still pressed Send once. But the model has more text to process before answering and more text to generate afterward. The interface counts both requests as one message. The server has two very different jobs. Hugging Face’s guide to prefill and decoding
The chips do the math. The building deals with the heat.
A server can use specialized chips, such as GPUs or Google’s TPUs, to do much of the model’s math. The chips draw electricity and give off heat. Memory and other server components draw power too. Outside the server, the facility needs equipment to distribute power and keep the machines cool enough to run. Google’s inference measurement methodology · IEA’s breakdown of data-center equipment
How much does cooling add? The International Energy Agency puts cooling at about 7% of total electricity use in efficient hyperscale data centers and over 30% in less efficient enterprise facilities. Those are shares of facility electricity. A large site can spend a smaller fraction on cooling and still use more electricity for it in absolute terms. IEA’s 2024 equipment comparison
What does “energy per prompt” actually mean?
Google published a useful example in 2025. Using data from May of that year, it estimated that the median Gemini Apps text request used 0.24 watt-hours. Google included the chips doing the work, other server components, a share of idle capacity, and facility overhead. Counting only the active accelerator chips brought its estimate down to 0.10 watt-hours. Same service and workload, two answers to different accounting questions. Google’s technical paper · Google’s explanation of what it counted
There’s a word worth pausing on there: median. It’s the middle of the requests Google studied. It tells you something about the middle request in that service at that point in time. It leaves open how much a long request uses, how much another service uses, and how much electricity all requests add up to. For that last question, you’d need the number of requests and the average across them, including the expensive ones. Google reported the figures for its own service and says they hadn’t been independently verified. Google’s methodology and scope notes
This is where the conversation usually jumps from one person’s prompt to an entire data center. A provider can make each request more efficient while total electricity use rises because more people are using the service or asking it to do more work. And if you’re trying to understand what a proposed facility means for your town, you’ll need to know how much power the site expects to draw and when it expects to draw it. A per-prompt estimate can help explain the work inside the building. The local grid has to serve the building as a whole. IEA’s *Key Questions on Energy and AI*
The next time you see a headline about how much energy an AI question uses, start with three questions of your own. What did the model have to do? What equipment did the estimate count? And are we talking about one request or the whole facility? A question about pancakes and a cookbook-length assignment look the same when all you can see is the Send button. The difference is the work on the other side.
*Prepared with AI assistance.*
Sources
- Hugging Face’s guide to prefill and decoding · Supports the linked explanation or measurement in the article.
- Hugging Face’s inference optimization documentation · Supports the linked explanation or measurement in the article.
- Google’s technical paper · Supports the linked explanation or measurement in the article.
- IEA’s 2024 equipment comparison · Supports the linked explanation or measurement in the article.
- Google’s methodology and scope notes · Supports the linked explanation or measurement in the article.
- IEA’s *Key Questions on Energy and AI* · Supports the linked explanation or measurement in the article.