Bring Your Own Keys
Google Vertex AI
Configure Google Vertex AI service account credentials.
WatchThatSite integrates with Google Vertex AI, providing access to enterprise-grade LLMs with advanced safety and governance features.
Prerequisites
- Google Cloud Platform project
- Vertex AI API enabled
- Service account with appropriate permissions
Set Up Service Account
1. Create Service Account
- Go to Google Cloud Console
- Select your project (create one if needed)
- Go to Service Accounts (in IAM & Admin)
- Click Create Service Account
- Name it (e.g., "watchthatsite-vertex")
- Click Create and Continue
2. Grant Permissions
- Click Grant this service account access to project
- Select roles:
- Vertex AI User — Required for model access
- Vertex AI Service Agent — For additional capabilities
- Click Continue then Done
3. Create Service Account Key
- Go to Service Accounts page
- Click your newly created service account
- Go to Keys tab
- Click Add Key > Create new key
- Choose JSON
- Click Create
- Download file (keep it secure)
Enable Vertex AI API
- Go to APIs & Services
- Click Enable APIs and Services
- Search for Vertex AI API
- Click Enable
Wait a few minutes for the API to be enabled.
Get Your Credentials
From the downloaded JSON service account file, you need:
- Project ID:
"project_id"field - Service Account JSON: The entire JSON content (as password field)
The file looks like:
{
"type": "service_account",
"project_id": "my-project-id",
"private_key_id": "...",
"private_key": "...",
...
}Determine Your Region
Vertex AI is available in multiple regions:
us-central1— US Centralus-west4— US Westeurope-west1— Europe (Belgium)europe-west4— Europe (Netherlands)asia-northeast1— Asia (Tokyo)
Check Vertex AI regions for availability.
Add to WatchThatSite
- Go to Settings > AI Providers
- Click Add Provider Key
- Select Google Vertex AI from the provider dropdown
- Enter:
- Project ID: From service account JSON
- Region: AWS region (e.g.,
us-central1) - Service Account JSON: Full JSON content from key file
- Optionally select specific models
- Click Save
Recommended Models
Latest Vertex AI models with tool calling:
- Gemini 2.0 — Latest, most capable
- Gemini 1.5 Pro — High-performance, 1M token context
- Gemini 1.5 Flash — Fast with large context
- Claude 3.5 Sonnet — Via Bedrock integration
Model availability varies by region.
All Available Models
Your account has access to all models supporting tool calling in your region:
- Go to Settings > AI Providers
- Click Add Provider Key or Edit existing
- Models dropdown shows all available models
- Select specific models to restrict, or leave empty for all
Pricing
Vertex AI charges per 1M tokens:
- Input tokens: Standard rate per 1M tokens
- Output tokens: Higher rate per 1M tokens
- Varies by model: Different models have different pricing
Check Vertex AI Pricing for current rates.
Advantages
- Enterprise governance: Advanced compliance and audit features
- Model garden: Access to various model providers
- Fine-tuning: Ability to fine-tune models
- Monitoring: Built-in monitoring and evaluation tools
- MLOps: Integration with Google Cloud's ML ops stack
Security Best Practices
- Restrict key permissions: Use custom roles with minimal permissions
- Rotate keys: Regenerate service account keys periodically
- Use VPC-SC: Enable VPC Service Controls for network isolation
- Audit logging: Enable Cloud Audit Logs
- Separate keys: Use different service accounts for different applications
Troubleshooting
"Invalid Credentials" Error
- Verify project ID matches service account JSON
- Check entire JSON is pasted (check for truncation)
- Ensure service account has Vertex AI User role
"Permission Denied" or "Forbidden"
- Verify service account has proper roles
- Check IAM binding for service account
- Confirm Vertex AI API is enabled
- Wait a few minutes if roles were just assigned
"Project Not Found"
- Verify project ID is correct
- Check project exists and you have access
- Ensure project ID matches your service account JSON
"Model Not Found" or "Region Not Supported"
- Verify region supports the model
- Check model is enabled in your project
- Some models may not be available in all regions
- Use Vertex AI console to find available models per region
Authentication Failures
- Regenerate service account key in GCP console
- Download new JSON file
- Paste complete JSON content
- Check for invalid characters or truncation
Region Selection
Different regions have different model availability and latency:
- Choose region closest to your users
- Check model availability before selecting region
- Some advanced features may only be available in specific regions