GET
/v1/schemas/meta/chat/v1%2Fmessages
Accept:
Request body
14 properties · 3 required · 45 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | (minLength: 1) | length ≥ 1 |
| messages* | anthropic-input-message[] | (minItems: 1) | items ≥ 1 |
| max_tokens* | integer | (minimum: 1) | n ≥ 1 |
| system | string | anthropic-system-text-block-par… | ||
| tools | anthropic-tool[] | ||
| tool_choice | anthropic-tool-choice | ||
| metadata | anthropic-metadata-param | ||
| temperature | number | (minimum: 0, maximum: 1) | nullable |
| top_p | number | (minimum: 0, maximum: 1) | nullable |
| thinking | object | object | object | ||
| service_tier | enum | auto | standard_only | |
| cache_control | anthropic-cache-control-ephemeral-param | ||
| output_config | anthropic-output-config | ||
| stream | boolean | (default: false) | default: false |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"meta","endpointId":"v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}