@google/genai
An officially maintained Google JavaScript/TypeScript SDK that wraps the underlying REST API's authentication, serialization and error handling, and is used to call models such as Gemini in Node.js.
Timeline (last 90 days)
The officially maintained Google JavaScript/TypeScript SDK package is `@google/genai`, which wraps the underlying REST API's authentication, serialization and error handling.
The `client.interactions.create()` method is essentially a typed wrapper around the REST endpoint, and the structure of the returned interaction object is also consistent with the API's raw response.
@google/genai version 2.27.0 does not automatically retry 429 errors and throws them directly to the caller.
The httpOptions.retryOptions provided by @google/genai are not suitable for handling quota issues, because their exponential backoff is guessing the wait time, whereas the error message itself already gives the delay precisely.
All Facts (4)
The officially maintained Google JavaScript/TypeScript SDK package is `@google/genai`, which wraps the underlying REST API's authentication, serialization and error handling.
50%UnverifiedThe `client.interactions.create()` method is essentially a typed wrapper around the REST endpoint, and the structure of the returned interaction object is also consistent with the API's raw response.
50%Unverified@google/genai version 2.27.0 does not automatically retry 429 errors and throws them directly to the caller.
50%UnverifiedThe httpOptions.retryOptions provided by @google/genai are not suitable for handling quota issues, because their exponential backoff is guessing the wait time, whereas the error message itself already gives the delay precisely.
50%