← AI PulseAug 26, 2026

Deep · news · Multi-source brief

Vercel AI SDK Updates MoonshotAI Integration, Adds Z.AI Provider

Vercel has released updates to its AI SDK, enhancing the MoonshotAI provider with improved structured output and tool call handling, while also introducing a new Z.AI provider with support for GLM chat completions and multimodal inputs.

By Illumora Editorial

Source · Aug 26, 2026, 6:05 PM · On Illumora · Aug 26, 2026, 6:13 PM

Media from the primary source — shown here so you can stay on Illumora.

Synthesized from multiple allowlisted primaries on the same event. Lanes →

Brief drafted by Illumora’s editorial model from the linked primary source. Ops desk reviews flagged pieces. How we write →

Read the source →Vercel AI SDK Changelog — Release @ai-sdk/moonshotai@2.0.51 · vercel/ai
Save

Vercel has updated its AI SDK, specifically the @ai-sdk/moonshotai@2.0.51 package, to refine how it handles Moonshot streaming tool calls and structured outputs. Concurrently, the SDK now includes a new Z.AI provider, offering access to GLM chat completions, streaming, reasoning, tools, and multimodal inputs.

The MoonshotAI update focuses on robustness and validation for Moonshot V1 models, while the Z.AI integration expands the SDK's provider ecosystem, adding support for models like GLM-5.3-Flash.

Key Points

  • The @ai-sdk/moonshotai@2.0.51 package now accepts Moonshot streaming tool calls without indices, preserving choice-level usage.
  • Moonshot structured output schemas are normalized, with strict validation enabled by default in the @ai-sdk/moonshotai@2.0.51 update.
  • The @ai-sdk/moonshotai@2.0.51 release uses native JSON Schema structured outputs for official Moonshot V1 models.
  • Unsupported image and video media types are now rejected before sending Moonshot chat requests.
  • The @ai-sdk/codemod@3.0.8 release introduces a new Z.AI provider, supporting GLM chat completions, streaming, reasoning, tools, and multimodal inputs.
  • The Z.AI provider and AI Gateway now support the GLM-5.3-Flash model.
  • The @ai-sdk/xai@3.0.127 package preserves complete xAI Responses and xAI Chat Completions usage objects in raw usage metadata and streamed results.

Context

According to the Vercel AI SDK Changelog, the @ai-sdk/moonshotai@2.0.51 update includes several patch changes aimed at improving the integration with Moonshot models. These changes address how the SDK handles streaming tool calls, structured outputs, and media type validation. The @ai-sdk/codemod@3.0.8 release, also detailed in the changelog, marks the addition of the Z.AI provider, expanding the range of supported AI models and capabilities within the Vercel AI SDK. This release also notes updates to the @ai-sdk/xai@3.0.127 package, which now preserves usage objects for xAI Responses and Chat Completions.

Why It Matters

These updates provide developers using the Vercel AI SDK with enhanced capabilities for integrating with Moonshot V1 models, particularly concerning structured data and tool use. The introduction of the Z.AI provider broadens the choice of available models, including GLM series, for chat completions and multimodal applications, potentially enabling new use cases for builders.

What To Do

  • Review the @ai-sdk/moonshotai@2.0.51 changelog entry for details on structured output and tool call handling with Moonshot V1 models.
  • Explore the new Z.AI provider in the Vercel AI SDK for GLM chat completions, streaming, reasoning, tools, and multimodal inputs.
  • Note the support for GLM-5.3-Flash within the Z.AI provider and AI Gateway.
  • Examine the @ai-sdk/xai@3.0.127 updates regarding the preservation of xAI Responses and Chat Completions usage objects.

Keep Exploring

/atlas/llama-open /techniques/output-schema /techniques/multimodal-grounding /studio?pack=foundation