Python
Official SDK- Package
xai-sdk- Install
- Install
pip install xai-sdk - Repo
- github.com/xai-org/xai-sdk-python
- Docs
- docs.x.ai/developers/quickstart
- Notes
- The same quickstart also shows the OpenAI Python SDK (pip install openai) against https://api.x.ai/v1.
From the docs
Step 3: Install an SDK. Pick your language and install the SDK: ... pip install xai-sdk (PyPI summary: 'The official Python SDK for the xAI API')