LangChain integrations / AI inference / xAI
xAI + LangChain integration
ListedFacts verified 24-11-2026Work at xAI? Claim this page
Claim this page, free
Use your xAI email. We'll send one link. Click it and all three xAI pages on Lode (Cloudflare, Cursor, LangChain) are yours to correct.
Using an agent? It can claim and send corrections in one call: claim_vendor on the Lode MCP server.
Check your inbox
We sent a link to . Click it and your pages are claimed. The link works for 24 hours. Resend · Use a different email
Check your inbox soon
We'll email a link to within a day. Click it and your pages are claimed. Use a different email
We'll check this one by hand
That email isn't on xAI's domain (x.ai), so we can't send a claim link straight away. We'll check it and reply within two working days. Use a different email
That link has expired
Links work for 24 hours. Send a new one
Your pages are claimed
Press Fix on anything wrong. With a public link it's published as a sourced fact; without one it shows as "Vendor-reported" with the date. Change emails: on, at most one a week · Turn off
Thanks. We'll use it to keep your pages right.
| LangChain plan needed | Not stated |
|---|---|
| Regions | No regional restriction stated |
| Works with | 2 LangChain components |
| Price | Usage fees, no monthly fee reported |
| Facts last verified | 24-11-2026 |
What does xAI do with LangChain?
| Fact | Direction | Source |
|---|---|---|
| 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?
- An xAI API key is needed. Minor [s1]
How much does xAI cost?
- xAI's API usage plan charges grok-4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens. [s2]
| Plan | Billing |
|---|---|
| API usage | per-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?
- The sources don't limit xAI to particular countries. [s1]
Where else does xAI integrate?
How does xAI compare?
Similar apps for LangChain
- Baseten + LangChain
- Claude + LangChain
- Fireworks AI + LangChain
- Hugging Face + LangChain
- IBM watsonx.ai + LangChain
- LiteLLM + 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
- https://docs.langchain.com/oss/python/integrations/providers/xai.md (platform docs, retrieved 24-11-2026)
- Grok Models & Pricing | SpaceXSI Docs (vendor pricing, retrieved 24-11-2026)
Changelog
- 24-11-2026: Record created from public sources (LOD-96 LangChain batch 1): https://docs.langchain.com/oss/python/integrations/providers/xai.md; Grok Models & Pricing | SpaceXSI Docs.
- 29-11-2026: Answer summary now names the currency next to each price (LOD-200).
Machine-readable: JSON. Spot an error? Send a correction.