SpaceXAI ships an experimental TypeScript SDK for Grok and hosted tools
Eric Zakariasson, who works on AI at SpaceXAI, announced an experimental TypeScript SDK for the xAI API on October 2. The package, @xai-official/sdk, gives developers one client for Grok text responses, voice, image and video generation, plus tools that xAI runs on its own servers.
The package covers streaming responses, structured output, function calling, image input, image and video generation, file uploads, batch processing, speech synthesis, transcription, multi-turn conversations, tokenization, and model and account lookup. It's typed and built for ESM projects on Node.js 22.13 or later, with no runtime dependencies.
This is early software: the SDK is pre-1.0 and its interfaces may change between releases. Zakariasson asked developers for feedback as the team iterates — so pin a version and expect to revisit integrations.