GET
/v1/schemas/ant-ling/chat/v1%2Fchat%2Fcompletions
Accept:
Request body
9 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | Model ID | |
| messages* | object[] | Message list | |
| stream | boolean | Whether to enable streaming output | default: false |
| tools | any[] | Tool list (Function Calling) | |
| temperature | number | Randomness, range [0.0, 1.0] | 0 ≤ n ≤ 1 · default: 1 |
| top_p | number | Diversity, range (0.0, 1.0] | 0 < n ≤ 1 · default: 1 |
| enable_search | boolean | Whether to enable web search | default: false |
| search_options | object | Web search strategy | |
| thinking | object | Thinking mode control (3.0 series models, 3.1 series models, 3.2 series models) |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"ant-ling","endpointId":"v1/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}