#Google Vertex AI & AI Studio Keys Failing: "No secret key provided" Error

13 messages · Page 1 of 1 (latest)

rustic thicket
#

Hi! I'm getting a "Key validation failed: No secret key provided" error when trying to set up both Google Vertex AI and Google AI Studio in OpenRouter.

Setup Details:

  • Google Vertex AI: Using valid service account JSON with all required fields
  • Google AI Studio: Using valid API key (confirmed working in other apps)
  • Vertex AI API is enabled in Google Cloud
  • Service account has "Vertex AI User" role
  • Tried multiple Gemini models

What I've Tried:
✅ Created fresh service accounts
✅ Enabled all required Google Cloud APIs (i think)
✅ Added proper IAM permissions (i think)
✅ Tested with multiple models

Both integrations fail with the same error despite having valid, working credentials. Is there a known issue with Google integrations, or am I missing a configuration step specific to OpenRouter?

Any help would be appreciated! Thanks!

#

i clearly see my private key in the json that i am pasting

#

btw i am on the google cloud trail with verified payment so i dont think that's the problem

dreamy heart
rustic thicket
#

ohhh ok let me try

#

sorry how do i exactly add my vertex ai one

dreamy heart
rustic thicket
#

np

dreamy heart
#

i think just the "Test" function is broken, but if you actually try using a model with Vertex it should work?

rustic thicket
#

i will test it now

#

thanks

potent pilot
rustic thicket
#

ok i tested it works