Skip to main content

xAI

info

You can get an API key from the xAI console

Chat model

We recommend configuring grok-beta as your chat model.

config.json
{
"models": [
{
"title": "Grok Beta",
"provider": "xAI",
"model": "grok-beta",
"apiKey": "[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.

Legacy Completions

To force usage of chat/completions instead of completions endpoint you can set

"useLegacyCompletionsEndpoint": false