API Credentials for xAI (Grok)

Guide to obtaining tokens, keys, and connections.

To connect to the XAI API you need to obtain an API Key from your account in the XAI portal. Below you will find detailed steps to generate and copy your key securely.

XAI API Key

  1. 1

    Go to https://console.x.ai and log in with your XAI username and password.

  2. 2

    In the left-hand menu, click on “API Keys”.

  3. 3

    Click the “Create API key” button to start creating a new key.

  4. 4

    In the “Name” field, enter an identifier for your key, for example “botize”, and confirm.

  5. 5

    Click “Create API Key” to generate the key.

  6. 6

    Your new API Key (a string starting with “xai-”) will be displayed. Copy it and store it in a secure place.