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.
Example
See ChatXAI docs for detail and supported features.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.