UPDATEvercel-ai-sdk 6.0.339
Vercel AI SDK ai@6.0.339 refreshes Gateway model suggestions
The Vercel AI SDK release notes for ai@6.0.339 backport Gateway model-settings updates to v6. The patch adds one language model ID and one image model ID, removes one older language model ID, and aligns @ai-sdk/gateway@3.0.244. Teams using Gateway model strings should review removed IDs and verify completion after upgrading.
What changed in this release
18 checkpoints in 4 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Language-model completion
- `google/gemini-4-neon-fast` is added to `GatewayModelId` and can appear in IDE completion for `@ai-sdk/gateway` model strings.
- `anthropic/claude-sonnet-4.5-batch` is removed from `GatewayModelId`, so older strings need review.
- Language model settings are regenerated from the upstream Gateway model list through the update workflow.
- Run type checking after upgrading to locate code that still references the removed model ID.
- Confirm a replacement path for workflows that still need the removed batch ID before upgrading.
Image-model completion
- `recraft/recraft-v4.1-flash-v2` is added to `GatewayImageModelId`.
- The new image model ID also joins `@ai-sdk/gateway` IDE completion.
- Image model settings are updated by the same model-list workflow.
- After upgrading, check compilation or completion with an image model string.
Dependency alignment
- This release is the `ai@6.0.339` patch.
- Dependency updates include the image model-settings change in commit `0ba4941`.
- Dependency updates include the language model-settings change in commit `2b42bf5`.
- The release aligns `@ai-sdk/gateway@3.0.244`.
- These settings changes are backports to the v6 maintenance line.
Upgrade verification
- Upgrade the project's `ai` dependency to `6.0.339`.
- Regenerate the lockfile and confirm that the Gateway package resolves to `3.0.244`.
- Search all model strings and handle the removed batch ID first.
- Verify one language call and one image call to confirm that existing paths still work.
On this page
ContextThis patch refreshes Gateway model IDs and removes one older entry
Teams using `@ai-sdk/gateway` see model strings in editor completion and TypeScript unions. Vercel AI SDK ai@6.0.339 adds one language ID, removes one, and adds one image ID. It is a v6 backport of generated model-settings updates.
The four groups are language-model completion, image-model completion, dependency alignment, and upgrade verification. The figure below shows their distribution across the inventory. The next sections turn each group into concrete upgrade and acceptance steps for teams that use Gateway model strings.
Language completion gains one ID and loses one older ID
- `google/gemini-4-neon-fast` joins `GatewayModelId` and `@ai-sdk/gateway` IDE completion.
- `anthropic/claude-sonnet-4.5-batch` is removed from `GatewayModelId` and needs review.
- Search for the removed ID, then run type checks and verify its replacement.
Image completion adds a Recraft model ID
- `recraft/recraft-v4.1-flash-v2` joins `GatewayImageModelId`.
- The ID enters `@ai-sdk/gateway` IDE completion through the same update.
- Check completion or compilation, then run an existing image call.
The upgrade centers on dependency alignment and removed-ID checks
- `ai@6.0.339` updates dependencies through `0ba4941` and `2b42bf5`.
- It aligns `@ai-sdk/gateway@3.0.244`; both changes are v6 backports.
- Upgrade and rebuild the lockfile, then check removed IDs, types, and one call per modality.
Peer SDKs expose new model IDs through different surfaces
The difference is where a new ID appears: a model union, a Responses model choice, or an interaction enum. That surface determines which editor and type-checking path a developer should inspect after upgrading. It also explains why the same maintenance task does not produce the same visible change across SDKs.
Read the table by your entry point, not by cell count. Use AI SDK completion for cross-provider Gateway strings and a vendor SDK for direct vendor API calls. The releases are not feature-equivalent. This is an AIGenLab view, not independently tested.
| Update point | Vercel AI SDK ai@6.0.339 | OpenAI Node v7.64.0 | Anthropic SDK sdk-v1.7.0 | Google Gen AI SDK v3.3.0 |
|---|---|---|---|---|
| Model-ID catalog update | Adds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch; notes IDE completion | Adds healthcare model IDs for Responses | Adds claude-fable-5-2 and claude-mythos-5-2 | Adds gemini-4-hydrogen to Interactions Model enum |
v6 receives the catalog backport on Gateway 3
This is a maintenance-line backport, not a transfer of every v7 capability. The releases align different Gateway majors, so read the dependency baseline and model-file changes separately before treating the versions as equivalent. The table below keeps those two questions apart.
Check whether language and image IDs moved together and which Gateway major is locked. The v7 release also replaced an ID absent from the v6 diff, so the rows are related but not identical. That extra replacement is shown only in the previous-version column.
| Feature | 7.0.184 | 6.0.339 |
|---|---|---|
| Release line | v7 stable | v6 backport |
| Gateway dependency | @ai-sdk/gateway@4.0.157 | @ai-sdk/gateway@3.0.244 |
| Language model IDs | Adds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch; replaces nace-ai/drex-v2.0 with nace-ai/drex-max-v1.2 | Adds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch |
| Image model ID | Adds recraft/recraft-v4.1-flash-v2 | Adds recraft/recraft-v4.1-flash-v2 |
| Settings source | Regenerated from upstream list; notes IDE completion | Same source; marked v6 backport |
Release analysisGateway model-string teams should upgrade first
Teams using `@ai-sdk/gateway` model strings and relying on types or completion have the most reason to upgrade in a normal patch window. Review the removed ID first. Teams on other provider entry points can wait for their next planned upgrade. This is an AIGenLab view, not independently tested.
OpenAI Node v7.64.0 adds Responses IDs, Anthropic SDK sdk-v1.7.0 adds two Claude IDs, and Google Gen AI SDK v3.3.0 extends the Interactions Model enum. AI SDK ai@6.0.339 serves cross-provider Gateway strings and editor completion, so compare exposed surfaces rather than ranking features.
Search for the removed ID, upgrade and rebuild the lockfile, run type checks, then exercise one language and one image call. Treat this as catalog maintenance, not a performance upgrade, and do not copy another vendor's enum into Gateway strings. This is an AIGenLab view, not independently tested.
AIGenLab views
Not independently testedTreat this as Gateway catalog maintenance: teams using the affected model strings can upgrade in a normal patch window, while others can follow their regular schedule.
The release lists dependency updates and the commit diffs focus on model-settings files; AIGenLab view, not independently tested.
For acceptance, search for the removed ID first, then rebuild the lockfile, run type checking, and exercise one language and one image call.
The diffs show one removed language ID plus one added language ID and one added image ID; AIGenLab view, not independently tested.
Do not treat these catalog changes as a performance upgrade or copy model enums directly across SDKs.
The primary sources show model-settings and dependency changes, and each SDK exposes a different public surface; AIGenLab view, not independently tested.
Official sources and scope
- Vercel AI SDK ai@6.0.339 release Version, publication time, patch classification, both dependency updates, and @ai-sdk/gateway@3.0.244.
- @ai-sdk/gateway@3.0.244 release Both Gateway model-settings changes and their v6 backport labels.
- Vercel commit 0ba4941 The recraft/recraft-v4.1-flash-v2 image model ID, generation workflow, and IDE completion note.
- Vercel commit 2b42bf5 The language model ID addition and removal, generation workflow, and IDE completion note.
- Vercel AI SDK ai@7.0.184 release The previous version, dependency updates, and @ai-sdk/gateway@4.0.157 for the vertical comparison.
- @ai-sdk/gateway@4.0.157 release The two model-settings updates in the previous Gateway package.
- Vercel commit 3d45b09 Vertical evidence that the previous release added recraft/recraft-v4.1-flash-v2.
- Vercel commit c39dedf Vertical evidence for the previous language ID addition, removal, and additional nace-ai ID replacement.
- OpenAI Node v7.64.0 release Horizontal comparison: healthcare model IDs added for Responses.
- Anthropic TypeScript SDK sdk-v1.7.0 release Horizontal comparison: claude-fable-5-2 and claude-mythos-5-2 added.
- Google Gen AI JavaScript SDK v3.3.0 release Horizontal comparison: gemini-4-hydrogen added to the Interactions Model enum.
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.