Google Gen AI SDK for JavaScript

Is it possible to know when the Google Gen AI SDK will be available for JavaScript? Any approximate ETA or other information. The documentation used to say Coming Soon and now I don’t see that sentence, and I would really like to use the new SDK in JavaScript because the project I’m doing is based on that language.

1 Like

I’m not an official google person, but I use their SDK @google/generative-ai on npm. Perhaps this is what you’re looking for? Or is there a different newer version that should be coming out?

Perhaps you could give some links to the documentation you’re looking at.

Google Gen AI SDK | Gemini API | Google AI for Developers
Google Gen AI SDK documentation
This one.

1 Like

Ah interesting. That seems to be a unified SDK to VertexAI and “above” the one I linked to, which it’s calling the Gemini Developer API. I thought VertexAI was a completely distinct GCP-centric service on top of the Gemini Developer API and so I don’t understand why they are “unifying” it.

I know it doesn’t answer your question, but could you give me your use case on what you are looking to gain from the new SDK as opposed to using either VertexAI or the Gemini Developer API separately?

Mainly in appearance and functionality I like the new SDK better. It reminds me of the ones from OpenAI, and since I switched from OpenAI API to Gemini API it would be nice to have something similar in appearance (I know that theoretically there is openai library support but I can’t really make the prompt system work as I’m not an advanced developer, and I program more as a hobby). Also generative-ai-js is not further developed and version 0.21.0 came out on October 3, 2024.


Because of this, one flag from Safety Settings is also not working
/{
category: HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY,
threshold: HarmBlockThreshold.BLOCK_NONE,
},
/
and there are other problems that have not been solved.
That’s why I’m waiting for the new Google Gen AI SDK for NodeJS and want to know when I can estimate to expect it.

1 Like