Skip to content
← All news
Artificial IntelligenceNovember 8, 2026 · 1 min read

Google GenAI SDK Updates API Version Configuration and HTTP Client Defaults

Mehmet Kocabaş
Mehmet Kocabaşupdated: November 8, 2026
Google GenAI SDK Updates API Version Configuration and HTTP Client Defaults

TL;DR

Developers can configure or restore previous defaults using the GOOGLE_GENAI_API_VERSION environment variable across Gemini Developer API and Enterprise clients. Passing api_version in HttpOptions takes precedence over the environment setting. The SDK also restores the httpx default client via a dedicated extra and environment flag. Documentation links have been updated to aistudio.google.com.

Source summary

Developers can configure or restore previous defaults using the GOOGLE_GENAI_API_VERSION environment variable across Gemini Developer API and Enterprise clients.

Setting this variable to beta restores the beta default, while an explicit string sets a specific version.

Passing api_version in HttpOptions takes precedence over the environment setting.

The SDK restores the httpx default client by installing the httpx extra and setting GOOGLE_GENAI_HTTP_CLIENT=httpx.

SDKs now support the environment variable, and documentation links have been updated to aistudio.google.com.

Source

Google Gen AI Python releasesOpen the original source