Elffuss BraidHub

kikocis/continue public

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