Skip to main content

Overview

xAI provides access to Grok and other models via the native xAI SDK. Upsonic integrates using XaiModel, which supports built-in tools (web search, code execution, MCP), reasoning content, and structured output. Model Class: XaiModel

Authentication

Examples

Model Settings

You can set model parameters in two ways: on the model or on the Agent. On the model:
On the Agent:

Parameters