GET
/v1/schemas/grok/chat/v1%2Fcomplete?kind=output
Accept:
Response body
5 properties · 4 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| completion* | string | The completion content up to and excluding stop sequences. | |
| id* | string | ID of the completion response. | |
| model* | string | The model that handled the request. | |
| type* | string | Completion response object type. This is always `"completion"`. | |
| stop_reason | any | The reason to stop completion. `"stop_sequence"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `"length"` means the inference result has reached models' maximum allowed token length or user defined value in `max_toke… |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"grok","endpointId":"v1/complete","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}