vertex configuration block—the provider constant you use determines which API schema and publisher endpoint is selected.
Available providers
The following table shows all supported providers with their publishers and API schemas:| Provider | Constant | Publisher | Schema | Example Models |
|---|---|---|---|---|
| Google Gemini | Vertex::Gemini | google | Gemini | gemini-2.5-flash, text-embedding-005 |
| Anthropic | Vertex::Anthropic | anthropic | Anthropic | claude-3-5-sonnet@20241022, claude-3-5-haiku@20241022 |
| Mistral AI | Vertex::Mistral | mistralai | OpenAI | mistral-small-2503, codestral-2501 |
| Meta | Vertex::Meta | meta | OpenAI | llama-4-scout-17b-16e-instruct-maas |
| DeepSeek | Vertex::DeepSeek | deepseek | OpenAI | deepseek-v3-0324-maas |
| AI21 Labs | Vertex::AI21 | ai21 | OpenAI | jamba-1.5-mini@001, jamba-1.5-large@001 |
| Kimi | Vertex::Kimi | kimi | OpenAI | kimi-k2-0711-maas |
| MiniMax | Vertex::MiniMax | minimax | OpenAI | minimax-m1-40k-0709-maas |
| OpenAI OSS | Vertex::OpenAI | openai | OpenAI | gpt-oss-4o-mini-maas |
| Qwen | Vertex::Qwen | qwen | OpenAI | qwen2.5-72b-instruct-maas |
| ZAI | Vertex::ZAI | zaiorg | OpenAI | glm-4-plus-maas |
API schemas
Prism Vertex uses three different API schemas to handle the different formats used by Vertex AI publishers:Gemini
Google’s native
generateContent and predict endpoints. Supports text, structured output, and embeddings.Anthropic
Uses
:rawPredict with the Anthropic Messages API format. Supports text and structured output.OpenAI
Uses
:rawPredict or :chatCompletions with OpenAI-compatible format. Supports text and structured output.Schema capabilities
| Schema | Text Generation | Structured Output | Embeddings |
|---|---|---|---|
| Gemini | ✓ | ✓ | ✓ |
| Anthropic | ✓ | ✓ | - |
| OpenAI | ✓ | ✓ | - |
How it works
When you use a provider constant, Prism Vertex automatically:- Selects the correct API schema for that provider
- Routes to the appropriate publisher endpoint
- Formats requests and responses according to the schema
You can override the schema if needed using
withProviderOptions(['apiSchema' => VertexSchema::OpenAI]), though this is rarely necessary.Express mode limitations
When using Express mode (API key only, no project ID or location), only Google Gemini models are supported. Using partner providers in Express mode will throw an exception.Next steps
Gemini
Learn about Google Gemini models
Anthropic
Learn about Claude models on Vertex
Mistral
Learn about Mistral AI models
Meta
Learn about Llama models