{
  "id": "xai--langchain",
  "schema_version": "1.2",
  "app": {
    "slug": "xai",
    "name": "xAI",
    "vendor": "xAI",
    "website": "https://x.ai",
    "categories": [
      "ai-inference"
    ],
    "owned_by_platform": false
  },
  "ecosystem": "langchain",
  "connection": {
    "built_by": "ecosystem-owner",
    "method": "native-api",
    "setup_docs_url": "https://docs.langchain.com/oss/python/integrations/providers/xai"
  },
  "sync": [
    {
      "object": "chat-models",
      "direction": "supported",
      "notes": "ChatXAI queries xAI's Grok models.",
      "src": [
        "s1"
      ]
    },
    {
      "object": "python-package",
      "direction": "supported",
      "notes": "Package: langchain-xai.",
      "src": [
        "s1"
      ]
    }
  ],
  "pricing": {
    "model": "usage-based",
    "plans": [
      {
        "prices": {},
        "name": "API usage",
        "billing": "per-transaction",
        "rate": "grok-4.7: US$2.00 per 1M input tokens and US$6.00 per 1M output tokens",
        "per": "usage-based; page shows $ without a currency code, read as USD",
        "src": [
          "s2"
        ]
      }
    ]
  },
  "regions": {
    "supported": [
      "GLOBAL"
    ],
    "basis": "no-restriction-stated",
    "src": [
      "s1"
    ],
    "label": "No regional restriction stated"
  },
  "requirements": {
    "ecosystem_plan_min": "unknown",
    "ecosystem_features_required": [],
    "src": [
      "s1"
    ]
  },
  "limitations": [
    {
      "summary": "An xAI API key is needed",
      "severity": "minor",
      "src": [
        "s1"
      ]
    }
  ],
  "alternatives": [],
  "editorial": {
    "answer_summary": "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.",
    "best_for": [],
    "not_ideal_for": []
  },
  "profile": {
    "status": "listed"
  },
  "sources": [
    {
      "id": "s1",
      "url": "https://docs.langchain.com/oss/python/integrations/providers/xai.md",
      "title": "https://docs.langchain.com/oss/python/integrations/providers/xai.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-24T04:10:52Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "ff9e031042d666b9751c17ca0af20f8538b63c9e73f3fbcdb6f5ad2dd5e675d5",
        "text_sha256": "e7e7b6cebe332c3a30ed4b817bde2e2d40610e1f118fa688c058644804e78ed4"
      }
    },
    {
      "id": "s2",
      "url": "https://docs.x.ai/developers/models",
      "title": "Grok Models & Pricing | SpaceXSI Docs",
      "type": "vendor-pricing",
      "retrieved_at": "2026-11-24T04:11:38Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "ecc1dbfa3d8ecfe72106d999217216567abffb944aefca0f9f746f6432595f7d",
        "text_sha256": "e46095b0bc8bbbda6f6bb529af03d53bfaf6d811302d3f529662ae1cd957afd9"
      }
    }
  ],
  "verification": {
    "status": "verified",
    "last_verified": "2026-11-24",
    "verified_by": [
      "research-agent"
    ],
    "open_flags": []
  },
  "publishing": {
    "state": "live",
    "batch": "LOD-96 LangChain batch 1"
  },
  "changelog": [
    {
      "date": "2026-11-24",
      "change": "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."
    },
    {
      "date": "2026-11-29",
      "change": "Answer summary now names the currency next to each price (LOD-200)."
    }
  ],
  "not_documented": [
    "embeddings",
    "vector-stores",
    "retrievers",
    "tools",
    "document-loaders",
    "rerankers",
    "checkpointers",
    "tracing",
    "sandboxes",
    "javascript-package"
  ],
  "vendor": {
    "id": "xai",
    "name": "xAI",
    "api": "https://trylode.io/api/vendors/xai.json"
  },
  "url": "https://trylode.io/langchain/xai/",
  "facts": [
    {
      "id": "sync-chat-models",
      "topic": "sync",
      "statement": "xAI's models can be used as LangChain chat models.",
      "label": "Lode-verified",
      "verified": "2026-11-24",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/langchain/xai/#sync-chat-models"
    },
    {
      "id": "sync-python-package",
      "topic": "sync",
      "statement": "xAI's LangChain integration is available as a Python package.",
      "label": "Lode-verified",
      "verified": "2026-11-24",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/langchain/xai/#sync-python-package"
    },
    {
      "id": "price-api-usage",
      "topic": "pricing",
      "statement": "xAI's API usage plan charges grok-4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens.",
      "label": "Lode-verified",
      "verified": "2026-11-24",
      "src": [
        "s2"
      ],
      "url": "https://trylode.io/langchain/xai/#price-api-usage"
    },
    {
      "id": "regions",
      "topic": "regions",
      "statement": "The sources don't limit xAI to particular countries.",
      "label": "Lode-verified",
      "verified": "2026-11-24",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/langchain/xai/#regions"
    },
    {
      "id": "limitation-1",
      "topic": "limitation",
      "statement": "An xAI API key is needed.",
      "label": "Lode-verified",
      "verified": "2026-11-24",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/langchain/xai/#limitation-1"
    }
  ],
  "cite_as": "Lode (trylode.io), xAI + LangChain, verified 2026-11-24",
  "lode": {
    "publish_state": "live",
    "stale": false,
    "completeness": 0.7
  }
}