Is there some way I can configure the gemini API request to be in a certain region. Reason I am asking this my application deployed on AWS is making a request to the API and it results in data transfer charges
Welcome to the forums!
If you’re using the AI Studio Gemini API, there isn’t any way to configure the region. (It either runs in the “global” region or out of a single US region.)
To specify a region, you need to use the Vertex AI Gemini API.
However, if you’re making calls from an AWS instance, wouldn’t you be getting transfer charges from any data leaving AWS? In this case, you may want to consider running on a Google Cloud instance instead.