I am interested in using the Gemini API to extract information from videos using the Gemini-1.5-flash model. I have a few questions:
-
How can I save a trained GenerativeModel API model so that I can call it directly next time?
-
I am frequently encountering the following error when using the API:
429 POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?%24alt=json%3Benum-encoding%3Dint: Resource has been exhausted (e.g. check quota).
However, I have checked my Cloud quota and I am not yet at the 1500 RPD limit.
- Sometimes I encounter the following error when processing the same video:
400 POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?%24alt=json%3Benum-encoding%3Dint: Please use fewer than 3600 images in your request to models/gemini-1.5-flash.
However, this error does not always occur for the same video.
I would appreciate any help that you can provide.