How to set reasoning effort across OpenAI, Anthropic and Gemini
What reasoning_effort, Claude's effort and thinking budget, and Gemini's thinking level and budget each control, and what AIVAX sends upstream, returns and charges.
I sent one prompt about duplicate charges in a payment service through AIVAX with reasoning_effort: "low" to two Gemini models. @google/gemini-3.8-flash answered in 73 completion tokens. @google/gemini-2.5-flash used 870 and returned 1,748 characters of reasoning text before a two-sentence answer. The field and the value were identical, and the output differed by about twelve times. A level such as low is a position on each model's own scale, so setting reasoning effort starts with knowing which scale the model uses and which API surface you are calling.
OpenAI takes reasoning_effort on Chat Completions and reasoning.effort on Responses
OpenAI's reasoning guide puts the setting at reasoning.effort in the Responses API; Chat Completions takes the flat reasoning_effort. The accepted values are model-dependent and can include none, minimal, low, medium, high, xhigh and max. On the current GPT-6 models the differences matter. The guide says GPT-6 Astra returns HTTP 400 for none, and that GPT-6.1 Sol supports neither none nor minimal and defaults to medium. The GPT-6.1 Terra page lists none and also defaults to medium.
Through AIVAX, Sol at none came back as 400 Reasoning is mandatory for this endpoint and cannot be disabled., and Terra at none returned 200 in 34 completion tokens. minimal on Sol returned 200 on November 17 even though OpenAI says Sol does not support it. AIVAX checks that the value is one of its seven levels and forwards it without comparing it to the model's own list, so a 200 only tells me the provider accepted the request. I would replace a minimal left over from a GPT-5 integration with low myself, as the GPT-5 migration guide recommends.
Reasoning effort also changes which other parameters are allowed. OpenAI's GPT-6 checklist says to remove temperature and top_p whenever the effort is not none. AIVAX drops temperature from the upstream request for the models flagged as not supporting it, which includes Sol and Terra, and the post on the temperature error lists which GPT-6 models can run at none at all. Function tools are the other interaction: OpenAI says tool calling on Sol and Terra requires Responses. A Chat Completions request with one function tool and effort low still returned a tool call through AIVAX on November 17, the same result as the November 16 test in the migration guide, and the post on the 400 error covers the Responses-only rule behind it.
Claude has two controls, and budget_tokens now returns 400 on current models
Anthropic's effort parameter is output_config.effort, with low, medium, high, xhigh and max. It defaults to high, except on Claude Opus 5.5 and Haiku 5.5 where it is medium. Anthropic calls it a behavioral signal that applies to every token in the response, including text and tool calls, so a lower effort also produces fewer and terser tool calls.
Thinking is a separate field. On Claude 5 models adaptive thinking is already on, and display defaults to "omitted", so you receive the signature but no thinking text until you send thinking: {"type": "adaptive", "display": "summarized"}. The older manual control, thinking: {"type": "enabled", "budget_tokens": N}, needs at least 1,024 tokens and a value below max_tokens, and Anthropic's extended thinking page says Claude 4.7 and later reject it with a 400. On a current Claude model, replace budget_tokens with an effort level and, if you need the summary, a display setting. Opus 4.5 is the model where the two still combine, with effort shaping the whole response and the budget setting thinking depth.
Gemini moved from thinkingBudget to thinkingLevel
The Gemini 2.5 series takes a token count. The GenerateContent guide documents generationConfig.thinkingConfig.thinkingBudget with a range of 128 to 32,768 on 2.5 Pro, which cannot turn thinking off, and 0 to 24,576 on 2.5 Flash, where 0 disables it and -1 asks for dynamic thinking. Flash-Lite starts at 512. Gemini 3 and 4 use thinkingLevel instead (thinking_level in the Interactions API), with minimal, low, medium and high, plus xhigh on Gemini 4 Hydrogen. The supported set differs per model: Gemini 3.8 Flash accepts low, medium and high and has no minimal.
On the Gemini 4 models thinkingBudget is deprecated. Sent alone it maps to the nearest level with a warning, and sent together with thinkingLevel it returns 400. On GenerateContent the 2.5 models do not accept thinkingLevel. Moving a thinking budget of 1,024 from 2.5 Flash to a newer model therefore means picking a level and measuring again, since no level maps to a fixed number of tokens.
AIVAX sends one reasoning_effort field and each provider applies its own scale
AIVAX reads reasoning_effort from the request and forwards it unchanged in the upstream Chat Completions body. It does not build budget_tokens, thinkingBudget or thinkingLevel itself. Send the flat reasoning_effort field; a top-level reasoning object is not read. In my requests the provider that answered was azure-us or claude-on-aws for Claude, google-vertex-global or google-ai-studio for Gemini and amazon-bedrock-us-east-1 for GPT, and each one applies its own scale to the level. The 73 and 870 tokens above came from two different Gemini models. The provider field of each response names who answered, and to keep one model on the same provider across calls I would pin routing_options.allowed_providers, as the routing page describes.
The request accepts max, xhigh, high, medium, low, minimal and none; banana and extreme returned 400 reasoning_effort: Invalid option on a GPT, a Claude and a Gemini model. The levels each model is meant to receive are listed in modelInformation.reasoningEfforts of the public catalog. Stay inside that list: minimal returned 200 on Gemini 3.8 Flash, whose list is high, medium, low, and the provider decided what to do with it. Query the catalog before choosing:
curl -s https://inference.aivax.net/api/v1/information/models.json \
| jq -c '.data[].models[]
| select(.name == "@openai/gpt-6.1-terra" or .name == "@google/gemini-3.8-flash")
| {name, efforts: .modelInformation.reasoningEfforts}'
A request that sets the field looks like this:
curl https://inference.aivax.net/v1/chat/completions \
-H "Authorization: Bearer $AIVAX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "@openai/gpt-6.1-terra",
"messages": [{"role": "user", "content": "Compare two retry policies for a payment service. Name the biggest duplicate-charge risk and one safeguard."}],
"reasoning_effort": "high",
"max_completion_tokens": 4000
}'
A saved AI gateway can carry a default reasoning_effort, and a value in the request overrides it, as the override rules describe. The complexity router takes a reasoning effort per level too, and the post on what its classifier costs shows when routing by difficulty pays. A gateway that uses your own provider key can also be set to send Responses upstream. In that case AIVAX rewrites the field to reasoning: {"effort": ..., "summary": "auto"}. Provider-native controls have no request field on integrated models. If you need one, such as Gemini's thinkingBudget, a gateway with your own key and an OpenAI-compatible endpoint merges extra_body into the provider request body, as the custom request body page describes, and that is where I would set them.
Reasoning arrives in its own field, and low efforts often return none
The answer is in choices[0].message.content, and the reasoning text is in message.reasoning. In a stream the fragments arrive as delta.content and delta.reasoning, as the streaming reference lists. A Terra stream at high opened with a reasoning chunk and carried 32 reasoning chunks and 35 answer chunks in all, so a client can show progress while the model works. At low, Terra, Claude Sonnet 5.5 and Gemini 3.8 Flash returned no reasoning text, while the completion tokens still rose with the level (Terra went from 34 at none to 44 at low), so compare completion_tokens across levels to see how much thinking a request bought.
What arrives is a summary. Anthropic says what the thinking block shows is never the raw chain of thought, and OpenAI exposes a summary through its summary parameter. Keep that text out of anything you parse: when a request asks for JSON, AIVAX reads it from the final answer content, never from the reasoning, as the post on invalid JSON describes. A gateway can also stop reasoning from reaching the client with the DisableReasoningSummary flag.
A tool turn needs state the summary does not carry
Each vendor keeps reasoning continuity somewhere other than the readable text. Anthropic requires the thinking blocks of a tool-use turn to be passed back complete and unmodified. Gemini's Interactions guide says that when you manage state yourself you must resend every thought block exactly as received, because the signatures sit in them. OpenAI's Responses API returns encrypted_content on reasoning items in stateless mode so they can be passed to the next call.
Through Chat Completions on AIVAX the client returns tool_calls and a tool message, and message.reasoning is readable text: the provider's opaque reasoning items and signatures are not handed to the client. Session reuse restores tool calls and results without reasoning, and the server-side context page says to send back the final assistant answer without the reasoning transcript. In a loop AIVAX runs with server-side tools, the reasoning of earlier steps is kept as long as the model and the provider stay the same, and switching either starts the next step without it.
I ran the client-driven loop on three models at high. The prompt asked for two lookups of a payment charge and then a judgment, so the first turn returned two tool_calls and the second turn carried both tool messages. @openai/gpt-6.1-sol (amazon-bedrock-us-east-1) and @anthropic/claude-5.5-sonnet (claude-on-aws) returned no reasoning text on the first turn, and Sol returned 414 to 467 characters of it on the second. @google/gemini-3.8-flash (google-vertex-global) returned reasoning on both turns, 213 to 283 characters on the first. Every second turn returned 200 with a coherent answer. On Gemini, where there was text to send, it worked both with the returned reasoning on the assistant message and without it, and on Sol and Claude the first turn had no text to send back. A single lookup at low on Sol and Claude also finished in two turns. That shows the loop completes through AIVAX with the readable text present or absent. It does not show whether a provider relies on hidden state over many steps, so on Claude or Gemini I would run the full sequence with my own tools at the production effort. Until then I send back the assistant message with its tool_calls and leave reasoning out.
Reasoning tokens are billed as output tokens and counted in completion_tokens
OpenAI bills reasoning tokens as output tokens and reports them in output_tokens_details.reasoning_tokens. Anthropic bills thinking as output even when no text is returned. Google's pricing note sums output tokens and thinking tokens. AIVAX reports a single aggregate: on every model I called, usage carried prompt_tokens, completion_tokens, total_tokens and prompt_tokens_details. Reasoning tokens are charged at the model's output price, and the request total adds the prompt at the input price and the plan multiplier, with no separate reasoning line. When a provider reports reasoning tokens apart from the output and the figure is larger than completion_tokens, AIVAX adds it in. To estimate how much of a request went to thinking, send the same prompt at two effort levels and compare completion_tokens, as the table below does.
| Model | Effort | completion_tokens | Reasoning text returned | Consumed-Credits (USD) |
|---|---|---|---|---|
@openai/gpt-6.1-terra | none | 34 | No | 0.000222 |
@openai/gpt-6.1-terra | low | 44 | No | 0.000278 |
@openai/gpt-6.1-terra | high | 83 | Yes | 0.000497 |
@openai/gpt-6.1-sol | low | 75 | Yes | 0.000904 |
@anthropic/claude-5.5-sonnet | low | 136 | No | 0.001634 |
@anthropic/claude-5.5-sonnet | high | 235 | Yes | 0.002744 |
@google/gemini-3.8-flash | low | 73 | No | 0.000298 |
@google/gemini-3.8-flash | high | 690 | Yes | 0.002658 |
@google/gemini-2.5-flash | low | 870 | Yes | 0.002226 |
@google/gemini-2.5-flash | high | 1320 | Yes | 0.003374 |
These are single runs of one short prompt, so they show the scale of the effect and rank nothing. Moving Gemini 3.8 Flash from low to high multiplied the completion tokens by about nine and the charge by the same factor, while Terra from none to high raised the tokens about 2.4 times and the charge about 2.2 times. The charge is the Consumed-Credits header, in USD after the plan multiplier. The multiplier is +25% on Free, +5% on Pro, +2% on Max and none on Ultimate, as the pricing page lists, and the table comes from a Max account, so each row includes the prompt and the +2%. The post on reading the cost of each call covers the header, including streamed requests, where it is absent. My own habit is to start at low and raise the level only when an evaluation on real traffic shows a gain, which is close to OpenAI's advice to use xhigh only when evals show a clear benefit.
The output cap interacts with all of this. Thinking tokens count against max_completion_tokens, so a low cap can end a response after the model has spent its budget thinking and before it writes a word of the answer. OpenAI documents that case as an incomplete response with max_output_tokens as the reason, and Google's guide says the same about max_output_tokens.
Ran on the live AIVAX API on November 17, 2026 (the ten requests in the table, the tool loops, the stream and the invalid-value probes) on a Max account; OpenAI, Anthropic and Google facts come from the linked pages, not from direct calls.