What region does Google ADK use with Gemini? #3040
Replies: 2 comments
-
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Gemini region is determined by the region you specify when deploying your agent to Cloud Run, or by the When you deploy your agent to Cloud Run using the adk deploy cloud_run --region=us-central1 This will deploy your agent to the Alternatively, if you are using Vertex AI, you can specify the For example:
If you do not specify a region, the ADK will prompt you to select one, or it may use the default region configured in your local It is also worth noting that when you enable Cloud Trace for your agent, the traces will also be sent to the same region. [4] [1] https://google.github.io/adk-docs/deploy/cloud-run/ |
Beta Was this translation helpful? Give feedback.
-
When you deploy a Google ADK (Agent Development Kit) agent that uses a Gemini model (like "gemini-2.5-flash") via Cloud Run, the Gemini region your requests go to is determined by the region you choose for your Cloud Run deployment. This region can be set with the --region flag when you run the deployment command, like:
If you don’t explicitly set a region, the ADK will either prompt you to select one or fall back to the region configured in your local gcloud settings. This region setting dictates where your Gemini API requests are routed. Also, when you enable Cloud Trace for your agent, the tracing data is sent to the same region. So essentially, the Gemini region corresponds with your Cloud Run deployment region or the configured environment variable—giving you control over where your requests are processed. If you want official guidance, you can check the deployment documentation and environment variable configurations related to GOOGLE_CLOUD_LOCATION. Let me know if you want help on how to set this up or manage multiple regions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This might not be an ADK question but if I create a basic Agent and use a model like "gemini-2.5-flash" - how do I know what Gemini region the request goes to. This is using my own cloud run deployment
Beta Was this translation helpful? Give feedback.
All reactions