Home / APIs & tokens / xAI API / Tokens & top-ups
xAI API tokens & top-ups
xAI
—
prices arrive at launch
About the service
API for xAI's Grok models: chat and reasoning models with a large context window, image input and image generation. It supports function calling, structured output and modes with access to fresh information. The interface is compatible with the OpenAI and Anthropic formats, so migrating usually means swapping the base URL and key.