# How to use xAI in BoltAI?

xAI has launched its API recently. Follow the steps below to use xAI in BoltAI

### Obtain an API Key

* Go to <https://console.x.ai> and sign up for an account
* Finish the onboarding
* Add billing & payment method
* Top up some credits, xAI doesn't give free credits yet

<figure><img src="https://3726472158-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyR4zyuG71Q9iOEFTUe63%2Fuploads%2FAiOep76gq88WSnBusaKe%2FCleanShot%202024-10-23%20at%2014.39.32%402x.png?alt=media&#x26;token=aabdd77b-4492-4f66-82fa-7ddee41473a8" alt=""><figcaption><p>xAI Console</p></figcaption></figure>

### Create a new xAI Service in BoltAI

* Open BoltAI. Go to Settings > Services
* Click the (+) Plus button (bottom left)
* Select "xAI"
* Fill the form and click Save

<figure><img src="https://3726472158-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyR4zyuG71Q9iOEFTUe63%2Fuploads%2FSejsYCDczat5XgIgQIcD%2FCleanShot%202025-01-14%20at%2011.43.49%402x.jpg?alt=media&#x26;token=147d5f68-0811-4092-8d9c-e6268ed8b771" alt=""><figcaption><p>Create a new Custom Server in BoltAI</p></figcaption></figure>

### Start a new chat

Go back to the main chat window and start a new chat with xAI

<figure><img src="https://3726472158-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyR4zyuG71Q9iOEFTUe63%2Fuploads%2Fg0xa6UPEptohH6eUn0vF%2FGabqvfSacAAm5tN.jpeg?alt=media&#x26;token=202f4e13-e647-443b-80b9-8e1d2923a29d" alt=""><figcaption><p>Using xAI in BoltAI</p></figcaption></figure>

### Enjoy ✌️
