langchain-xai 1.3.0


pip install langchain-xai

  Latest version

Released: Jul 21, 2026


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

PyPI - Version PyPI - License PyPI - Downloads Twitter

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

Wheel compatibility matrix

Platform Python 3
any

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)