# Google Gen AI SDK for JavaScript

**URL:** <https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554>\
**Category:** Gemini API\
**Tags:** javascript, generative-ai\
**Created:** [February 5, 2025, 9:59pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554 "2025-02-05T21:59:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akumelion](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/akumelion/32/31536_2.png) [@Akumelion](https://discuss.ai.google.dev/u/Akumelion)\
**Post date:** [February 5, 2025, 9:59pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/1 "2025-02-05T21:59:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ibgib](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ibgib/32/26631_2.png) [@ibgib](https://discuss.ai.google.dev/u/ibgib)\
**Post date:** [February 6, 2025, 11:57am UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/3 "2025-02-06T11:57:31Z")

</div>

I’m not an official google person, but I use their SDK [`@google/generative-ai` on npm](https://www.npmjs.com/package/@google/generative-ai). 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.

---

<div class="post-metadata">

**Author:** ![Akumelion](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/akumelion/32/31536_2.png) [@Akumelion](https://discuss.ai.google.dev/u/Akumelion)\
**Post date:** [February 6, 2025, 1:21pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/4 "2025-02-06T13:21:07Z")

</div>

[Google Gen AI SDK | Gemini API | Google AI for Developers](https://ai.google.dev/gemini-api/docs/sdks)  
[Google Gen AI SDK documentation](https://googleapis.github.io/python-genai/)  
This one.

---

<div class="post-metadata">

**Author:** ![ibgib](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ibgib/32/26631_2.png) [@ibgib](https://discuss.ai.google.dev/u/ibgib)\
**Post date:** [February 6, 2025, 1:52pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/6 "2025-02-06T13:52:13Z")

</div>

Ah interesting. That seems to be a unified SDK to [VertexAI](https://www.npmjs.com/package/@google-cloud/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?

---

<div class="post-metadata">

**Author:** ![Akumelion](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/akumelion/32/31536_2.png) [@Akumelion](https://discuss.ai.google.dev/u/Akumelion)\
**Post date:** [February 6, 2025, 3:00pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/7 "2025-02-06T15:00:09Z")

</div>

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.

 ![image](https://d3qe71uytubmmx.cloudfront.net/original/3X/c/7/c72525624fd67caf913846e6d4625c11aed478ac.png)  
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.

---

<div class="post-metadata">

**Author:** ![Shivam\_Mishra](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/shivam_mishra/32/14113_2.png) [@Shivam\_Mishra](https://discuss.ai.google.dev/u/Shivam_Mishra)\
**Post date:** [June 9, 2025, 10:17am UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/9 "2025-06-09T10:17:46Z")

</div>

Hi @Akumelion ,

Apologies for the late response. The new [@google/genai](https://www.npmjs.com/package/@google/genai?activeTab=versions) SDK has been launched, and it also supports the `safetySettings` that you mentioned.

Also, if you think we can add some more features that would be helpful to the community, you can raise a new feature request in [js-genai Github](https://github.com/googleapis/js-genai). Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:22pm UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554/11 "2026-11-05T18:22:57Z")

</div>

Closed on November 5, 2026, 6:22pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
