xAI integration (AI, Developer Tools). Imported from open-connector.
https://api.x.ai/v1/models
/models/{model}
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The exact xAI model identifier to retrieve. |
/chat/completions
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The xAI model identifier to use. |
| messages | array | required | The ordered conversation history sent to the model. |
| frequency_penalty | number | optional | The frequency penalty applied to repeated tokens. |
| logit_bias | object | optional | A JSON object with arbitrary upstream fields. |
| logprobs | boolean | optional | Whether to include token-level log probabilities. |
| max_completion_tokens | integer | optional | The maximum number of completion tokens to generate. |
| max_tokens | integer | optional | The deprecated maximum token field accepted by compatible clients. |
| n | integer | optional | The number of chat completions to generate. |
| presence_penalty | number | optional | The presence penalty applied to newly introduced tokens. |
| response_format | object | optional | Response format configuration. |
| seed | integer | optional | A seed for deterministic sampling. |
| stop | string | optional | One or more sequences where generation should stop. |
| stream | boolean | optional | Whether to request a streaming response. This connector only accepts false or a… |
| temperature | number | optional | The sampling temperature. |
| tool_choice | string | optional | Tool selection strategy for the request. |
| tools | array | optional | Tools available to the model. |
| top_logprobs | integer | optional | The number of top token log probabilities to include. |
| top_p | number | optional | The nucleus sampling threshold. |
| user | string | optional | An end-user identifier for monitoring or abuse detection. |