GET

/v1/schemas/xiaomi/chat/anthropic/v1/messages?kind=output

kind outputactivity chathash ff651fe0…extracted Oct 9, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

generated

Source trace
1be241b9a882b3c70954e8ec04031cb657b06c8e0b0bbb8511e5b6ec63b82ae7
{
  "fetchedAt": 1791522949,
  "extractorVersion": "1",
  "verifiedAt": null
}

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", …}]}