I want to tell you something that took me longer than I would like to admit to fully wrap my head around.

When you type a message into an AI tool, whether it is a quick question or a 2,000-word document you want summarized, you probably imagine something like a search engine. You put something in, it spits something out. Simple pipeline. Done.

But that is not really what is happening. And once you understand what is actually going on under the hood, you will use these tools completely differently. You will write better prompts, set better expectations, and stop being confused when a model seems to run out of steam halfway through a long response.

Let me walk you through it using an analogy that clicked for me immediately: a professional chef at a busy restaurant.

The Kitchen Counter: Input Tokens

Imagine you are a head chef at a high-end restaurant. A customer walks in and hands you not a simple order, but a 10-page catering brief. Detailed menu. Allergy restrictions. Specific plating instructions. Recipes they want followed to the letter.

You take it all to your kitchen counter and spread it out.

That is Input Tokens.

Everything the AI receives, your instructions, your questions, the document you uploaded, the conversation history from the last 20 messages, all of it lands on that kitchen counter. The counter has a size limit. In AI terms, we call that the context window. Some models have a small counter. Others have a counter the size of a warehouse floor, capable of holding the equivalent of entire libraries.

Here is the key thing about this phase: it is relatively cheap. The chef is only reading. No cooking has started. No new dish is being created. The model is processing what you gave it, not generating anything new yet. In the world of AI pricing, input tokens cost noticeably less than output tokens for exactly this reason. Reading is cheaper than creating.

The Scratchpad Nobody Sees: Reasoning Tokens

Here is where it gets interesting, and honestly, this is the part that surprised me most when I first learned it.

Before a skilled chef touches a single frying pan, they think. They stand at the counter, stare at the brief, and start mentally mapping out the entire operation.

"If I start the cake now, the oven will still be too hot when the soufflé needs to go in. Better prep the vegetables first while the sauce simmers. Actually, wait. The client is allergic to nuts, and this garnish recipe has almond extract buried in step four. Swap that out."

None of this is visible to the customer. It is internal. It is messy. It might involve scribbling notes on a scratchpad that gets thrown away the moment the meal is served.

That is Reasoning Tokens, sometimes called Thinking Tokens.

Modern AI models, particularly the more advanced ones, do exactly this. Before they write a single word of their response to you, they run through an internal deliberation process. They consider different approaches, check their own logic, spot potential errors, and map out the structure of what they are about to say.

Now here is the part that most explanations skip over, and it is critical.

Those scratch notes are not written on the kitchen counter. They are written on the dining table. The same space that is supposed to hold the final meal.

In technical terms, reasoning tokens are part of the output context window. They count against the same budget as the actual response. So if a model spends a huge amount of its thinking budget on internal deliberation, it starts eating into the space available for the answer you are waiting for. The chef is filling the dining table with messy notes, and by the time the food is ready, there is barely any room left to plate it properly.

And because reasoning tokens are generated, not just read, they are priced like output tokens. More expensive than input. The chef is actively working, and that labor costs more than simply reading a recipe.

The Meal on the Table: Output Tokens

After all the reading and all the thinking, the chef finally plates the dish and sends it out.

That is Output Tokens.

This is the response you actually see on your screen. The polished answer. The summary. The email draft. The code. Whatever you asked for, this is it. The tangible result of everything that happened in the kitchen.

Output tokens are the most expensive part of the process. The model is generating new content, word by word, and that is computationally intensive work. If input tokens are the cost of reading a recipe, output tokens are the cost of actually cooking and plating the dish.

And the dining table, the output context window, only has so much room.

The Problem That Broke Earlier Models

Picture this. A chef has an enormous kitchen counter. Enough space to spread out a million cookbooks, every catering brief ever written, the entire history of French cuisine.

But the dining table only fits one small plate.

And the chef, being thorough and meticulous, spent a huge portion of their shift writing detailed scratch notes during the thinking phase. Those notes went on the dining table, because that is the only place they could go. By the time the actual meal was ready to be served, the table was nearly full. The response got cut short. The answer felt incomplete. The model just stopped.

This was a real and frustrating limitation of earlier AI models. The reasoning process and the actual response were competing for the same limited space. More thinking meant less room for the answer. It was a genuine architectural constraint, not a failure of intelligence.

That is exactly why newer models have been built with dramatically larger output windows, some now supporting up to 128,000 output tokens. The dining table is no longer a small bistro plate. It is a full banquet spread. The chef can think as deeply as the problem requires and still serve a complete, detailed, well-constructed meal without running out of table space.

The Pricing Logic That Makes It All Click

Once you understand the three phases, the pricing structure of AI models starts to make complete sense.

Input tokens are cheap because the model is reading, not creating. It is the equivalent of a chef reviewing a recipe. Low effort, low cost.

Output tokens are more expensive because the model is generating, actively constructing something new. That takes significantly more computational work.

Reasoning tokens sit in the output category. They are generated thoughts, not read inputs. So every token the model spends thinking is priced at the higher output rate. A model that thinks a lot before answering is doing more expensive work, even if you never see those thoughts.

This is why the size of the output window matters so much when evaluating AI tools. It is not just about how long the response can be. It is about how much room the model has to both think and answer without one crowding out the other.

Why This Actually Matters for You

I am not sharing this as a trivia exercise. There are real, practical implications here.

When you are working with AI on complex tasks, multi-step analysis, long documents, detailed plans, understanding that the model is actively reasoning before it responds helps you appreciate why giving it more context and clearer structure actually improves the output. You are not just feeding it words. You are setting up the kitchen for success.

When a response feels cut off or shallow, it might not be a failure of intelligence. It might be a constraint of the output window, or a model burning too much of its budget on internal reasoning. Knowing this, you can adjust. Break the task into smaller pieces, ask for structured outputs, or choose a model better suited to the job.

When you are evaluating AI tools for your team, the input and output context window sizes are not just spec-sheet numbers. They determine what kinds of tasks the model can actually handle end-to-end without losing the thread.

Bringing It Back to the Kitchen

The chef analogy has stuck with me because it captures something that pure technical language often misses. There is a process happening, not just a transaction.

Reading. Thinking. Responding.

Each phase has a cost. Each phase has a limit. The thinking and the response share the same table. And the quality of what lands in front of you depends on how well the kitchen was designed to support all three without any one phase crowding out the others.

The best AI models today are the ones that have finally built a kitchen, and a dining room, big enough for the whole operation to breathe.