Skip to content

xAI Grok

xAI’s Grok models are available through the xAI API, which uses the same interface as OpenAI. Once connected, you can use any Grok model with your Selu agents.

  1. Sign up or log in at console.x.ai.
  2. Go to API Keys in your account.
  3. Create a new key, name it “Selu”, and copy it immediately.
  1. In the Selu sidebar, click Providers.
  2. Click Add Provider and select xAI Grok.
  3. Paste your API key into the API Key field.
  4. Leave Base URL empty to use xAI’s default servers (https://api.x.ai).
  5. Click Check & Save. Selu will verify the key works and save it.

Your API key is encrypted at rest.

Once connected, you can choose which model your agents use. The model is selected per agent under Agents → (agent name) → Model.

Selu fetches the latest available Grok models directly from the xAI API, so new models appear automatically as xAI releases them. If the API is unreachable, Selu falls back to a built-in list that includes grok-3 as the default.

If you’re accessing the xAI API through a proxy or a compatible endpoint, enter your server address in the Base URL field during setup. Leave it empty for the standard xAI API.

  • “Invalid API key” — Double-check that you copied the full key from the xAI console and that it hasn’t been revoked.
  • Model not available — If a specific model doesn’t appear, it may not yet be available on your xAI account tier. Check the xAI documentation for model availability.
  • Timeout errors — Long responses can sometimes time out. Try a faster or lighter model variant if this happens consistently.