GET

/v1/schemas/grok/chat/v1%2Fmessages?kind=output

kind outputactivity chathash 9ca6ad28extracted Jul 6, 2026version currentsource upstream spec ↗

Response body

8 properties · 6 required · 2 $defs
propertytypedescriptionconstraints
content*MessageResponseContent[]Response message content.
id*stringUnique object identifier.
model*stringModel name that handled the request.
role*stringRole of the generated message. Always `"assistant"`
type*stringObject type. This is always `"message"` for message types.
usage*MessageUsageToken usage information.
stop_reasonanyReason to stop. `"stop_sequence"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `"max_tokens"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `"end_…
stop_sequenceanyCustom stop sequence used to stop the generation.

Validate a payload

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