An integration package connecting xAI and LangChain
Project Links
Meta
Requires Python: <4.0.0,>=3.10.0
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
Topic
- Scientific/Engineering :: Artificial Intelligence
langchain-xai
Looking for the JS/TS version? Check out LangChain.js.
Quick Install
uv add langchain-xai
๐ค What is this?
This package contains the LangChain integrations for xAI through their APIs.
๐ Documentation
For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.
๐ Releases & Versioning
See our Releases and Versioning policies.
๐ Contributing
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
For detailed information on how to contribute, see the Contributing Guide.
Resources
- LangChain Academy โ comprehensive, free courses on LangChain libraries and products, made by the LangChain team
- Code of Conduct โ community guidelines and standards
1.3.0
Jul 21, 2026
1.2.2
Jan 26, 2026
1.2.1
Jan 05, 2026
1.2.0
Jan 02, 2026
1.1.0
Nov 24, 2025
1.0.0
Oct 17, 2025
1.0.0a1
Oct 02, 2025
0.2.5
Jul 22, 2025
0.2.4
May 27, 2025
0.2.3
Apr 11, 2025
0.2.2
Mar 20, 2025
0.2.1
Feb 17, 2025
0.2.0
Jan 10, 2025
0.1.1
Dec 18, 2024
0.1.0
Nov 13, 2024
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
aiohttp
(<4.0.0,>=3.9.1)
langchain-core
(<2.0.0,>=1.5.0)
langchain-openai
(<2.0.0,>=1.1.7)
requests
(<3.0.0,>=2.0.0)