← Tools Reference

xAI

xAI integration (AI, Developer Tools). Imported from open-connector.

API key3 toolshttps://api.x.ai/v1
GET
x_ai_list_models
List the xAI models available to the current API key.

/models

GET
x_ai_get_model
Fetch metadata for one xAI model.

/models/{model}

1 parameter
ParamTypeRequiredDescription
modelstringrequiredThe exact xAI model identifier to retrieve.
POST
x_ai_create_chat_completion
Create a non-streaming xAI OpenAI-compatible chat completion.

/chat/completions

19 parameters
ParamTypeRequiredDescription
modelstringrequiredThe xAI model identifier to use.
messagesarrayrequiredThe ordered conversation history sent to the model.
frequency_penaltynumberoptionalThe frequency penalty applied to repeated tokens.
logit_biasobjectoptionalA JSON object with arbitrary upstream fields.
logprobsbooleanoptionalWhether to include token-level log probabilities.
max_completion_tokensintegeroptionalThe maximum number of completion tokens to generate.
max_tokensintegeroptionalThe deprecated maximum token field accepted by compatible clients.
nintegeroptionalThe number of chat completions to generate.
presence_penaltynumberoptionalThe presence penalty applied to newly introduced tokens.
response_formatobjectoptionalResponse format configuration.
seedintegeroptionalA seed for deterministic sampling.
stopstringoptionalOne or more sequences where generation should stop.
streambooleanoptionalWhether to request a streaming response. This connector only accepts false or a…
temperaturenumberoptionalThe sampling temperature.
tool_choicestringoptionalTool selection strategy for the request.
toolsarrayoptionalTools available to the model.
top_logprobsintegeroptionalThe number of top token log probabilities to include.
top_pnumberoptionalThe nucleus sampling threshold.
userstringoptionalAn end-user identifier for monitoring or abuse detection.