@ai-sdk/xai 3.0.0-beta.12
The **[xAI Grok provider](https://ai-sdk.dev/providers/ai-sdk-providers/xai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the xAI chat and completion APIs.
@ai-sdk/xai@3.0.0-beta.12 was published on 2025-10-08. Its manifest declares 3 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=18.
All @ai-sdk/xai versions · Permanent reference to 3.0.0-beta.12 · Latest release
Package specifications
| Version | 3.0.0-beta.12 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2025-10-08T19:39:32.116Z |
| Node.js requirement | >=18 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 3 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 184.57 KiB |
| Published file count | 10 |
| Package type | Not declared |
| ES module entry | ./dist/index.mjs |
| Default entry | ./dist/index.js |
| Side effects declaration | false |
| Direct advisories | Unknown |
| Resolved graph dependencies | Unknown |
| Repository stars | Unknown |
| Repository forks | Unknown |
Install @ai-sdk/xai 3.0.0-beta.12
npm install @ai-sdk/xai@3.0.0-beta.12 pnpm add @ai-sdk/xai@3.0.0-beta.12 yarn add @ai-sdk/xai@3.0.0-beta.12
Runtime dependencies
- @ai-sdk/provider 3.0.0-beta.6
- @ai-sdk/provider-utils 4.0.0-beta.11
- @ai-sdk/openai-compatible 2.0.0-beta.11
Peer requirements
- zod ^3.25.76 || ^4.1.8
Optional dependencies
- None declared
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/%40ai-sdk%2Fxai/3.0.0-beta.12 — retrieved 2026-10-31T15:03:54.455Z