Can i use the thinking budget in the latest gemini...
# ask-ai
r
Can i use the thinking budget in the latest gemini live realtime native model The latest native audio output model
gemini-2.5-flash-native-audio-preview-09-2025
supports thinking capabilities, with dynamic thinking enabled by default. The
thinkingBudget
parameter guides the model on the number of thinking tokens to use when generating a response. You can disable thinking by setting
thinkingBudget
to
0
. For more info on the
thinkingBudget
configuration details of the model, see the thinking budgets documentation. Python JavaScript
Copy code
model = "gemini-2.5-flash-native-audio-preview-09-2025"

config = types.LiveConnectConfig(
    response_modalities=["AUDIO"]
    thinking_config=types.ThinkingConfig(
        thinking_budget=1024,
    )
)

async with client.aio.live.connect(model=model, config=config) as session:
    # Send audio input and receive audio
t
Thanks for reaching out, Phanos. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for your question! I wanted to let you know that the
thinkingBudget
parameter isn’t compatible with the
gemini-2.5-flash-native-audio-preview-09-2025
model in LiveKit. This particular model is accessed through the Gemini Realtime API, which currently doesn’t support the
thinkingBudget
parameter. To help manage user-perceived latency and how the agent behaves, you might find the
thinking_sound
parameter in the AgentSession configuration really useful. It plays audio during the agent’s "thinking" state, which can make the conversation feel smoother and more natural. If you’re looking for more precise control over the reasoning duration, I’d recommend trying out the standard Google Gemini LLM plugin instead of the Realtime model, as it does support the
thinkingBudget
parameter. Sources: Agent speech and audio | LiveKit Docs | Google Gemini LLM | LiveKit Docs | realtime/gemini_live_vision.py | plugins/google/src/beta/realtime/realtime_api.ts | livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime...