xAI's fast coding model trained specifically for agentic coding, currently in early access. The model slug is grok-build-0.1.
xAI
What's Changed
- feat: add prepare_extension() for batch video extension by @double-di in https://github.com/xai-org/xai-sdk-python/pull/141
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.12.2...v1.13.0
Grok Build is now available in beta. Use the interactive TUI, run headlessly in scripts, or build apps and orchestrators with the Agent Client Protocol.
Install with a single command:
curl -fsSL https://x.ai/cli/install.sh | bashWhat's Changed
- Add none and medium reasoning effort levels by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/139
- Bump version from 1.12.1 to 1.12.2 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/140
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.12.1...v1.12.2
You can now clone a voice from a short audio clip and use it across the Text-to-Speech and Voice Agent APIs. Create and manage your voice catalog from the xAI console.
What's Changed
- Update the CHANGELOG with missing entries by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/135
- Add grok-4.3 to ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/137
- Bump version from 1.12.0 to 1.12.1 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/138
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.12.0...v1.12.1
Every API response now includes the exact cost of the request via a cost_in_usd_ticks field in the usage object. Works across chat completions, Responses API, image generation, video generation, and streaming.
What's Changed
- docs: add video generation and extension documentation to README by @double-di in https://github.com/xai-org/xai-sdk-python/pull/127
- Add collection descriptions, field definition updates, and bytes chunking by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/130
- Add
expires_afterto file uploads, dropteam_idfromFileby @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/131 - Add
cost_usdtracking, model migration, example fixes by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/132 - docs: update default API requests timeout from 15min(900s) to 27min(1620s) by @dcbert in https://github.com/xai-org/xai-sdk-python/pull/101
- Add
cost_usdproperty to image and video responses by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/133 - Prepare to release v1.12.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/134
New Contributors
- @dcbert made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/101
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.11.0...v1.12.0
You can now set an expiration policy on uploaded files using expires_after or an explicit expires_at timestamp. Expired files are automatically deleted.
You can now use grok-voice-think-fast-1.0 with the Voice Agent API. See the blog post for more details.
The xAI Speech to Text API is now generally available. Transcribe audio to text in 25 languages with batch and streaming modes.
What's Changed
- Support inline file attachments by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/122
- Add url support for FileContent by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/123
- Bump version from 1.10.0 to 1.11.0 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/124
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.10.0...v1.11.0
What's Changed
- Add video extension API and reference_image_urls support by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/120
- Prepare to release v1.10.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/121
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.9.1...v1.10.0
What's Changed
- Update grok-4.20 and multi-agent model variants in ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/117
- Bump version from 1.9.0 to 1.9.1 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/118
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.9.0...v1.9.1
What's Changed
- feat: add image/video batch support and input_file_id by @double-di in https://github.com/xai-org/xai-sdk-python/pull/112
- Fix unknown status handling in polling loops by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/113
- Use model type aliases in image and video method signatures by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/114
- Prepare to release v1.9.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/116
New Contributors
- @double-di made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/112
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.8.2...v1.9.0
What's Changed
- Handle video generation failure case by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/110
- Prepare to release v1.8.2 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/111
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.8.1...v1.8.2
The Text-to-Speech API is now generally available. Generate natural-sounding speech from text with Grok.
The Batch API now supports image generation, image editing, and video generation in addition to chat completions. Both server-side tools and client-side function tools are also now supported in batch requests. Image and video URLs in batch results expire after 1 hour.
Enterprise customers can now purchase dedicated API capacity with guaranteed tokens per minute.
What's Changed
- Update grok-4.20 beta and multi-agent model variants in ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/107
- Bump version from 1.8.0 to 1.8.1 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/109
Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.8.0...v1.8.1