11 questions
Tooling
1
vote
1
replies
58
views
New Google Embedding Models
Currently, the Gemini File Search API abstracts the embedding process, providing a seamless but “black-box” indexing experience. With the release of gemini-embedding-2-preview, developers now have ...
0
votes
1
answer
113
views
How can we resolve Gemini API block_reason: OTHER when using Gemini 3 Pro Image Preview for sensitive entities?
Our team is currently integrating the new gemini-3-pro-image-preview (Nano Banana Pro) model into our production pipeline on AWS App Runner in an EU region (eu-central-1).
While the model's text-in-...
0
votes
0
answers
109
views
LangGraph seems to ignore tool outputs with Gemini models
I’m experiencing an issue where the LLM correctly invokes a tool (tool call is successful), but it appears unable to interpret or process the tool’s result.
Here is the code to reproduce the issue:
...
1
vote
0
answers
91
views
Why doesn't PDF caching speed up/match raw text input latency on Gemini API?
Passing the text from OCR on a PDF is much faster than using the cache. Why?
Passing raw text, Nth call takes ~2 seconds.
response = client.models.generate_content(
model=MODEL_NAME,
contents=f&...
0
votes
1
answer
261
views
How do i setup google gemini 1.5 pro to analyze uploaded images
I have been having issues setting up Google Gemini 1.5 Pro to analyze uploaded images or documents by users.
I have been able to setup the uploading part, the images and documents are being uploaded ...
1
vote
0
answers
50
views
How do I convert Firebase Vertex AI's totalTokens and totalBillableTokens into monetary cost?
I'm using Vertex AI's generative model API, and after a request it returns two fields: totalTokens and totalBillableCharacters. According to the Gemini Flash 2.0 Lite pricing page, input tokens cost $...
1
vote
3
answers
964
views
ImportError: Cannot import name 'get_default_text_client' from 'google.generativeai.client' after upgrading
I'm encountering an ImportError after upgrading the google-generativeai library. The error is:
ImportError: cannot import name 'get_default_text_client' from 'google.generativeai.client' (/path/to/my/...
0
votes
1
answer
239
views
Error: TypeError: request is not iterable, Gemini API
im making clone of gemini AI using react and javascript, at first glance it seems works, but after i inspect my project at the browser i got these errors, can anyone explain to me? newbie here
@...
1
vote
1
answer
4k
views
Gemini API Error 400: Invalid or Unsupported File URI
I am trying to build an Android app using a no-code platform but there are certain features that the platform doesn't offer.
I want to prompt Gemini with an Image file using the API. I have created an ...
1
vote
2
answers
8k
views
Does Gemini API Support all file mime types
I am developing a tool that describes what a file is, using Gemini api. However, I had came into this issue of getting an error 400 Unsupported MIME type, when I uploaded a .docx type file. Does the ...
0
votes
1
answer
995
views
How aistudio can use directly file from Google Drive with code
When I select a large file from google drive on Googles AI Studio. Googles AI Studio loads my file very fast. However when I use code (Nodejs), I need to download this file from then upload this file ...