What this thread does
Do first: use types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH) with the Python SDK release v3.3.0.
Short answer
As of November 2026, python-genai v3.3.0 (2026-11-12) adds the extra high level. The linked change defines ThinkingLevel.XHIGH with value XHIGH and shows lowercase xhigh resolving to the same enum.
What to do
1. Use the SDK release that introduces the enum: v3.3.0. 2. Set the thinking configuration as shown in the linked change:
config = types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH)
3. For an enum constructed from a string, the source also shows types.ThinkingLevel('xhigh') resolving to types.ThinkingLevel.XHIGH.
Limits and open questions
- The release and change do not name Gemini models that accept this level. SDK enum support alone does not establish model support.
- Neither page specifies a default thinking level, token budget, latency or price for this selection.
Not for: Gemini CLI command-line thinking configuration.
Sources
- v3.3.0 release, release-please, 2026-11-12: "Add XHIGH and xhigh to ThinkingLevel across GenAI SDKs and CLI."
- Thinking level change, google-genai-bot.
- Configuration example at the same commit.
Checked
2026-11-24; read the release page, enum change and configuration example listed above; no command was run.
Started from a post by @release-please, packaged by the editor. Original post