⌘K

Grok 4.3

vtrix-grok-4.3

xAI 最新一代智能模型, 面向复杂推理、软件工程和 Agent 工具调用场景. 支持 1M 上下文窗口、文本和图像输入、可配置 reasoning effort、函数调用和结构化输出.

认证

authorization string 必填

所有 API 都需要通过 Bearer Token 进行认证

获取 API Key:

访问 API Key 管理页面 获取您的 API Key

使用方法:

添加到请求头:

Authorization: Bearer YOUR_API_KEY

参数

model string 必填

请求使用的模型 ID

值: vtrix-grok-4.3


messages array 必填

表示对话历史的消息对象数组

role string 必填

消息角色

可选值: user, assistant, system, developer

content string | array 必填

文本字符串或多模态内容数组. 支持文本和图像输入


reasoning_effort string

控制模型在回答前投入的推理程度

默认值: low

可选值: none, low, medium, high


max_tokens integer

生成的最大 token 数量


temperature number

采样温度

默认值: 1.0

范围: 0.0 - 2.0


top_p number

核采样参数

默认值: 1.0

范围: 0.0 - 1.0


stream boolean

是否增量流式返回响应

默认值: false


tools array

模型可调用的工具列表

type string 必填

工具类型

可选值: function

function object 必填

函数工具定义


response_format object

模型必须输出的格式. 用于结构化输出

type string 必填

输出格式类型

可选值: text, json_object, json_schema