npm / @ai-sdk/google-vertex
@ai-sdk/google-vertex
What changed in @ai-sdk/google-vertex 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
13 breaking7 security2 deprecations56 new APIs and options2 performance22 behavior and defaults27 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ai-sdk/google-vertex 569 changes
Breaking changes 6
Forced tool use is unsupported:
requiredand named tool choices fall back toauto, whilestructuredOutputMode: 'jsonTool'falls back to native structured outputs, each with a warning.Together AI Gemini image inputs are marked unsupported with the current single-image request mapping.
Support for Imagen models and their integration was dropped following the API shutdown.
All packages are ESM-only; consumers using require() must switch to ESM import syntax.
File part data is now tagged with a type, and the image part type has been removed.
The minimum supported Node.js version is 22; supported versions are 22, 24, and 26.
Security 6
Exposes MCP server support for Google Vertex Interactions models; MCP server header values are redacted from telemetry.
Add a fetch option so downloads can use a custom transport, including guarded-fetch for opt-in DNS validation on Node.js.
Keep tool-result downloads separate from provider authentication wrappers so file hosts do not receive Vertex Express Mode API keys.
Off-origin image downloads now use the validated download transport, preserving Node.js DNS validation and manual redirect handling in built-in authentication wrappers. Explicit custom fetch implementations and the browser redirect fallback remain supported.
The maas provider sends Google Cloud credentials only to its own API, not to image URLs from a response or their redirects.
When toolChoice is none, Google provider-defined tools are omitted so disabled tools cannot retrieve data or execute server-side; function declarations needed by conversation history are preserved while function calling is disabled.
Deprecations 1
A warning is now thrown when strict is true for vertexAnthropic.
New APIs and options 27
Adds support for the gemini-4-carbon model with the same capabilities as gemini-4-argon.
Adds an opt-in allowing auto to use native structured output for Claude 4.5 and newer when enabled by Google Cloud policy; tool emulation remains the default.
Adds a provider option and provider metadata to resume responses that used up their maxOutputTokens budget.
Adds gemini-4-argon as a model id.
Exposes the first request's prompt token count in provider metadata.
Adds Claude Haiku 5.5 as a supported model, with a 128k maximum output token limit, adaptive thinking, and five effort levels.
Adds the gemini-nano-banana-2.1 model ID for use with Google models.
Adds experimental streaming lifecycle callbacks for speech generation and transcription telemetry.
Adds the Claude Sonnet 5.5 model ID to @ai-sdk/google-vertex.
Claude Sonnet 5.5 adds the
between_toolsthinking type. Disabled thinking andreasoning: 'none'map to it, budget-based thinking converts to adaptive thinking, andxhighandmaxeffort are lowered tohighwith a warning.Adds Claude Fable 5.1 model IDs to the Vertex provider.
Adds the gemini-3.8-flash model for use with @ai-sdk/google-vertex.
Adds unary transcription via generateContent, with language detection, speaker diarization, word timestamps, and custom vocabulary.
Adds streaming transcription over the Live API WebSocket, with VERBATIM or SMART transcription formatting.
Added support for Anthropic tool search tools on Google Vertex.
Added this model to the Google Vertex provider.
Added support for gemini-embedding-2 and routed it to the :embedContent endpoint, which the model supports.
Added support for gemini-embedding-2-preview and routed it to the :embedContent endpoint, which the model supports.
Added Gemini text-to-speech model support.
Added Google Cloud Speech-to-Text transcription model support.
Added Grok models to the Vertex provider.
Added support for MaaS models in the Google Vertex provider.
Vertex Gemini models now support EU and US multi-region endpoints.
Vertex MaaS models now support regional endpoints.
Added the ability to override Vertex Anthropic auth token generation.
Provider model classes now expose this static method to support deserialization across workflow step boundaries.
Provider model classes now expose this static method to support serialization across workflow step boundaries.
Performance 2
Construction of provider validation schemas is deferred until first use to reduce package import time.
Google auth token generators are created per provider instance to avoid recreating Node GoogleAuth clients across repeated requests.
Behavior and default changes 12
Suggestions are derived from provider model catalog declarations, so catalog updates automatically update autocomplete while preserving endpoint-specific lists and support for custom model IDs.
The function returned by createDownload can be used as experimental_download with generateText and streamText, and the hook now handles generated file URLs.
These settings now support promises and synchronous or asynchronous callbacks, resolving credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.
@ai-sdk/google-vertex now supports Google Auth Library 11.
Requests that reach the per-request cap (CONTINUATION) are continued automatically, with usage summed across requests.
With the Interactions API, polls background: true model calls until they finish.
Top-level embedding dimensions are mapped to provider settings, allowing providers to receive the requested dimensions.
Thinking can be disabled up to high effort; xhigh and max are lowered to high with a warning when thinking is disabled. Token budgets are converted to adaptive thinking with a warning.
Adds telemetry to speech generation and transcription, with provider usage propagation.
Capability declarations now use confirmed model IDs, leaving unrecognized model names unknown; asynchronous lookups and middleware overrides can also resolve to unknown.
Capability declarations now include single-image editing support for Together AI FLUX.2 Pro and Flex.
The headers field is now optional in provider config types, allowing manually constructed model configs to omit it.
Fixes and other changes 15
Adds the model ID to the Vertex catalog, including it in model suggestions and generated capability documentation.
Custom download requests receive the call's abort signal, preserving cancellation and timeouts for prompt assets and generated files.
Passes Google labels through to Google and Vertex AI Interactions requests, including streaming, so callers can attach request metadata such as safety_identifier.
Fixes surfacing errors that occur during streaming.
Fixes hostname-part validation by using isValidHostnamePart.
Uses a standards-compliant User-Agent header.
Capability declarations now advertise file-input support for QuiverAI Arrow 2 and Arrow 2 Telos.
Supported Vertex tool result URLs are now forwarded as function response file data.
Corrects the advertised supported per-call limit for Gemini images.
Fixes downloading tool result file URLs.
Unclassified empty image results are retried, so these results no longer necessarily end an attempt without retrying.
Google Vertex prompt blocks are marked as terminal.
The default output token setting for Llama 4 was fixed.
Vertex text embedding models now advertise a batch limit of 250.
Project IDs set when creating a provider instance are now propagated.
@ai-sdk/google-vertex 441 changes
Breaking changes 4
Choose another transport for tool result downloads; the provider
fetchoption is no longer used for them, and a custom transport must perform equivalent connect-time DNS validation.Limits Google Vertex tool result file downloads to 7 MiB by default, down from 2 GiB; raise the limit for larger files.
Google Vertex content-filtered results are treated as terminal rather than retryable.
Use model.embeddingModel('my-model-id') to create an embedding model; textEmbeddingModel was replaced and its aliases are deprecated.
Security 1
Invalid Cloud Speech transcription regions and default locations are rejected before credential resolution or requests, preventing URL delimiters from redirecting bearer tokens and audio to another host.
Deprecations 1
textEmbeddingModel and textEmbedding are deprecated aliases; use embeddingModel instead.
New APIs and options 22
Adds the claude-haiku-5-5 model ID to @ai-sdk/google-vertex; the model is recognized with a 128k maximum output token limit and all five effort levels.
Adds the
between_toolsthinking type, the lowest thinking setting onclaude-sonnet-5-5.Adds the gemini-3.8-flash model to the Google provider.
Adds unary transcription via generateContent, with language detection, speaker diarization, word timestamps, custom vocabulary, and VERBATIM or SMART formatting.
Adds claude-opus-4-5@20251101 to Google Vertex Anthropic models.
Adds claude sonnet 4.5 to the Google Vertex Anthropic provider.
Adds EmbeddingModelV3 support.
Adds the enterpriseWebSearch tool.
Adds express mode support.
Adds extended token usage support.
Adds gemini-3-flash support.
Adds the gemini-3-pro-image-preview model ID.
Adds the gemini-3-pro-preview model ID.
Adds the Google File search tool.
Adds Google Maps grounding tool support for location-aware Gemini responses.
Adds image editing support.
Adds ImageModelV3 support.
Adds support for the imageSize provider option.
Adds LanguageModelV3 support.
Adds a Google Vertex RAG Engine grounding provider tool.
Google Vertex Anthropic can combine tool calling with structured outputs, enabling tools alongside structured JSON output schemas.
Adds tool execution approval support.
Behavior and default changes 7
Automatically continues requests that reach the per-request CONTINUATION cap, sums usage across requests, and exposes the first request's prompt token count.
With the Interactions API, polls background model calls until they finish.
For claude-haiku-5-5, an enabled thinking budget is converted to adaptive thinking with a warning because the model does not support thinking token budgets.
For
claude-sonnet-5-5, budget-based thinking is converted to adaptive thinking.For
claude-sonnet-5-5,structuredOutputMode: 'jsonTool'falls back to native structured outputs with a warning.For
claude-sonnet-5-5, disabled thinking is replaced withbetween_toolsthinking, with a warning.For
claude-sonnet-5-5,requiredand named tool choices fall back toautowith a warning.
Fixes and other changes 6
xhighandmaxeffort are lowered tohighwith a warning because the API rejects them withbetween_tools.Forwards supported GCS tool result URLs as function response file data on Vertex Gemini 3 and later, limited to image, PDF, and text MIME types; HTTP(S) downloads remain supported on all Gemini generations.
Unclassified empty image results are retried, with retry-attempt accounting preserved.
Fixes adding Google Search along with URL context in Vertex AI.
Allows vertex as a key for providerOptions.
Adds ProviderV3 support and specificationVersion to ProviderV3.
@ai-sdk/google-vertex 319 changes
Breaking changes 3
For claude-sonnet-5-5, disabled thinking is replaced with between_tools thinking, with a warning.
Image model settings are no longer configured on the model; maxImagesPerCall is passed directly to generateImage(), while other image settings go in providerOptions[provider].
The Vertex embedding model now uses providerOptions for its options.
New APIs and options 7
Adds the claude-fable-5-2 model ID with the same capabilities as claude-fable-5-1, including 128k max output tokens and native structured outputs by default.
Adds the continuationToken provider option for resuming responses that used up their maxOutputTokens budget.
A provider-independent classification of result retryability is added and preserved through the AI Gateway.
Added support for the imagen-3.0-generate-002 model.
Raw chunk support was added.
Gemini models via the Vertex AI Provider now support reasoning token output.
Provider option schemas were added for Vertex imagegen.
Behavior and default changes 3
For claude-sonnet-5-5, budget-based thinking is converted to adaptive thinking.
Unclassified empty image results are retried, while Google Vertex RAI-filtered results are treated as terminal.
Image model responses now set providerMetaData.
Fixes and other changes 6
Converts enabled thinking with a token budget to adaptive thinking and emits a warning because the model does not support thinking token budgets.
Recognizes the model as having a 128k max output token limit and all five effort levels; when thinking is disabled, xhigh and max effort are lowered to high with a warning.
Diagnostics from completed attempts are preserved.
Google Vertex RAI-filtered results are marked as terminal.
The global region for the Vertex provider was fixed.
Fixed Anthropic support for image URLs in messages.