GET
/v1/schemas/grok/chat/v1%2Fcompletions?kind=output
Accept:
Response body
7 properties · 5 required · 4 $defs| property | type | description | constraints |
|---|---|---|---|
| choices* | SampleChoice[] | A list of response choices from the model. The length corresponds to the `n` in request body (default to 1). | |
| created* | integer | The chat completion creation time in Unix timestamp. | format: int64 |
| id* | string | ID of the request. | |
| model* | string | Model to be used. | |
| object* | string | Object type of the response. This is always `"text_completion"`. | |
| system_fingerprint | any | System fingerprint, used to indicate xAI system configuration changes. | |
| usage | Usage | Token usage information. | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"grok","endpointId":"v1/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}