docs/usage/providers/xai.mdx
<Image cover src={'/blog/assetsc557d9ee77afeb958d198abf5ca79761.webp'} />
xAI is an artificial intelligence company founded by Elon Musk in 2023, with the mission of exploring and understanding the true nature of the universe. The company aims to solve complex scientific and mathematical problems and advance the development of AI technologies.
This guide will walk you through how to use xAI within LobeHub.
<Steps> ### Step 1: Obtain an xAI API Key<Image alt={'xAI API'} inStep src={'/blog/assets6b6c251a2d4a77784c08fb07fc51abf9.webp'} />
<Callout type={'warning'}> Make sure to save the API token shown in the popup — it will only be displayed once. If you lose it, you’ll need to generate a new one. </Callout>
Settings page in LobeHubAI Providers, locate the xAI configuration section<Image alt={'Enter API Key'} inStep src={'/blog/assets513c9045fef49b4d46549f485e69f505.webp'} />
<Image alt={'Select xAI model and start chatting'} inStep src={'/blog/assets88248c034ef28ca9b909219d2e7ef32a.webp'} />
<Callout type={'warning'}> Please note that usage may incur charges from the API provider. Refer to xAI’s pricing policy for more details. </Callout> </Steps>
You’re now ready to start using xAI-powered models in LobeHub for conversations and interactions.