PyPI · pypi:xai-sdk
xai-sdk active
The official Python SDK for the xAI API
The latest stable version of xai-sdk is 1.21.0, published on 2026-10-23. Verified by Vigia on 2026-11-13.
| Latest stable version | 1.21.0 |
|---|---|
| Published | 2026-10-23 19:46:57 UTC |
| Install | pip install --upgrade xai-sdk |
| Requires | python >=3.10 |
| License | Apache-2.0 |
| Advisories on latest version | none known |
| Last verified | 2026-11-13 20:26:26 UTC |
| Sources | pypi.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the pypi package "xai-sdk", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/pypi/xai-sdk . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-10-23 19:46:57 UTC · 21 days ago |
| Stable releases in the last 12 months | 23 |
| Published versions | 33 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
1.21.0 | 2026-10-23 19:46:57 UTC |
1.20.0 | 2026-09-24 18:05:35 UTC |
1.19.0 | 2026-08-18 18:02:04 UTC |
1.18.0 | 2026-08-13 01:26:38 UTC |
1.17.0 | 2026-06-12 03:44:11 UTC |
1.16.0 | 2026-06-10 17:41:29 UTC |
1.15.0 | 2026-05-30 01:42:14 UTC |
1.14.0 | 2026-05-27 05:15:14 UTC |
1.12.2 | 2026-05-07 00:06:59 UTC |
1.12.1 | 2026-04-30 22:35:35 UTC |
1.12.0 | 2026-04-29 18:42:50 UTC |
1.11.0 | 2026-03-27 18:23:08 UTC |
1.10.0 | 2026-03-24 17:24:55 UTC |
1.9.1 | 2026-03-19 22:57:45 UTC |
1.9.0 | 2026-03-19 01:09:38 UTC |
1.8.2 | 2026-03-16 18:07:27 UTC |
1.8.1 | 2026-03-11 03:04:22 UTC |
1.8.0 | 2026-03-05 06:50:45 UTC |
1.7.0 | 2026-02-18 20:53:22 UTC |
1.6.1 | 2026-01-29 03:13:05 UTC |
Showing the 20 most recent of 30 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
python 3.8 | none |
python 3.9 | none |
python 3.10 | 1.21.0 |
python 3.11 | 1.21.0 |
python 3.12 | 1.21.0 |
python 3.13 | 1.21.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of xai-sdk?
The latest stable version of xai-sdk is 1.21.0, published on 2026-10-23. Verified by Vigia on 2026-11-13.
How do I install the latest version of xai-sdk?
Run pip install --upgrade xai-sdk. The latest stable version is 1.21.0 (verified 2026-11-13).
Is xai-sdk deprecated?
No. xai-sdk is not marked as deprecated in the registry.
Which Python version does xai-sdk require?
xai-sdk 1.21.0 declares this requirement: python >=3.10.
Does xai-sdk 1.21.0 have known vulnerabilities?
No known advisories affect xai-sdk 1.21.0 according to the data Vigia checks.
Is xai-sdk still maintained?
xai-sdk published 23 stable releases in the last 12 months; the most recent was 21 days ago. Activity: active.
Observed changes
- Fri Oct 23 2026 19:48:48 GM +0000 (Coordinated Universal Time) — released 1.20.0 → 1.21.0
Related packages
- nats-py
- opentelemetry-instrumentation-pymongo
- pytest-aiohttp
- docx2txt
- sqlparams
- pipdeptree
- uamqp
- requests-cache
- aws-msk-iam-sasl-signer-python
- valkey
- distributed
- pex
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/pypi/xai-sdk) [](https://vigia.coredls.cloud/pypi/xai-sdk) [](https://vigia.coredls.cloud/pypi/xai-sdk)
For agents
GET https://vigia.coredls.cloud/v1/packages/pypi/xai-sdk
GET https://vigia.coredls.cloud/v1/packages/pypi/xai-sdk/versions/{version}