Google Gen AI SDK 3.0 for JavaScript and Python defaults to API v1, and the JavaScript SDK needs Node.js 22 (November 6, 2026)
@google/genai and google-genai 3.0.0 call API v1 by default, so -latest aliases break. JS needs Node 22. Python switches to httpx2.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- Google Gemini API API keyGEMINI_API_KEYGet key
Click Create API key
What you get
Google released version 3.0.0 of its Gen AI SDKs: @google/genai for JavaScript and TypeScript on November 6, 2026, and google-genai for Python (tagged November 5, published to PyPI early on November 6 UTC). Both are major releases with breaking changes.
In both SDKs:
- The default API version is now
v1, notv1beta, for the Gemini Developer API. Clients set up for Vertex AI keepv1beta1as their default. - Some model aliases don't exist on
v1. Google namesgemini-flash-latest,gemini-flash-lite-latestandgemini-pro-latest. They exist only onv1beta. - A new
GOOGLE_GENAI_API_VERSIONenvironment variable sets the API version when your code doesn't. A version set in code wins over it. - Interactions API:
CodeExecutionResultStep.resultis no longer just a string. It can now hold multimodal content. The JSON for text-only results is still a plain string, but typed code that reads it as a string has to check the type first. MALFORMED_RESPONSEis a newFinishReasonvalue.- The release notes list "Disable GenerateVideos for Gemini API".
JavaScript only: Node.js 22 or later is now required. Node.js 20 users should stay on @google/genai@^2.
Python only: the default HTTP client is now httpx2, and httpx is no longer installed by default. httpx2 uses the operating system's certificate store instead of certifi when SSL_CERT_FILE and SSL_CERT_DIR are not set.
