# xAI

Create a dedicated inference key in the xAI console and add it in Settings → AI Screening.

Steps checked 2026-10-14

## Before you start

- An account at console.x.ai that has been loaded with credits. xAI says to load an account with credits before using the API.

## Create a key

Sign in at [console.x.ai ↗](https://console.x.ai/). The keys page is [console.x.ai/team/default/api-keys ↗](https://console.x.ai/team/default/api-keys).

- Sign in to the xAI Console at console.x.ai and choose your team.
- Open the API Keys page.
- Create an inference API key and name it TalentDesk screening.
- Copy the secret and store it safely.

## Permissions and project

- xAI inference keys are bound to a team and to the user who created them, and carry permissions (ACLs) for endpoints and models. A key with no endpoint or model permission cannot make requests.
- If the console shows these permissions when you create the key, allow the chat endpoint and the models you want TalentDesk to use.

## What not to paste

- A management API key. xAI keeps management keys separate: they administer keys and teams, not model calls. Use an inference key.

## Add it to TalentDesk

- Sign in to TalentDesk as an admin on a workspace on the Team plan, and open **Settings → AI Screening**.
- Under **AI Screening key**, choose **xAI** in the provider list.
- Paste the key into **Paste your key**.
- Select **Save & test**. TalentDesk checks the key with xAI before it stores it.**Success looks like this:** the AI Screening key row shows xAI and the last four characters of the key, with **Replace** and **Remove** beside it. If the test fails, an error explains why and nothing is stored.

## Rotate or revoke the key

- Create a new inference key and use Replace in TalentDesk to test it.
- Then delete the old key from the API Keys page.Removing the key in TalentDesk stops AI features in every workspace that uses it. Candidates already parsed keep what they have.

## Common errors

**That key was refused. Check it is current and has not been revoked.**
The key is wrong, deleted or a management key. Create an inference key.

**Your provider account is out of credit or over its spend limit.**
Load credits on the team in the xAI Console.

**That key cannot use this model. Check your project's model access.**
The key's permissions do not include the model or the chat endpoint. Edit the key's permissions or create a new key.**Note** Use an inference key, not a management API key.

## Provider documentation

[Provider documentation ↗](https://docs.x.ai/developers/quickstart) [Management and inference API keys ↗](https://docs.x.ai/developers/rest-api-reference/management/auth)

[Open the API keys page ↗](https://console.x.ai/team/default/api-keys) [Provider console ↗](https://console.x.ai/)

Steps checked 2026-10-14 against the provider's own documentation. Provider consoles change; if a label here is not what you see, follow the provider documentation above.
