创建 Messages 响应
Chat
创建 Messages 响应
Anthropic 兼容的 Messages 接口。
POST
创建 Messages 响应
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
示例:
"minimax-m3"
最大生成 token 数(必填)。
必填范围:
x >= 1系统提示词。
随机性(0–1)。
必填范围:
0 <= x <= 1必填范围:
0 <= x <= 1仅从概率最高的 K 个候选采样。
自定义停止序列。
模型可调用的工具;每个含 name、description、input_schema(JSON Schema)。
工具选择:{ type: 'auto' } | { type: 'any' } | { type: 'tool', name }。
为 true 时按 Anthropic SSE 事件流返回(message_start / content_block_delta / message_delta / message_stop)。