Configuration options
Add the following to your Prism configuration atconfig/prism.php:
You can use either
credentials (service account file path) or api_key for authentication. Service accounts are recommended for production environments.Required parameters
project_id
Your Google Cloud project ID. This is the unique identifier for your GCP project, not the project name or number.location
The Google Cloud region where your Vertex AI resources are provisioned. Common options include:us-central1(Iowa)us-east4(Northern Virginia)europe-west1(Belgium)asia-northeast1(Tokyo)
Different regions may have different model availability and pricing. Check the Vertex AI locations documentation for details.
Authentication options
- Service account (recommended)
- API key
Provide the path to your service account JSON key file:Set the environment variable to the absolute path:The provider automatically uses the
google/auth library to obtain Bearer tokens from your service account credentials.Complete configuration example
Here’s a complete Standard mode configuration:.env file:
Per-provider overrides
All Vertex AI providers share the samevertex configuration by default. If you need different settings for a specific provider (such as using a different region for Anthropic models), add a provider-specific override:
vertex config and overrides only the specified values.
Available provider keys
vertex-geminivertex-anthropicvertex-metavertex-mistralvertex-deepseekvertex-ai21vertex-kimivertex-minimaxvertex-openaivertex-qwenvertex-zai
Supported model providers
Standard mode supports all Vertex AI model providers:- Google Gemini - Native Google models
- Anthropic Claude - Claude 3 and 3.5 models
- Meta Llama - Llama 3 and 4 models
- Mistral - Mistral and Codestral models
- DeepSeek - DeepSeek V3 models
- AI21 - Jamba models
- Kimi - Kimi K2 models
- MiniMax - MiniMax models
- OpenAI OSS - Open source GPT models
- Qwen - Qwen 2.5 models
- ZAI - GLM models
Express mode only supports Google Gemini models. Use Standard mode if you need access to partner model providers.
Next steps
Authentication
Learn more about service account and API key authentication
Express mode
See how to configure API-key-only Express mode