Setup
Vertex AI uses Application Default Credentials (ADC) instead of an API key.Config
Use it
Models
Same models as Google Gemini —gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash.
Features
| Feature | Supported |
|---|---|
| Streaming | Yes |
| Tool use | Yes |
| Vision (images) | Yes |
| Reasoning | Yes (2.5 Pro, 2.5 Flash) |
| VPC-SC | Yes |
| CMEK | Yes |
| Data residency | Yes |
Provider Details
| Provider ID | google-vertex |
| Env variable | GOOGLE_CLOUD_PROJECT + Application Default Credentials |
| API type | Vertex AI API |
When to Use Vertex vs. Google AI Studio
| Google AI Studio | Vertex AI | |
|---|---|---|
| Auth | API key | IAM / ADC |
| Compliance | None | VPC-SC, CMEK, HIPAA |
| Data residency | No control | Region-specific |
| Billing | Pay-as-you-go | GCP billing |
| Best for | Personal/startup | Enterprise |
Notes
- If you’re already running on GCP, Vertex AI avoids the need for a separate API key — your service account handles authentication.
- Pricing is the same as Google AI Studio for most models.
- Make sure
GOOGLE_CLOUD_PROJECTis set and your ADC credentials have theaiplatform.endpoints.predictpermission.