GET
/v1/schemas/xiaomi/chat/anthropic/v1/messages?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. generated Source trace1be241b9a882b3c70954e8ec04031cb657b06c8e0b0bbb8511e5b6ec63b82ae7{
"fetchedAt": 1791522949,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
7 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| id | string | Unique object identifier. The format and length of IDs may change over time. | |
| type | string | For Messages, this is always message . | |
| role | string | Conversational role of the generated message. This will always be assistant . | |
| content | object | object | object[] | Content generated by the model. | |
| model | string | The model that handled the request. | |
| stop_reason | enum | The reason the message finished. This may be one the following values: end_turn : the model reached a natural stopping point. max_tokens : we exceeded the requested max_tokens or the model's maximum. tool_use : the model invoked one or more tools. content_filt… | end_turn | max_tokens | tool_use | content_filter | repetition_truncation |
| usage | object | Billing and rate-limit usage. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"xiaomi","endpointId":"anthropic/v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}