An integration package connecting xAI and LangChain
Project Links
Meta
Requires Python: <4.0.0,>=3.10.0
Classifiers
langchain-xai
Looking for the JS/TS version? Check out LangChain.js.
Quick Install
pip install 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.
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.2.7)
langchain-openai
(<2.0.0,>=1.1.7)
requests
(<3.0.0,>=2.0.0)