Skip to main content

xAI

info

You can get an API key from the xAI console

Chat model

We recommend configuring grok-2-latest as your chat model. For information on other available models, visit xAI Documentation.

config.yaml
models:
- name: Grok 2
provider: xAI
model: grok-2-latest
apiKey: <YOUR_XAI_API_KEY>

Autocomplete model

xAI currently does not offer any autocomplete models.

Click here to see a list of autocomplete model providers.

Embeddings model

xAI currently does not offer any embeddings models.

Click here to see a list of embeddings model providers.

Reranking model

xAI currently does not offer any reranking models.

Click here to see a list of reranking model providers.