Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

xAI Python SDK

Official Python SDK for xAI's Grok models.

Model SDKsPYPI

GitHubWebsiteAPI page

1. License

License from PyPI license expression.

github.com/xai-org/xai-sdk-python

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What xAI Python SDK does

Official Python SDK for xAI's Grok models.

xAI Python SDK popularity

34 / 100
Gid Score, #3731 overall
865K
downloads a week, pypi
623
GitHub stars
1
agent projects use it
xAI Python SDK: downloads per weekPyPI, xai-sdk 916,709
xAI Python SDK: GitHub starsxai-org/xai-sdk-python 623

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How xAI Python SDK is used

  • xAI Python SDK joined the catalog on its public numbers (864,994 downloads a week on PyPI and 623 GitHub stars), not on our project count: it is a dependency in 19 public GitHub projects of our scan, 1 of them set up for AI coding agents.
  • Projects that use it most often also use python-dotenv (100.0%), aiohttp (84.2%), Google GenAI Python SDK (84.2%).

Often used with

In 100.0% of its projects
In 84.2% of its projects
In 84.2% of its projects
In 84.2% of its projects
In 84.2% of its projects
In 78.9% of its projects
In 78.9% of its projects
In 78.9% of its projects

More about xAI Python SDK

More in Model SDKs

Alternatives

xAI Python SDK This page

Apache-2.0Gid 34865K/wk

Compare xAI Python SDK with another tool

Get started

Install it.

pip install xai-sdk

No step-by-step start for xAI Python SDK yet: we have not written its hand-checked card.