The SpaceXSI API, formerly the SpaceXAI API and before that the xAI API, lets developers use Grok models from their own code for text, images, video and voice.
In plain words
You create an account in the developer console, add credits, make an API key and send requests. Besides text generation, the API offers tools such as function calling, web search and code execution, plus separate services for voice and for making images and video. Its code examples use the standard OpenAI client pointed at the api.x.ai address.
A quick example
Imagine a developer who already uses the OpenAI Python library. They set the base address to xAI's API, supply their xAI key, name a Grok model, and send the same request as before.
Where you'll meet it
- Apps built on Grok models.
- Voice, image and video generation features.
Related
Sources
- DocsQuickstart, xAI Docs · read 12 Oct 2026
- DocsGrok API documentation, xAI Docs · read 29 Sept 2026
Checked by WhatIsAI against the sources above · 12 Oct 2026. Spotted an error? Report it.