# \#javascript

**URL:** https://discuss.ai.google.dev/tag/javascript/295.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [Gemini.js should exist hear me out](https://discuss.ai.google.dev/t/gemini-js-should-exist-hear-me-out/186540)

<div class="topic-metadata">

**Author:** [@Seraj\_devlops](https://discuss.ai.google.dev/u/Seraj_devlops)\
**Replies:** 0\
**Last updated:** [October 3, 2026, 6:25pm UTC](https://discuss.ai.google.dev/t/gemini-js-should-exist-hear-me-out/186540 "2026-10-03T18:25:21Z")

</div>

So you know if someone was making a website but you wanted to add gemini to your projects but you dont want to risk your api key getting stolen this new gemini.js or gemini . Javascript adds something like sign in using …

---

## [What to do when app in Google AI studio goes white!](https://discuss.ai.google.dev/t/what-to-do-when-app-in-google-ai-studio-goes-white/105828)

<div class="topic-metadata">

**Author:** [@linda\_zweygberg](https://discuss.ai.google.dev/u/linda_zweygberg)\
**Replies:** 3\
**Last updated:** [May 16, 2026, 4:17pm UTC](https://discuss.ai.google.dev/t/what-to-do-when-app-in-google-ai-studio-goes-white/105828 "2026-05-16T16:17:07Z")

</div>

Im starting to learn about “vibe coding” and having so much fun! But the app I´m working on has gone white, nothing is loading with launching the app. The AI assistent can not make the app work again or find whats wrong. …

---

## [AI Studio is getting slow](https://discuss.ai.google.dev/t/ai-studio-is-getting-slow/114187)

<div class="topic-metadata">

**Author:** [@Katje](https://discuss.ai.google.dev/u/Katje)\
**Replies:** 4\
**Last updated:** [January 28, 2026, 5:46pm UTC](https://discuss.ai.google.dev/t/ai-studio-is-getting-slow/114187 "2026-01-28T17:46:57Z")

</div>

For the last days, I noticed how my system seems to slow down considerably when I have the AI Studio app open in my browser. But when I switch to another tab page, things speed up again. When I send a prompt and the AI g…

---

## [imageSize: '2K' parameter ignored in @google/genai SDK but works in AI Studio](https://discuss.ai.google.dev/t/imagesize-2k-parameter-ignored-in-google-genai-sdk-but-works-in-ai-studio/111364)

<div class="topic-metadata">

**Author:** [@Vojtech\_Titlbach](https://discuss.ai.google.dev/u/Vojtech_Titlbach)\
**Replies:** 2\
**Last updated:** [December 22, 2025, 5:28pm UTC](https://discuss.ai.google.dev/t/imagesize-2k-parameter-ignored-in-google-genai-sdk-but-works-in-ai-studio/111364 "2025-12-22T17:28:43Z")

</div>

Issue Summary The imageSize: '2K' parameter in imageConfig is completely ignored when using the @google/genai JavaScript SDK, but the same setting works correctly in Google AI Studio web interface. Environment SDK: @go…

---

## [Gemini 2.5 Pro: MCP & Function Calling](https://discuss.ai.google.dev/t/gemini-2-5-pro-mcp-function-calling/92432)

<div class="topic-metadata">

**Author:** [@mrddter](https://discuss.ai.google.dev/u/mrddter)\
**Replies:** 3\
**Last updated:** [August 13, 2025, 12:00pm UTC](https://discuss.ai.google.dev/t/gemini-2-5-pro-mcp-function-calling/92432 "2025-08-13T12:00:40Z")

</div>

Hey everyone, I’m trying to combine function calling with MCP tools. Both work fine on their own, but when I do something like: response = await ai.models.generateContent({ model: config.models.gemini, …

---

## [What is the correct way to list the available models using the API?](https://discuss.ai.google.dev/t/what-is-the-correct-way-to-list-the-available-models-using-the-api/88842)

<div class="topic-metadata">

**Author:** [@progmars](https://discuss.ai.google.dev/u/progmars)\
**Replies:** 5\
**Last updated:** [June 17, 2025, 12:33pm UTC](https://discuss.ai.google.dev/t/what-is-the-correct-way-to-list-the-available-models-using-the-api/88842 "2025-06-17T12:33:05Z")

</div>

I’m using the latest GenAI SDK: import { GoogleGenAI, HarmCategory, HarmBlockThreshold } from "@google/genai"; In general, everything works fine, as long as I know the name of the model. However, I need the list of mo…

---

## [Google Gen AI SDK for JavaScript](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554)

<div class="topic-metadata">

**Author:** [@Akumelion](https://discuss.ai.google.dev/u/Akumelion)\
**Replies:** 5\
**Last updated:** [June 9, 2025, 10:17am UTC](https://discuss.ai.google.dev/t/google-gen-ai-sdk-for-javascript/64554 "2025-06-09T10:17:46Z")

</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 reall…

---

## [JavaScript string literals are being converted erroneously](https://discuss.ai.google.dev/t/javascript-string-literals-are-being-converted-erroneously/83280)

<div class="topic-metadata">

**Author:** [@DavisX8](https://discuss.ai.google.dev/u/DavisX8)\
**Replies:** 0\
**Last updated:** [May 14, 2025, 6:36pm UTC](https://discuss.ai.google.dev/t/javascript-string-literals-are-being-converted-erroneously/83280 "2025-05-14T18:36:43Z")

</div>

The AI (2.5 Pro) is outputting e.g. .replace(/\>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&apos;'); but what appears on the screen for me in AIStudio is: .replace(/\>/g, '\>') .replace(/"/g, '"') .replace(/'/g…

---

## [Proposed Rewrite of React Native Integration for TensorFlow.js](https://discuss.ai.google.dev/t/proposed-rewrite-of-react-native-integration-for-tensorflow-js/63295)

<div class="topic-metadata">

**Author:** [@Sanjaiyan\_Parthipan](https://discuss.ai.google.dev/u/Sanjaiyan_Parthipan)\
**Replies:** 7\
**Last updated:** [May 9, 2025, 9:00pm UTC](https://discuss.ai.google.dev/t/proposed-rewrite-of-react-native-integration-for-tensorflow-js/63295 "2025-05-09T21:00:49Z")

</div>

Hi all, I’m planning to rewrite the React Native part of TensorFlow.js to support the latest React standards and improve its overall architecture. I’m particularly interested in: Feedback on the proposed design. Pote…

---

## [React Native Architecture Update](https://discuss.ai.google.dev/t/react-native-architecture-update/67373)

<div class="topic-metadata">

**Author:** [@Sanjaiyan\_Parthipan](https://discuss.ai.google.dev/u/Sanjaiyan_Parthipan)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 3:03pm UTC](https://discuss.ai.google.dev/t/react-native-architecture-update/67373 "2025-02-20T15:03:38Z")

</div>

PR Update: I’ve updated the project for the latest React Native architecture. See details in the PR.

---

## ["Request contains an invalid argument" when using OpenAI compatibility](https://discuss.ai.google.dev/t/request-contains-an-invalid-argument-when-using-openai-compatibility/64738)

<div class="topic-metadata">

**Author:** [@s16n](https://discuss.ai.google.dev/u/s16n)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 10:40am UTC](https://discuss.ai.google.dev/t/request-contains-an-invalid-argument-when-using-openai-compatibility/64738 "2025-02-13T10:40:48Z")

</div>

The following code (on node v22.2.0) uses fetch to call the OpenAI-compatible Gemini API async function main() { const resp = await fetch( "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions"…

---

## [Predict data from a collection to determine a single object with the most used data](https://discuss.ai.google.dev/t/predict-data-from-a-collection-to-determine-a-single-object-with-the-most-used-data/29095)

<div class="topic-metadata">

**Author:** [@TargSale\_Oficial](https://discuss.ai.google.dev/u/TargSale_Oficial)\
**Replies:** 1\
**Last updated:** [September 15, 2024, 1:31pm UTC](https://discuss.ai.google.dev/t/predict-data-from-a-collection-to-determine-a-single-object-with-the-most-used-data/29095 "2024-09-15T13:31:59Z")

</div>

I need to start from a set of objects, define a single object, with the most used data among the javascript object collection informed. Example of set of objects: \[{ name: "Pedro", product: "Caneta" }, { na…

---

## [Tensorflow.js is the meaning](https://discuss.ai.google.dev/t/tensorflow-js-is-the-meaning/30652)

<div class="topic-metadata">

**Author:** [@James\_Sonoron](https://discuss.ai.google.dev/u/James_Sonoron)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 5:39pm UTC](https://discuss.ai.google.dev/t/tensorflow-js-is-the-meaning/30652 "2023-12-15T17:39:26Z")

</div>

Does the .js in tensorflow describe JavaScript?

---

## [Yolov8 TFLite Model on Android](https://discuss.ai.google.dev/t/yolov8-tflite-model-on-android/31829)

<div class="topic-metadata">

**Author:** [@Laura1](https://discuss.ai.google.dev/u/Laura1)\
**Replies:** 2\
**Last updated:** [December 11, 2023, 4:31pm UTC](https://discuss.ai.google.dev/t/yolov8-tflite-model-on-android/31829 "2023-12-11T16:31:12Z")

</div>

Hello everyone , I’m trying to run yolov8 model on android. This is the Yolov5Classifier.java file. It works for yolov5 model.Where do I need to change in Yolov5Classifier.java file for yolov8 ? Which parts should I pay …

---

## [How to load tensorflow json format model locally?](https://discuss.ai.google.dev/t/how-to-load-tensorflow-json-format-model-locally/30341)

<div class="topic-metadata">

**Author:** [@fahim\_faisal](https://discuss.ai.google.dev/u/fahim_faisal)\
**Replies:** 1\
**Last updated:** [September 6, 2023, 7:34am UTC](https://discuss.ai.google.dev/t/how-to-load-tensorflow-json-format-model-locally/30341 "2023-09-06T07:34:10Z")

</div>

I am searching for two days on how to load a trained TensorFlow JSON format model from a local computer. I am using JavaScript as a front-end language. Also, I want to use my model in the front end.

---

## [How to make predict call for javascript converted model](https://discuss.ai.google.dev/t/how-to-make-predict-call-for-javascript-converted-model/19644)

<div class="topic-metadata">

**Author:** [@Dave\_H](https://discuss.ai.google.dev/u/Dave_H)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 1:55pm UTC](https://discuss.ai.google.dev/t/how-to-make-predict-call-for-javascript-converted-model/19644 "2023-08-30T13:55:24Z")

</div>

I trained a model using GradientBoostedTreesModel and then converted to javascript. I need help creating the input to make the predict call in javascript. Saved model with the following command: tensorflowjs\_converter …

---

## [Tensforflow js BlazeFace model is not detecting all faces from Image](https://discuss.ai.google.dev/t/tensforflow-js-blazeface-model-is-not-detecting-all-faces-from-image/28055)

<div class="topic-metadata">

**Author:** [@Adnan\_Mustafa](https://discuss.ai.google.dev/u/Adnan_Mustafa)\
**Replies:** 1\
**Last updated:** [April 15, 2023, 2:16pm UTC](https://discuss.ai.google.dev/t/tensforflow-js-blazeface-model-is-not-detecting-all-faces-from-image/28055 "2023-04-15T14:16:20Z")

</div>

Hello! I’m using Tensorflow.js Blazeface model for face detection which is not detecting all faces from image. I’ve attached the sample picture and here is my Javascript Code const model = await blazeface.load(); cons…

---

## [Can't run TensorFlow JS in a Docker container](https://discuss.ai.google.dev/t/cant-run-tensorflow-js-in-a-docker-container/28128)

<div class="topic-metadata">

**Author:** [@Sir\_hennihau](https://discuss.ai.google.dev/u/Sir_hennihau)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 10:33am UTC](https://discuss.ai.google.dev/t/cant-run-tensorflow-js-in-a-docker-container/28128 "2022-11-01T10:33:12Z")

</div>

Hi I’m using the JavaScript version of the library. I have struggles to get it running in Docker with the Node Images. Can somebody help me to get it running? I get errors about missing dependencies. Dockerfile FROM …

---

## [Using BlazePose GHUM in unity](https://discuss.ai.google.dev/t/using-blazepose-ghum-in-unity/29108)

<div class="topic-metadata">

**Author:** [@Raghav\_Arora](https://discuss.ai.google.dev/u/Raghav_Arora)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 7:35am UTC](https://discuss.ai.google.dev/t/using-blazepose-ghum-in-unity/29108 "2022-11-01T07:35:35Z")

</div>

I see the blazepose GHUM JavaScript api. Is there any available code for using in unity?

---

## [GNN for tensorflow.js?](https://discuss.ai.google.dev/t/gnn-for-tensorflow-js/24912)

<div class="topic-metadata">

**Author:** [@Greg\_Matthews](https://discuss.ai.google.dev/u/Greg_Matthews)\
**Replies:** 38\
**Last updated:** [October 19, 2022, 11:40pm UTC](https://discuss.ai.google.dev/t/gnn-for-tensorflow-js/24912 "2022-10-19T23:40:22Z")

</div>

I might have missed it but is there going to be GNN released for JavaScript any time soon?

---

## [Basics of TensorFlow for JavaScript development](https://discuss.ai.google.dev/t/basics-of-tensorflow-for-javascript-development/8556)

<div class="topic-metadata">

**Author:** [@rythymystic](https://discuss.ai.google.dev/u/rythymystic)\
**Replies:** 0\
**Last updated:** [April 29, 2022, 10:14am UTC](https://discuss.ai.google.dev/t/basics-of-tensorflow-for-javascript-development/8556 "2022-04-29T10:14:33Z")

</div>

---

## [Feedback for Depth Estimation model API in JS](https://discuss.ai.google.dev/t/feedback-for-depth-estimation-model-api-in-js/31363)

<div class="topic-metadata">

**Author:** [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 7:33pm UTC](https://discuss.ai.google.dev/t/feedback-for-depth-estimation-model-api-in-js/31363 "2022-02-16T19:33:13Z")

</div>

Question to TensorFlow JS community: What use cases do you have for depth estimation in the browser via TensorFlowJS? Clearly a lot of AR/XR use cases but if you have specific examples in mind would love to hear more. T…

---

## [Zero To Hero: New TensorFlow.js edX course launching in March!](https://discuss.ai.google.dev/t/zero-to-hero-new-tensorflow-js-edx-course-launching-in-march/27458)

<div class="topic-metadata">

**Author:** [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 7:29pm UTC](https://discuss.ai.google.dev/t/zero-to-hero-new-tensorflow-js-edx-course-launching-in-march/27458 "2022-02-14T19:29:32Z")

</div>

It is almost time! We are aiming to launch a brand new course that will take you from zero to hero in the world of Web ML using TensorFlow.js over on edX on the 3rd March 2022. If you are curious to learn more about how…

---

## [Text Topics Where do I start?](https://discuss.ai.google.dev/t/text-topics-where-do-i-start/28951)

<div class="topic-metadata">

**Author:** [@SLSCoder](https://discuss.ai.google.dev/u/SLSCoder)\
**Replies:** 1\
**Last updated:** [November 12, 2021, 10:51am UTC](https://discuss.ai.google.dev/t/text-topics-where-do-i-start/28951 "2021-11-12T10:51:47Z")

</div>

Hi: I’m not new to javascript but virtually clueless about NLP. I’m trying come up with something, web based that can determine the topic sub-topic if it exists and the sentiment of a word or phrase from a sample of…

---

## [TensorFlow.js Show & Tell #6 is coming! Save the date](https://discuss.ai.google.dev/t/tensorflow-js-show-tell-6-is-coming-save-the-date/23124)

<div class="topic-metadata">

**Author:** [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Replies:** 0\
**Last updated:** [September 10, 2021, 1:55am UTC](https://discuss.ai.google.dev/t/tensorflow-js-show-tell-6-is-coming-save-the-date/23124 "2021-09-10T01:55:06Z")

</div>

We are pleased to announce the 6th quarterly live stream for the #MadeWithTFJS Show & Tell over on the TensorFlow YouTube channel. Save the date: 1st October at 9AM PT (community live chat for early birds starts from ~8…

---

## [TensorFlow.js Op support matrix - if you are having Python model conversion issues, check this first!](https://discuss.ai.google.dev/t/tensorflow-js-op-support-matrix-if-you-are-having-python-model-conversion-issues-check-this-first/31649)

<div class="topic-metadata">

**Author:** [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Replies:** 2\
**Last updated:** [August 29, 2021, 3:49pm UTC](https://discuss.ai.google.dev/t/tensorflow-js-op-support-matrix-if-you-are-having-python-model-conversion-issues-check-this-first/31649 "2021-08-29T15:49:56Z")

</div>

So I have seen a few forum posts around conversion of TF Python models to TensorFlow.js format and sometimes running into an issue where the Python model uses some unsupported op. Well, I am pleased to share a nice easy…

---

## [Using TensorFlow.js to emulate TikTok's Time Warp Scan Filter](https://discuss.ai.google.dev/t/using-tensorflow-js-to-emulate-tiktoks-time-warp-scan-filter/29866)

<div class="topic-metadata">

**Author:** [@Gant\_Laborde](https://discuss.ai.google.dev/u/Gant_Laborde)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 2:07am UTC](https://discuss.ai.google.dev/t/using-tensorflow-js-to-emulate-tiktoks-time-warp-scan-filter/29866 "2021-06-04T02:07:19Z")

</div>

You don’t have to use AI tech like TensorFlow.js for AI only. I enjoyed adding GPU acceleration to my JavaScript to make a wild project. Want to know what it is? Watch the promo video I made: Building w…

---

## [Converting TensorFlow Python to TensorFlow.js for browser based execution](https://discuss.ai.google.dev/t/converting-tensorflow-python-to-tensorflow-js-for-browser-based-execution/30671)

<div class="topic-metadata">

**Author:** [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Replies:** 0\
**Last updated:** [February 23, 2021, 8:43pm UTC](https://discuss.ai.google.dev/t/converting-tensorflow-python-to-tensorflow-js-for-browser-based-execution/30671 "2021-02-23T20:43:25Z")

</div>

Got questions on how to convert a TensorFlow Python SavedModel to TensorFlow.js for a project you are working on? Come discuss your progress with us here and see how you can get even more people using your model with the…
