@ai-sdk/gateway
4.0.139 · 9 Nov 2026Apache-2.044M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 4.x4.0.139No known advisoryLatest line
- 3.x3.0.232No known advisoryTo 4.0.139
- 2.x2.0.177No known advisoryTo 4.0.139
- 1.x1.0.41No known advisoryTo 4.0.139
Latest releases
All 579 releases- 4.x · latest line
4.0.139
9 Nov 2026provider/gateway: Type the headquarters provider option
4.0.137 – 4.0.1382 releases with no change for you1 dependency updates, 1 maintenance@ai-sdk/provider-utils 5.0.76@ai-sdk/provider 4.0.37Show each
- 4.0.1387 Nov 2026@ai-sdk/provider-utils 5.0.76@ai-sdk/provider 4.0.37
- 4.0.1376 Nov 2026docs, tests or tooling
4.0.136
5 Nov 2026Add opt-in streaming decoding of large generated images to reduce peak memory.
Set
providerOptions.gateway.experimental_streamingImageDecodingtotrueto decode canonical base64 images of at least 64 KiB while reading the response. Extracted images are returned asUint8Array; smaller images stay base64 strings, and mixed results are normalized to bytes. The client option is not forwarded to the service.Default behavior preserves the API's base64 representation. Opting in changes the model result representation and replaces large image data with placeholders in validation errors. Accessing
GeneratedFile.base64can require re-encoding the extracted bytes.Preserve optional normalized word timings returned by transcription responses and warn when shared timestampGranularities requests are not forwarded by the gateway adapter.
Accept explicit uploaded-video outcomes in video generation and status responses.
Patch Changes
Add opt-in streaming decoding of large generated images to reduce peak memory.
Set
providerOptions.gateway.experimental_streamingImageDecodingtotrueto decode canonical base64 images of at least 64 KiB while reading the response. Extracted images are returned asUint8Array; smaller images stay base64 strings, and mixed results are normalized to bytes. The client option is not forwarded to the service.Default behavior preserves the API's base64 representation. Opting in changes the model result representation and replaces large image data with placeholders in validation errors. Accessing
GeneratedFile.base64can require re-encoding the extracted bytes.Preserve optional normalized word timings returned by transcription responses and warn when shared timestampGranularities requests are not forwarded by the gateway adapter.
Accept explicit uploaded-video outcomes in video generation and status responses.
Pass through
seed: 0instead of dropping it in image and video models. KlingAI now reportsseed: 0as an unsupported setting like any other seed.Feat (provider/gateway): implement server-side realtime connection descriptors
GatewayRealtimeModelnow implementsgetServerWebSocketConfig(), returning the AI Gateway realtime WebSocket URL plusAuthorizationheader auth and optional team scoping for trusted server-side clients. Unsupported endpoint intents are rejected on the normalized realtime route.Server WebSockets reuse HTTP authentication, protocol, team and custom headers, including OIDC auth-method metadata.
Add marketCost, surchargeCost, and gatewayCost fields to getGenerationInfo() results, surfacing the corresponding fields from the AI Gateway generation lookup API.
The cost breakdown fields are optional and omitted when unavailable, preserving compatibility with older responses and distinguishing missing data from a zero cost.
Dependency tracking · free for 3 projects
Know when your own dependencies move
@ai-sdk/gateway shipped 2 new majors in the last 12 months, among 529 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 9 Nov 2026. Releases and advisories last read 9 Nov 2026.