[KongchangAI]
ProductGoogle Gen AI SDK

@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)

Oct 23

The officially maintained Google JavaScript/TypeScript SDK package is `@google/genai`, which wraps the underlying REST API's authentication, serialization and error handling.

Unverified50%
Oct 23

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.

Unverified50%
Oct 16

@google/genai version 2.27.0 does not automatically retry 429 errors and throws them directly to the caller.

Unverified50%
Oct 16

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.

Unverified50%

All Facts (4)

Source Articles