GET
/v1/schemas/moonshot/chat/v1%2Fchat%2Fcompletions?kind=output
Accept:
Response body
6 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| id | string | Unique identifier for the completion | |
| object | string | Object type | |
| created | integer | Unix timestamp of when the completion was created | |
| model | string | Model used for the completion | |
| choices | object[] | List of completion choices | |
| usage | object |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"moonshot","endpointId":"v1/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}