← AI PulseSep 1, 2026

Wire · news · Multi-source brief

Vercel AI SDK @ai-sdk/xai@4.0.52 Adds File Operations and Streaming Uploads

Vercel has released version 4.0.52 of its @ai-sdk/xai package, introducing new file management capabilities and support for streaming uploads.

By Illumora Editorial

Source · Sep 1, 2026, 6:34 PM · On Illumora · Sep 1, 2026, 6:37 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/xai@4.0.52 · vercel/ai
Save

Vercel's @ai-sdk/xai package, part of the AI SDK, has been updated to version 4.0.52. This release, dated September 1, introduces several new features for file interaction and management within the xAI files interface.

The update includes functions for retrieving file metadata, streaming file downloads, and deleting files. It also adds support for time-to-live (TTL) settings on uploads and enables streaming data uploads.

Key Points

  • The @ai-sdk/xai package is updated to version 4.0.52.
  • New functionalities include getFileMetadata, downloadFile (streaming), and deleteFile on the xAI files interface.
  • The update supports expiresAfter upload TTLs, which are integers ranging from 3600 to 2,592,000 seconds.
  • Streaming uploads are now supported via { type: 'stream' } data.
  • Upload results expose byteSize, createdAt, and expiresAt properties.
  • All file operations now thread abortSignal and headers.
  • The system rejects or encodes blank and dot-segment file IDs to prevent request path retargeting.

Context

According to Vercel, this release enhances the file handling capabilities within the @ai-sdk/xai component of their AI SDK. The changes improve how files are uploaded, managed, and accessed, particularly by adding streaming support and metadata exposure. The update also includes dependency updates for @ai-sdk/provider@4.0.10 and @ai-sdk/provider-utils@5.0.35.

Why It Matters

This update provides developers with more granular control over file operations and lifecycle management when interacting with xAI services through the Vercel AI SDK. The addition of streaming uploads and explicit TTL settings can optimize data transfer and storage practices.

What To Do

  • Review the @ai-sdk/xai package documentation for details on getFileMetadata, downloadFile, and deleteFile.
  • Experiment with the expiresAfter parameter for file uploads to manage data retention.
  • Test streaming uploads using the { type: 'stream' } data option for large files.
  • Note the new byteSize, createdAt, and expiresAt properties available on upload results.