xAI Grok
xAI provides access to Grok large language models through an OpenAI-compatible chat completions API for conversational AI applications.
Sample configuration
The following example shows a starting llm parameter configuration you can use when you Start a conversational AI agent.
Key parameters
BODYrequired
- url stringrequired
The xAI chat completions endpoint. Set to
https://api.x.ai/v1/chat/completions. - api_key stringrequired
The xAI API key used to authenticate requests.
- vendor stringrequired
The LLM vendor. Set to
xai. - params objectnullable
Additional parameters passed directly to the xAI API.
params
- model stringrequired
The Grok model to use. For example,
grok-4.3. For available models, refer to the xAI models documentation.
For more information, refer to the xAI Chat Completions documentation.