← AI PulseSep 2, 2026

Wire · news · Single-source brief

Vercel AI SDK @ai-sdk/xai@4.0.54 Updates Batch Input File Handling

The Vercel AI SDK's @ai-sdk/xai package, version 4.0.54, now surfaces uploaded input file details and accepts an expiration option for batch operations.

By Illumora Editorial

Source · Sep 2, 2026, 8:31 PM · On Illumora · Sep 2, 2026, 8:37 PM

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

Rewritten from one allowlisted primary — not independent enterprise reporting. 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.54 · vercel/ai
Save

The Vercel AI SDK has released version 4.0.54 of its @ai-sdk/xai package. This update, released on September 2, introduces new functionality for handling input files in batch operations.

Key Points

  • The @ai-sdk/xai package is updated to version 4.0.54.
  • The update was released on September 2.
  • Batch start results now surface the uploaded input file.
  • This information is available via providerMetadata.<provider>.inputFileId and inputFileExpiresAt.
  • A new inputFileExpiresAfter provider option is accepted for OpenAI and xAI batch input file uploads.

Context

According to the Vercel AI SDK changelog, this update enhances the visibility and control over input files used in batch processing. Developers can now access identifiers and expiration timestamps for their uploaded files directly from the batch start result.

Why It Matters

This update provides developers with more detailed information and control over the lifecycle of input files in batch AI operations, potentially improving management and debugging for OpenAI and xAI integrations.

What To Do

  • Review the providerMetadata.<provider>.inputFileId and inputFileExpiresAt fields in batch start results.
  • Consider using the inputFileExpiresAfter option when uploading batch input files for OpenAI and xAI.
  • Test batch workflows with the @ai-sdk/xai@4.0.54 package to observe the new behavior.