Gemini 4 Argon: Thinking summaries + token counts missing when using structured JSON

(Heads up: I used Gemini to help troubleshoot and write this report, but I’ve personally tested and verified the results below. Thank you!)

gemini-4-argon returns thinking summaries and thinking-token counts for normal responses, but both disappear when I require structured JSON—even when calling Google directly without the Python SDK.

What I tested

Both requests used:

"thinkingConfig": {
  "thinkingLevel": "MEDIUM",
  "includeThoughts": true
}

The prompt was identical:

Find the smallest positive integer that leaves remainder 1 when divided by 2, 3, 4, 5, and 6, and is divisible by 7.

The only difference was adding these settings to the structured JSON request:

"responseMimeType": "application/json",
"responseSchema": {
  "type": "OBJECT",
  "properties": {
    "answer": {"type": "INTEGER"},
    "explanation": {"type": "STRING"}
  },
  "required": ["answer", "explanation"]
}

What happened

  • Normal response: returned a thought summary and 255 thinking tokens.
  • Structured JSON: returned no thought summary, and thoughtsTokenCount was entirely absent—not explicitly null.
  • Both requests succeeded with HTTP 200.

I reproduced this using google-genai versions 1.73.1 and 2.32.0, then confirmed it with direct REST requests to:

https://generativelanguage.googleapis.com/v1beta/models/gemini-4-argon:generateContent

For comparison, gemini-3.8-flash returned thinking information with the same structured-output settings in my Python tests.

My production workflow requires schema-constrained JSON, and having reasoning token transparency would be helpful for anticipating project costs. Is there a workaround that preserves the required JSON structure?

Direct REST test output

==================================================
TEST: normal_answer
HTTP status: 200

USAGE DIRECTLY FROM GOOGLE:
{
  "promptTokenCount": 67,
  "candidatesTokenCount": 483,
  "totalTokenCount": 805,
  "promptTokensDetails": [
    {
      "modality": "TEXT",
      "tokenCount": 67
    }
  ],
  "candidatesTokensDetails": [
    {
      "modality": "TEXT",
      "tokenCount": 483
    }
  ],
  "thoughtsTokenCount": 255
}

Thought summaries found: 1
Model version: gemini-4-argon
Response ID: GWzaavPZJtHV_uMPgJX-iAo

==================================================
TEST: structured_json
HTTP status: 200

USAGE DIRECTLY FROM GOOGLE:
{
  "promptTokenCount": 237,
  "candidatesTokenCount": 239,
  "totalTokenCount": 476,
  "promptTokensDetails": [
    {
      "modality": "TEXT",
      "tokenCount": 237
    }
  ],
  "candidatesTokensDetails": [
    {
      "modality": "TEXT",
      "tokenCount": 239
    }
  ]
}

Thought summaries found: 0
Model version: gemini-4-argon
Response ID: JWzaaqapN6zVjMcPvaLEuA8

I can provide the complete request bodies and raw responses if helpful. Thanks for taking a look.

Thanks for the clear reproduction and side-by-side comparison.

1. Cost & token transparency (thoughtsTokenCount omission = 0 thinking tokens billed) No reasoning tokens are hidden or billed uncounted on your structured_json call. You can verify this from usageMetadata:

  • normal_answer: promptTokenCount (67) + candidatesTokenCount (483) + thoughtsTokenCount (255) = totalTokenCount (805)
  • structured_json: promptTokenCount (237, higher because the serialized schema is passed in context) + candidatesTokenCount (239) = totalTokenCount (476)

Because totalTokenCount == promptTokenCount + candidatesTokenCount, 0 thinking tokens were generated or billed on that call.

2. Why the same request can use thinking tokens on some runs/turns and 0 on others Gemini models use dynamic thinking, and thinkingLevel acts as a “relative allowance for thinking rather than strict token guarantees” (Thinking levels). Because sampling is non-deterministic and your responseSchema includes an "explanation" field where the model can write out its step-by-step derivation directly in the JSON output, at "MEDIUM" the model will on some runs reason in the internal thought block first and on other runs write its reasoning directly into "explanation" without spending separate thinking tokens. When 0 internal thinking tokens are used, no "thought": true summary part is emitted and only the thoughtSignature is attached to the output part (Thought summaries).