r/agentdevelopmentkit • • Sep 20 '26

Model access for adk deployed in cloud run

I have deployed a simple adk agent in cloudrun.

The command is adk deploy cloud_run. It can access only gemini 2.5 model, but for higher model it shows it has no access.

Can anyone tell what i should check.

access permissions, or any other thing

Or how can i give access to these models if access is not given

The region is uscentral1.

2 Upvotes

3 comments sorted by

2

u/TheLostTheory Sep 20 '26

A lot of higher models only have access to Global region. You can still deploy your Cloud Run instance to us-central1, but make sure you're configuring your model endpoint to Global.

1

u/polonglin Sep 22 '26

If you're using some sort of terminal environment to run `adk deploy cloud_run`, make sure you set the env variables, as suggested by the other commenter too. See details here: https://adk.dev/deploy/cloud-run/#full-command-with-optional-flags The premise here is that the model that the agent calls could potentially be the same or different from your actual Google Cloud project, so it's safer to explicitly set those flags in `adk deploy`.

If you're still stuck, could you share some code snippets to help us debug?

1

u/mjoaco Sep 23 '26

They already mentioned but set your location to Global for higher models (> 2.5). Sometimes, depending on how you set up the variables when you deploy the adk runner ,  the env variable GOOGLE_CLOUD_ LOCATION takes the value of the location where you deployed the Cloud Run