AIGenLab
EN

UPDATEvercel-ai-sdk 6.0.339

Vercel AI SDK ai@6.0.339 refreshes Gateway model suggestions

Version & typev6.0.339 · Feature
In short

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.

Read the original announcement

On this page
  1. Release inventory
  2. This patch refreshes Gate…
  3. Language completion gains…
  4. Image completion adds a R…
  5. The upgrade centers on de…
  6. Peer SDKs expose new mode…
  7. v6 receives the catalog b…
  8. Release analysis
  9. Sources & method

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.

Distribution across four groups: language-model completion, image-model completion, dependency alignment, and upgrade verification. Area reflects inventory item counts, not importance or code volume.
Where the 18 grouped changes landWhere the 18 grouped changes landLanguage-model completion5Image-model completion4Dependency alignment5Upgrade verification4
AIGenLab original

Language completion gains one ID and loses one older ID

  1. `google/gemini-4-neon-fast` joins `GatewayModelId` and `@ai-sdk/gateway` IDE completion.
  2. `anthropic/claude-sonnet-4.5-batch` is removed from `GatewayModelId` and needs review.
  3. Search for the removed ID, then run type checks and verify its replacement.

Image completion adds a Recraft model ID

  1. `recraft/recraft-v4.1-flash-v2` joins `GatewayImageModelId`.
  2. The ID enters `@ai-sdk/gateway` IDE completion through the same update.
  3. Check completion or compilation, then run an existing image call.

The upgrade centers on dependency alignment and removed-ID checks

  1. `ai@6.0.339` updates dependencies through `0ba4941` and `2b42bf5`.
  2. It aligns `@ai-sdk/gateway@3.0.244`; both changes are v6 backports.
  3. 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 pointVercel AI SDK ai@6.0.339OpenAI Node v7.64.0Anthropic SDK sdk-v1.7.0Google Gen AI SDK v3.3.0
Model-ID catalog updateAdds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch; notes IDE completionAdds healthcare model IDs for ResponsesAdds claude-fable-5-2 and claude-mythos-5-2Adds 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.

Feature7.0.1846.0.339
Release linev7 stablev6 backport
Gateway dependency@ai-sdk/gateway@4.0.157@ai-sdk/gateway@3.0.244
Language model IDsAdds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch; replaces nace-ai/drex-v2.0 with nace-ai/drex-max-v1.2Adds google/gemini-4-neon-fast; removes anthropic/claude-sonnet-4.5-batch
Image model IDAdds recraft/recraft-v4.1-flash-v2Adds recraft/recraft-v4.1-flash-v2
Settings sourceRegenerated from upstream list; notes IDE completionSame 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 tested

Treat 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

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.