GET
/v1/schemas/minimax-cn/chat/anthropic/v1/messages?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace40a5b441896c807cd4b42ad53adceea08d4a05335a8d4056ef51dc342232dca4{
"fetchedAt": 1794114637,
"extractorVersion": "2",
"verifiedAt": null
} |
Response body
7 properties · 0 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| id | string | 本次响应的唯一 ID | |
| type | enum | 对象类型,固定为 `message` | message |
| role | enum | 角色,固定为 `assistant` | assistant |
| model | string | 本次请求使用的模型 ID | |
| content | ResponseContentBlock[] | 响应内容块列表 | |
| stop_reason | enum | 模型停止生成的原因: - end_turn:模型自然结束 - max_tokens:达到 max_tokens 限制 - tool_use:模型请求工具调用 - pause_turn:服务端工具(如 web_search)的调用次数达到上限,本轮暂停。将返回的 content 作为 assistant 消息追加后再次请求即可继续 | end_turn | max_tokens | tool_use | pause_turn |
| usage | Usage | 本次请求的 token 用量,包含适用时的 prompt cache 用量。 |
Types
2 $defsResponseContentBlockobject
响应消息中的内容块。模型输出 text、tool_use(调用工具时),以及 thinking(开启深度思考时)。响应中不会出现 image、video、tool_result 或 mid_conv_system 块。
| type* | enum | 内容块类型: - text:文本内容 - tool_use:模型工具调用 - thinking:模型思考过程 | text | tool_use | thinking |
| text | string | 文本内容,type=text 时使用。 | |
| id | string | 工具调用 ID,type=tool_use 时返回。 | |
| name | string | 工具名称,type=tool_use 时返回。 | |
| input | object | 工具输入参数,type=tool_use 时返回。 | |
| thinking | string | 模型思考过程内容,type=thinking 时使用。 | |
| signature | string | thinking 内容签名,多轮续写时需要原样回带。 |
Usageobject
本次请求的 token 用量,包含适用时的 prompt cache 用量。
| input_tokens | integer | 输入消耗的 Token 数 | |
| output_tokens | integer | 输出消耗的 Token 数 | |
| cache_creation_input_tokens | integer | 创建 prompt cache 的输入 token 数。 | |
| cache_read_input_tokens | integer | 命中 prompt cache 的输入 token 数。 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"minimax-cn","endpointId":"anthropic/v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}