You set a reasoning model’s output cap to fit the answer you asked for, and some calls come back with nothing in them. There is a status saying the limit was hit, a token count on the bill, and no text. Other calls sit silent for seconds before the first word appears. Both symptoms can trace back to the tokens a model spends thinking before it writes.

In an experiment run for this article, a reasoning model was billed for barely more than it showed. Asked for 50 words, gpt-5–4-mini wrote 50 and was billed for 62 output tokens. Asked for about 800, it wrote 927 words and was billed 1,085 tokens. That is close to llama-3–3–70b, a model without a separate reasoning phase, which was billed 40 tokens for 34 words.

The question is how much of what you are billed for never reaches the answer, and what that should do to the cap you set. Guesses differ because the hidden part never appears in the text you read: sizing from answer length bets the hidden part is small, and a large margin on every call bets it is large.

The short version: on a simple explanation task at the endpoint’s default settings, which the run did not record, gpt-5–4-mini was billed 62 output tokens for a 50-word answer and 1,085 for a 927-word one, about the same tokens-per-word ratio as a non-reasoning model, with first text after about half a second. That may reflect a low default effort as much as an easy prompt, and it covers one task only. Hidden reasoning shares the output cap with the answer, and OpenAI’s guide puts it anywhere from a few hundred to tens of thousands of tokens depending on the problem, so read the reasoning-token field on your own prompts, start caps from a generous reserve such as the 25,000 tokens OpenAI suggests, and treat every length stop as a failed call.

Start with the unit. A token is a chunk of text, often a word or part of one, and it is what a model reads, writes and is billed by. A reasoning model writes some tokens you never see. OpenAI’s reasoning guide calls them reasoning tokens: internal tokens the model uses to think before answering. They are not visible through the API. They still take up room in the context window (the total text the model can hold for one request), and they are billed as output tokens.

The cap you set counts them too. In OpenAI’s API, max_output_tokens limits everything the model generates: reasoning tokens, visible output and non-visible formatting tokens together. Anthropic's guide to steering thinking says the same of Claude's max_tokens. Thinking and response text share one hard ceiling, and Claude never generates past it.

Think of an exam booklet with a fixed number of pages. Scratch work and the final answer go on the same pages. Every page used is counted, but only the answer section is marked. A student who fills the booklet with scratch work hands in no answer.

That student is your empty response. OpenAI’s guide says that when generation hits max_output_tokens, the OpenAI API returns status incomplete, with incomplete_details.reason set to max_output_tokens. This can happen before any visible output exists, so you are billed for the input and the reasoning and get nothing to read. Anthropic's thinking documentation likewise says thinking tokens are billed as output even when the thinking text is not returned.

The booklet also explains the silence. When a model reasons before it writes, no answer text arrives while it thinks. The wait for the first word then depends on how long the thinking runs, not on how long the answer will be, and Anthropic tells you to expect longer response times with thinking active.

That order is not fixed on every model. OpenAI’s guide documents interleaved thinking on gpt-5.5 and gpt-5.4, which can write visible output before and between thinking steps. It also suggests asking the model for a short preamble to bring the first text forward.

The analogy breaks in two places. First, a student can see the pages running out and switch to the answer, but a model does not reliably plan around what is left. Anthropic’s extended thinking documentation calls budget_tokens, the older manual setting for how much Claude should think, a target rather than a strict cap. Only max_tokens is the hard ceiling. (That manual mode is deprecated, and Claude 4.7 and later models reject it.)

Second, the scratch pages are never handed in. OpenAI offers at most an opt-in summary of the reasoning, on models that support it. Anthropic says a thinking block holds only a summary, never the raw chain of thought.

So whether your answer survives depends on one number: how many pages the scratch work takes on your prompts.

The experiment called two models on Databricks pay-per-token endpoints on 2026–11–29. gpt-5–4-mini was the reasoning model, and llama-3–3–70b was a model without a separate reasoning phase. Both ran at default settings. The run did not set a reasoning effort (the setting that tells a model how much to think), and it did not record what effort the gpt-5–4-mini endpoint uses by default.

Each call asked for a plain explanation of the same everyday subject at a requested length of 50, 200 or 800 words. Background passages padded the prompt to 500 words. Every call was streamed, meaning the text arrived in pieces as it was generated. The client recorded two moments: when the first visible text arrived and when the call finished.

Two counts came back per call. The visible answer was counted in words. The billed output tokens are the endpoint’s own figure, which includes any tokens the model produced without showing them. If gpt-5–4-mini reasoned at length, its billed tokens would run well above what its words need.

There were five calls per combination, made one at a time per model. Each result is a median, the middle of the five values. Each comes with a 95% bootstrap interval: a range found by resampling the five calls 2,000 times, which shows how far the median could move.

One field was not captured: the usage breakdown that reports reasoning tokens directly. Everything below compares billed tokens with visible words. That gives an upper limit on hidden reasoning, not a count of it.

Billed tokens tracked visible words closely for both models. gpt-5–4-mini was billed 62 tokens for 50 words, 243 for 204 and 1,085 for 927. llama-3–3–70b was billed 40 for 34, 230 for 195 and 5,400 for 4,704.

Read the comparison between the models loosely, because they do not count text the same way. Prompts of 500 words, built the same way, registered as 582 tokens on gpt-5–4-mini and 612 on llama-3–3–70b. The firmer evidence sits inside gpt-5–4-mini’s own numbers. A 50-word answer billed at 62 tokens in total leaves room for only a handful of tokens beyond the words themselves.

The stream offers a second check. gpt-5–4-mini’s text arrived in a median 59, 240 and 1,082 pieces, each time three fewer than the billed count. If each piece carried one token, which the run did not verify, about three billed tokens per call never showed up as text. OpenAI’s guide does say the cap counts non-visible formatting tokens, but the experiment did not record what those three were.

Time to finish grew with the answer. gpt-5–4-mini finished a 50-word answer in a median 0.87 s (95% interval 0.71 to 0.98 s), a 204-word answer in 1.62 s (1.53 to 2.35 s) and a 927-word answer in 8.11 s (5.45 to 9.02 s). The difference of 7.24 s (4.58 to 8.18 s, 10 calls) between the shortest and longest answers is one the measurement can separate. Once text started, the long answer streamed at a median 120.2 words per second (115.6 to 191.2), which accounts for most of those eight seconds.

llama-3–3–70b’s longest cell is not a like-for-like comparison: asked for about 800 words, it wrote a median 4,704. Its 34-word answer finished in a median 1.04 s (0.63 to 18.90 s). Its 195-word answer finished in 3.27 s (2.78 to 16.87 s). The 4,704-word answer finished in 67.05 s (18.20 to 83.80 s), which was 66.01 s later than its 34-word answer (17.16 to 82.76 s, 10 calls). The gap is real, and its interval is wide.

For gpt-5–4-mini, the wait for the first text stayed near half a second at every length: medians of 0.49 s (95% interval 0.39 to 0.60 s), 0.51 s (0.47 to 0.66 s) and 0.56 s (0.48 to 0.57 s). In booklet terms, the student barely touched the scratch pages and started the answer at once.

llama-3–3–70b’s medians were 0.29 s (0.19 to 9.51 s), 0.24 s (0.13 to 3.63 s) and 0.31 s (0.21 to 0.31 s). Its upper bounds reached 9.51 s at 50 words and 3.63 s at 200, so some of its calls sat silent for seconds. The gap between the two models was tested only at the shortest answer. There, llama-3–3–70b’s median first text came 0.20 s sooner (95% interval for llama minus gpt-5–4-mini: −0.35 to 9.02 s). The interval spans zero, so this measurement cannot tell their waits apart.

The hidden share was too small to see, and the run cannot say why. Because the endpoint’s default effort was not recorded, a near-zero share may reflect a low default effort rather than the model adapting to an easy prompt. With only the upper limit described in the method, the run cannot report a measured zero either.

The documentation allows both readings. OpenAI’s guide says lower effort favors speed and lower token usage, and that models also adapt reasoning, using fewer tokens on simple tasks. Depending on problem complexity, it says, a model may produce anywhere from a few hundred to tens of thousands of reasoning tokens. This result falls below the low end of that range, since even a few hundred reasoning tokens would have multiplied the 62-token bill several times. Little or no reasoning is the likelier reading.

Anthropic describes the same behavior for adaptive thinking, the mode in which Claude decides on each request whether to think and how much. At lower effort it may skip thinking entirely on easy inputs. The mode has a requirement: Claude Opus 4.5, Sonnet 4.5, Haiku 4.5 and earlier models return an error if you ask for it.

The word counts also strayed from the request. Asked for about 800 words, gpt-5–4-mini wrote 927 and llama-3–3–70b wrote 4,704 (medians of five calls). The requested length was a weak guide to output length before reasoning even entered, which is one more reason not to size a cap from it.

That is why a clean result here is a warning rather than a reassurance. There is no fixed hidden tax to add to a word count. The share comes from your prompt and your effort setting, and the documented range runs into the tens of thousands of tokens. A cap sized from this test would fit this test, and it could be far too small for a hard prompt on the same model.

A small public test shows the other end. A Developer Community (DEV) post describes GLM-5.3, a model that always reasons, served through Chutes’ OpenAI-compatible API with an 8,192-token output cap. (The post says Z.ai documents max as the default effort.) At max effort the model returned no usable answer on two of three small coding tasks. It spent the whole budget reasoning and took around two minutes each to get there. At low effort it passed one of those same tasks with 227 tokens. Each configuration ran once, so this shows what can happen, not how often.

Raising the cap was not a full fix either. The post reports that rerunning max with a 16,384-token cap passed a planning task but still failed a parsing task. On the planning task, high effort ran out of that larger budget while low and max both produced a valid plan. Its author concludes that no effort level wins every task.

Each limit narrows what the result can carry:

None of these limits weakens the narrow claim: on this task, at these settings, billed output tracked visible text. Three of them block the broad claim that reasoning models carry little hidden cost: one task type, default settings only, and no reasoning-token count. Both endpoints streamed their text in many small pieces, so the first-text times measure the wait rather than the whole call.

The documentation, and the gap between this result and the reported GLM-5.3 test, say the hidden share depends on your prompts and effort setting, so measure it there. OpenAI’s and Anthropic’s APIs both report it in the usage object.

On OpenAI’s API, the count sits in the usage object under output_tokens_details.reasoning_tokens. The guide's own example shows 1,024 reasoning tokens inside 1,186 output tokens. There, reasoning is most of the output, the opposite end from the test above. For Claude, Anthropic documents usage.output_tokens_details.thinking_tokens. When streaming, that breakdown appears only on the final message_delta event. Log the share on a sample of real prompts and look at the high end, not the median.

Then size the cap with headroom. OpenAI’s guide suggests starting experiments with at least 25,000 tokens set aside for reasoning and output, then trimming once you know what your prompts typically use. Anthropic warns that a max_tokens sized for a response without thinking is often too small once Claude starts thinking on hard requests.

Two details matter for agents. In a tool-use loop, each request has its own max_tokens, so the cap does not bound a whole turn's spend. For workloads pushing thinking above roughly 32,000 tokens per request, Anthropic suggests batch processing to avoid timeouts and open-connection limits.

Check the stop reason (the field that says why generation ended) on every call, because the cap fails quietly. The signal depends on the interface. OpenAI’s guide says its API returns status incomplete with reason max_output_tokens. Claude returns stop_reason max_tokens. The OpenAI-compatible chat format returns finish_reason length. When one appears, Anthropic's advice splits two ways: raise the cap if the cut requests needed the reasoning, or lower effort if they were over-thought.

Do not confuse that with a different empty answer. Anthropic’s stop reasons documentation says Claude sometimes returns exactly 2 to 3 tokens with no content and stop_reason end_turn. This typically happens after tool results, when it judges the turn complete. The stop reason tells the two cases apart.

For the wait before the first word, the levers are effort and display. Anthropic names lowering effort as the first step to cut latency or cost. It also says setting thinking display to omitted makes the first text arrive sooner, because the server skips streaming thinking tokens, while billing stays the same. OpenAI suggests asking the model for a short preamble before it reasons deeper. It also describes one effort level meant for latency-critical tasks that gain nothing from reasoning. Supported effort values vary by model.

I would not size a reasoning model’s cap from the answer length you want, and I would not size it from this benchmark either. Size it from the reasoning tokens your own prompts produce: start from a generous reserve, measure, then tighten. The reason is the spread. The same mechanism gave a hidden share too small to see on a simple explanation and, in a reported coding test, a hidden share that took the whole cap.

The position flips for workloads like the one tested: short, simple prompts at default effort, where your logged reasoning stays near zero. There, a cap with modest headroom over the answer is enough, as long as you keep checking the stop reason.

The steps below put that into practice. One addition comes from the GLM-5.3 post: its author suggests starting at the lowest effort that could work and moving up only when a check fails.

A length check takes a few lines. The sketch below works on a response already parsed into a dictionary. It reads the signals named above and computes the reasoning share for your logs. It also checks model_context_window_exceeded, which Anthropic says Claude 4.5 models and newer return when generation hits the context window limit.

The share function reads the usage shapes in OpenAI’s reasoning guide and Anthropic’s docs. Chat-format responses report their total as completion_tokens, as the GLM-5.3 post's client reads it, so the function also tries that name and a completion_tokens_details breakdown. Map the field names to what your own client returns. When no reasoning field or no total is found, the function returns None rather than zero, because a missing field is not evidence of no reasoning.

def check_complete(resp: dict) -> None:    """Raise if the response was cut short by a cap."""    # OpenAI reasoning-guide style: status and incomplete_details    if resp.get("status") == "incomplete":        reason = (resp.get("incomplete_details") or {}).get("reason")        raise RuntimeError(f"incomplete: {reason}")    # Claude-style: stop_reason    if resp.get("stop_reason") in ("max_tokens", "model_context_window_exceeded"):        raise RuntimeError(f"stopped: {resp['stop_reason']}")    # OpenAI-compatible chat style: finish_reason per choice    for choice in resp.get("choices", []):        if choice.get("finish_reason") == "length":            raise RuntimeError("stopped: length")
php
def hidden_share(usage: dict) -> float | None:    """Share of billed output tokens spent on reasoning.
Returns None when the reasoning count or the output total    is missing: a missing field is unknown, not zero.    """    hidden = None    for key in ("output_tokens_details", "completion_tokens_details"):        details = usage.get(key) or {}        for name in ("reasoning_tokens", "thinking_tokens"):            if name in details:                hidden = details[name]                break        if hidden is not None:            break    total = usage.get("output_tokens", usage.get("completion_tokens"))    if hidden is None or not total:        return None    return hidden / total

The harder case is a tool call: the structured request a model writes for your code to run, with its arguments in JSON (JavaScript Object Notation). Here a cut can look like success. In booklet terms, the answer stops mid-sentence, but what is left still reads as a whole sentence.

A DEV Community post on a cut tool call traces one case. The Anthropic Python software development kit (SDK), version 1.14.0, parses streamed tool input with the jiter parser in partial mode at every input_json_delta piece. Partial mode accepts incomplete JSON but drops an unfinished last string or literal. As a result, a call cut at "append":tru came back as a valid object without append. The SDK does not re-parse strictly when the block ends, and the author found the same behavior in versions 0.88.0 and 2.6.0.

What happens next depends on the tool’s schema. When a required field was lost, the tool refused the call. When only the optional append was lost, the call was valid and could behave differently, rewriting a file instead of appending to it. A cut number is worse. "start_line":12 reads as 12, whatever the model was writing, and 12 is a valid line number, so the tool has nothing to refuse.

A cut by the cap is also a normal end of stream. The message carries stop_reason max_tokens, and the stream still closes with message_stop. A guard that only checks for a missing message_stop therefore catches dropped connections, not cut-offs. The author notes that their own agent loop did not check for an incomplete tool-use block, and it ran a cut turn's calls before telling the model its output was cut.

Fine-grained tool streaming moves where the cut can land. It requires eager_input_streaming on the tool (or the beta header). Anthropic's fine-grained streaming documentation says it skips the validation that standard streaming applies to each parameter. That shortens the wait for the first fragment of a large parameter, but the accumulated string may not be valid JSON. With it, a cut can fall inside a value such as true. Without it, the post says, a cut falls between fields but can still lose one.

The post’s fix keeps the raw text of each streamed tool call exactly as the model wrote it and parses it with a strict json.loads. The strict parse catches the cut number, because the truncated text never closes. Text that fails is passed on as the arguments, and the executor already refuses arguments that are not valid JSON. Anthropic's guidance has the same shape: guard the parse and check the stop reason. Then either report the failure back as a tool_result with is_error set to true and the raw string under an INVALID_JSON key, or retry with a higher max_tokens.

import json
python
def parse_tool_args(raw: str):    """Strictly parse the raw streamed text of one tool call.
Returns (args, None) for a complete JSON object,    or (None, raw) so the caller can report an error result.    """    try:        args = json.loads(raw)  # a cut call never closes, so this fails    except json.JSONDecodeError:        return None, raw    if not isinstance(args, dict):        return None, raw    return args, None

Prompts were padded to 500 words with background passages from the Stanford Question Answering Dataset (SQuAD) 1.1 development set (Rajpurkar et al., 2016; Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0). The passages surrounded a fixed request for a plain explanation of an everyday subject at 50, 200 or 800 words. Every call asked about the same subject with a prompt padded to 500 words, so within each model the requested answer length was what changed from one set of calls to the next.

The visible answer was counted in words from the streamed text. Billed output tokens came from the endpoint’s usage figure, so they include anything the model generated without showing it. A streaming rate was computed only where text arrived in at least eight pieces.

Timings are wall-clock from the client and include the network path. First text is when the first visible text arrived, and finish is when the call ended. How finely an endpoint streams varies. Where text arrives in a few large pieces, the first-text time approaches the total, but here both endpoints streamed finely.

Each cell is a median of five calls with a 95% percentile bootstrap interval from 2,000 resamples, resampling whole calls. Cells are unrelated groups, so differences in medians are unpaired, and a difference counts only when its interval excludes zero. By that rule, the short-to-long finish gaps are findings for both models, and the first-text gap between the models is not.

To extend the run, I would capture the reasoning-token field on every call and set effort explicitly at two or more levels. I would also add a task that needs reasoning, such as a small coding problem. More than five calls per point would narrow the intervals that limit this run.

Log the reasoning-token field on a sample of your real prompts, note the high end rather than the median, and say in the responses how far it ran above your answer length.

More from this series: Why Do Prompt-Tuning Loops Keep Accepting Regressions?

Sources

👏 Give it a few claps (you can clap up to 50 times!)

Found this valuable? Abhishek writes about AI, data & product shifts nobody notices until they’re everywhere.

More from me: LinkedIn · Medium · X @AIwithAbhiPro · IG @ai.pm.withAbhi · Mentorship

Thanks for Reading & I love you all ❤️

How Much of a Reasoning Model’s Output Do You Never See? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

原文来源:pub.towardsai.net