GET

/v1/schemas/xiaomi/chat/anthropic%2Fv1%2Fmessages?kind=output

kind outputactivity chathash ff651fe0…extracted Oct 9, 2026version currentsource upstream spec ↗

Response body

7 properties · 0 required · 0 $defs
propertytypedescriptionconstraints
idstringUnique object identifier. The format and length of IDs may change over time.
typestringFor Messages, this is always message .
rolestringConversational role of the generated message. This will always be assistant .
contentobject | object | object[]Content generated by the model.
modelstringThe model that handled the request.
stop_reasonenumThe 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
usageobjectBilling and rate-limit usage.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"xiaomi","endpointId":"anthropic/v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}