# @ai-sdk/xai@5.0.39

Category: agent-infrastructure
Published: 2026-11-05T01:18:23Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fxai%405.0.39)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-05T04:17:52.748Z
Tags: vercel, ai-sdk, typescript

## Human Summary
Vercel AI SDK's @ai-sdk/xai package has been updated to version 5.0.39, adding server-side realtime WebSocket extensions, transcription word timing controls, and typed upload URL delivery for video operations.

## Agent Summary
@ai-sdk/xai@5.0.39 updates XaiRealtimeModel to support getServerWebSocketConfig() with OpenAI-compatible realtime wire-shaped usage mapping. It also adds timestampGranularities configuration for transcriptions and enforces camelCase HTTPS output.uploadUrl for video flows.

## Body
Version 5.0.39 of @ai-sdk/xai introduces patch-level enhancements across realtime, transcription, and video capabilities. XaiRealtimeModel now implements getServerWebSocketConfig(), which supplies upstream voice realtime WebSocket URLs with header authorization and rejects unsupported endpoint intents. Event mapping now accurately handles normalized usage on response-done and input-transcription-completed events. Additionally, optional transcription word timings are now exposed separately alongside timestampGranularities support. For video operations (generation, editing, extension), output.uploadUrl delivery is typed and requires an HTTPS URL while rejecting null values.

## Recommended actions
- Update @ai-sdk/xai to version 5.0.39 if using xAI realtime models or video upload features.
- Verify video generation options use camelCase output.uploadUrl with a valid HTTPS URL instead of raw passthrough values.
- Configure timestampGranularities if word-level transcription timing is required.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.