Elffuss BraidHub

kikocis/continue public

87f75892af56 · 778 BRawPermalink
1---
2title: xAI
3slug: ../xai
4---
5
6<Tip>
7 **Discover xAI models [here](https://hub.continue.dev/xai)**
8</Tip>
9
10<Info>
11 Get an API key from the [xAI Console](https://console.x.ai/)
12</Info>
13
14## Configuration
15
16<Tabs>
17 <Tab title="YAML">
18 ```yaml title="config.yaml"
19 models:
20 - name: <MODEL_NAME>
21 provider: xai
22 model: <MODEL_ID>
23 apiKey: <YOUR_XAI_API_KEY>
24 ```
25 </Tab>
26 <Tab title="JSON (Deprecated)">
27 ```json title="config.json"
28 {
29 "models": [
30 {
31 "title": "<MODEL_NAME>",
32 "provider": "anthropic",
33 "model": "<MODEL_ID>",
34 "apiKey": "<YOUR_XAI_API_KEY>"
35 }
36 ]
37 }
38 ```
39 </Tab>
40</Tabs>
41
42<Info>
43 **Check out a more advanced configuration [here](https://hub.continue.dev/xai/grok-4?view=config)**
44</Info>