--- title: Using xAI in LobeChat description: >- Learn how to configure and use xAI's API Key in LobeChat to start conversations and interactions. tags: - LobeChat - xAI - API Key - Web UI --- # Using xAI in LobeChat [xAI](https://x.ai/) is an artificial intelligence company founded by Elon Musk in 2023, aimed at exploring and understanding the true nature of the universe. The company's mission is to solve complex scientific and mathematical problems using AI technology and to advance the field of artificial intelligence. This article will guide you on how to use xAI in LobeChat. ### Step 1: Obtain an API Key from xAI - Register and login to the [xAI console](https://console.x.ai/) - Create an API token - Copy and save the API token {'xAI Make sure to securely save the API token displayed in the popup; it only appears once. If you accidentally lose it, you will need to create a new API token. ### Step 2: Configure xAI in LobeChat - Go to the `Settings` menu in LobeChat - Locate the `xAI` settings under `Language Model` {'Enter - Enter the API key you obtained - Select an xAI model for your AI assistant to start a conversation {'Select During use, you may need to pay the API service provider, so please refer to xAI's relevant pricing policies. You are now ready to engage in conversations using the models provided by xAI in LobeChat.