LangChain integrations / AI inference / xAI

xAI + LangChain integration

ListedFacts verified 24-11-2026Work at xAI? Claim this page

xAI works with LangChain: chat models and Python package. Usage-based: grok-4.7: US$2.00 per 1M input tokens and US$6.00 per 1M output tokens.
LangChain plan neededNot stated
RegionsNo regional restriction stated
Works with2 LangChain components
PriceUsage fees, no monthly fee reported
Facts last verified24-11-2026

What does xAI do with LangChain?

Diagram of what xAI supports on LangChain: chat models, python package
FactDirectionSource
xAI's models can be used as LangChain chat models.
ChatXAI queries xAI's Grok models.
Direction not stated[s1]
xAI's LangChain integration is available as a Python package.
Package: langchain-xai.
Direction not stated[s1]

Compare other apps: LangChain python package integrations: providers with LangChain python package · LangChain chat models integrations: providers with LangChain chat models

What does xAI not do with LangChain?

How much does xAI cost?

PlanBilling
API usageper-transaction, grok-4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens, usage-based; page shows $ without a currency code, read as USD

What do you need to use xAI with LangChain?

Where else does xAI integrate?

How does xAI compare?

Similar apps for LangChain

Listed alphabetically, not ranked.

See all 19 apps in AI inference for LangChain

xAI and LangChain: common questions

Does xAI integrate with LangChain?

Yes. xAI connects with LangChain, and Lode has verified the details. It supports 2 LangChain components. Facts verified 24-11-2026.

What does the xAI LangChain integration do?

xAI's models can be used as LangChain chat models. xAI's LangChain integration is available as a Python package.

How much does xAI cost to use with LangChain?

Usage fees, no monthly fee reported, from xAI's own published pricing. Details by plan are in the pricing section above.

Sources

  1. https://docs.langchain.com/oss/python/integrations/providers/xai.md (platform docs, retrieved 24-11-2026)
  2. Grok Models & Pricing | SpaceXSI Docs (vendor pricing, retrieved 24-11-2026)

Changelog

Cite this page: Lode (trylode.io), "xAI + LangChain integration", facts verified 24-11-2026. https://trylode.io/langchain/xai/
Machine-readable: JSON. Spot an error? Send a correction.