xAI offers an API to interact with Grok models. This example goes over how to use LangChain to interact with xAI models.Documentation Index
Fetch the complete documentation index at: https://langchain.idochub.dev/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Environment
To use xAI, you’ll need to create an API key. The API key can be passed in as an init paramxai_api_key or set as environment variable XAI_API_KEY.