@ai-sdk/gateway breaking changes
@ai-sdk/gateway 4.0.152 (November 20, 2026) is its newest release with breaking changes. The first: Signature changed GatewayProvider.experimental_realtime. Every breaking API change we have recorded in @ai-sdk/gateway on npm: 33 breaking changes in 12 versions. Below, its 12 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.163. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@ai-sdk/gateway 4.0.152 breaking changes
- Signature changed
GatewayProvider.experimental_realtime
Was experimental_realtime: Experimental_RealtimeFactoryV4; now experimental_realtime: GatewayRealtimeFactory. npmjs.com
@ai-sdk/gateway 4.0.151 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'google/gemini-decision-1' | 'heygen/heygen-decision-1' | 'heygen/heygen-decision-1-turbo' | 'liquid/d1' |... npmjs.com - Signature changed
GatewayEmbeddingModelId
Was type GatewayEmbeddingModelId = 'alibaba/qwen3-embedding-0.6b' | 'alibaba/qwen3-embedding-4b' | 'alibaba/qwen3-embedding-8b' | 'amazon/titan-embed-text-v2' | 'cohere/embed-v4.0' | 'cohere/embed-v5.0-fast' | 'cohere/embed-v5.0-pro' |... npmjs.com - Signature changed
GatewayExtractionModelId
Was type GatewayExtractionModelId = string & {}; now type GatewayExtractionModelId = GatewayModelIds['extraction'] | (string & {}). npmjs.com - Signature changed
GatewayImageModelId
Was type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-3-image' | 'bfl/flux-3-image-klein' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' |... npmjs.com - Signature changed
GatewayRealtimeModelId
Was type GatewayRealtimeModelId = 'elevenlabs/eleven-realtime-v1-max' | 'elevenlabs/eleven-realtime-v1-mini' | 'google/gemini-3.8-live' | 'google/gemini-3.8-live-extended-thinking' | 'openai/gpt-live-1' | 'openai/gpt-realtime-1.5' |... npmjs.com - Signature changed
GatewayRerankingModelId
Was type GatewayRerankingModelId = 'cohere/rerank-v3.5' | 'cohere/rerank-v4-fast' | 'cohere/rerank-v4-pro' | 'cohere/rerank-v5-fast' | 'cohere/rerank-v5-pro' | 'voyage/rerank-2.5' | 'voyage/rerank-2.5-lite' | 'voyage/rerank-3' |... npmjs.com - Signature changed
GatewaySpeechModelId
Was type GatewaySpeechModelId = 'elevenlabs/eleven-flash-v2' | 'elevenlabs/eleven-flash-v2.5' | 'elevenlabs/eleven-multilingual-v2' | 'elevenlabs/eleven-v3' | 'elevenlabs/eleven-v3-conversational' | 'elevenlabs/eleven-v4' |... npmjs.com - Signature changed
GatewayTranscriptionModelId
Was type GatewayTranscriptionModelId = 'elevenlabs/scribe-v2' | 'elevenlabs/scribe-v2-realtime' | 'fish-audio/transcribe-1' | 'google/gemini-3.5-transcribe' | 'google/gemini-3.5-transcribe-live' | 'microsoft/mai-transcribe-2' |... npmjs.com - Signature changed
GatewayVideoModelId
Was type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'alibaba/wan-v2.7-r2v' |... npmjs.com
@ai-sdk/gateway 4.0.150 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'google/gemini-decision-1' | 'heygen/heygen-decision-1' | 'heygen/heygen-decision-1-turbo' | 'liquid/d1' |... npmjs.com - Signature changed
GatewayImageModelId
Was type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-3-image' | 'bfl/flux-3-image-klein' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.149 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'google/gemini-decision-1' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com - Signature changed
GatewayVideoModelId
Was type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'alibaba/wan-v2.7-r2v' |... npmjs.com
@ai-sdk/gateway 4.0.148 breaking changes
- Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.147 breaking changes
- Behavior changed
GatewayInternalServerError
AI Gateway access_policy_denied responses (HTTP 403) now raise the new GatewayAccessPolicyDeniedError instead of GatewayInternalServerError. Code that catches GatewayInternalServerError for these responses should check... github.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
@ai-sdk/gateway 4.0.146 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'google/gemini-decision-1' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.144 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' | 'nace-ai/drex-max-finance' |... npmjs.com - Signature changed
GatewayImageModelId
Was type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-3-image' | 'bfl/flux-3-image-klein' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' |... npmjs.com
And 2 more in this version.
@ai-sdk/gateway 4.0.143 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' | 'openai/gpt-6-luna-decisions' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.142 breaking changes
- Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.141 breaking changes
- Signature changed
GatewayDecisionModelId
Was type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' | 'openai/gpt-6-luna-decisions' |... npmjs.com - Signature changed
GatewayModelId
Was type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' |... npmjs.com
@ai-sdk/gateway 4.0.139 breaking changes
- Signature changed
GatewayLanguageModelOptions
Was type GatewayProviderOptions<QUESTION_ID extends string = string> = {[key: string]: unknown; byok?: Record<string, Array<Record<string, unknown>>>; caching?: 'auto'; experimental_streamingImageDecoding?: boolean... npmjs.com - Signature changed
GatewayProviderOptions
Was type GatewayProviderOptions<QUESTION_ID extends string = string> = {[key: string]: unknown; byok?: Record<string, Array<Record<string, unknown>>>; caching?: 'auto'; experimental_streamingImageDecoding?: boolean... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.