SpaceXAI official TypeScript SDK is public: one package for Grok text, voice, image, video, and hosted tools
On 2026-10-02 xAI published the official TypeScript SDK @xai-official/sdk (repo xai-org/xai-sdk-ts, Apache-2.0). The same day, 0.2.0 renamed the client to SpaceXAI; npm latest at fetch was 0.2.1. One ESM package covers Grok text, voice, image and video, plus hosted web search, X search, code execution, and remote MCP. Zero runtime dependencies, Node 22.13+, and browser use blocked by default. No public benchmark.

Key Takeaways
- Package:
@xai-official/sdkin xai-org/xai-sdk-ts, Apache-2.0, zero runtime deps. npm latest at fetch was 0.2.1 (2026-10-02 22:18 UTC); the post cited 0.2.0 - 0.2.0 breaking rename: client class
xAItoSpaceXAI(changelog). 0.2.1 addstoJson(schema), streaming partial JSON, andretryBeforeOutput - Node.js 22.13+, ESM only; browser and Worker use blocked by default. Hosted tools include web search, X search, code execution, and remote MCP; functions and shell run locally
- No public SDK latency or coding score. About 27 GitHub stars and 312 npm weekly downloads at fetch time. Sample model
grok-4.7is not a benchmark - Not the same package as Vercel
@ai-sdk/xai. Keep the API key on the server. Interfaces may change before 1.0; outside PRs are not accepted yet