XAI
Instructions for using xAI models
Param
Description
Default
models:
- from: xai:grok4
name: xai
params:
xai_api_key: ${secrets:SPICE_GROK_API_KEY}Last updated
Was this helpful?
Instructions for using xAI models
To use a language model hosted on xAI, specify xai path in the from field and the associated xai_api_key parameter:
xai_api_key
The xAI API key.
-
Example:
models:
- from: xai:grok4
name: xai
params:
xai_api_key: ${secrets:SPICE_GROK_API_KEY}Refer to the xAI models documentation for more details on available models and configurations.
Although the xAI documentation shows that xAI models can return structured outputs, this is not true.
Last updated
Was this helpful?
Was this helpful?