← AI PulseAug 15, 2026

Wire · news · Multi-source brief

Vercel AI SDK Updates for Moonshot AI and xAI Providers

Vercel has released updates for its AI SDK, including schema normalization for Moonshot AI's MFJS validator and new text-to-speech features for xAI, both released on August 15.

By Illumora Editorial

Source · Aug 15, 2026, 6:54 PM · On Illumora · Aug 15, 2026, 6:58 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@3.0.35 · vercel/ai
Save

Vercel's AI SDK received updates on August 15, enhancing its integration with Moonshot AI and xAI. The @ai-sdk/moonshotai@3.0.35 release focuses on normalizing tool schemas for Moonshot AI's MFJS validator, while the @ai-sdk/xai@4.0.40 release introduces new text-to-speech capabilities and improved error handling for xAI.

Key Points

  • The @ai-sdk/moonshotai@3.0.35 release normalizes tool schemas for Moonshot AI's MFJS validator.
  • Tuple items arrays become prefixItems in the normalized schema for Moonshot AI.
  • The type next to anyOf moves into the branches for Moonshot AI schemas.
  • Non-object root schemas for Moonshot AI now result in a client-side error instead of an opaque 400 from Moonshot.
  • The original schema is still used for AI SDK result validation with Moonshot AI.
  • The @ai-sdk/xai@4.0.40 release adds withTimestamps and replace provider options for xAI text-to-speech.
  • withTimestamps exposes duration, content type, and character-level alignment via providerMetadata.xai for xAI speech responses.
  • providerMetadata.xai.traceId (from the x-trace-id header) is now returned on every xAI speech response.
  • Text-to-speech error parsing for xAI has been improved, providing real error details in APICallError messages.

Context

According to the Vercel AI SDK Changelog, these updates aim to improve the developer experience by addressing specific integration challenges with Moonshot AI and enhancing the functionality and error reporting for xAI's text-to-speech services. The schema normalization for Moonshot AI helps prevent opaque 400 errors by providing clearer client-side feedback.

Why It Matters

These updates provide developers using the Vercel AI SDK with more robust and predictable interactions when integrating with Moonshot AI for tool use and with xAI for text-to-speech functionalities. The improvements in error handling and metadata exposure can streamline debugging and enhance the quality of applications built on these platforms.

What To Do

  • Review the updated documentation for @ai-sdk/moonshotai regarding tool schema definitions.
  • Test existing Moonshot AI integrations to ensure compatibility with the new schema normalization.
  • Explore the withTimestamps and replace options for xAI text-to-speech in the AI SDK.
  • Implement error handling to leverage the improved APICallError messages from xAI text-to-speech.

Keep Exploring

/studio?pack=foundation