GET
/v1/schemas/grok/chat/v1%2Fchat%2Fcompletions?kind=output
Accept:
Response body
10 properties · 6 required · 12 $defs| property | type | description | constraints |
|---|---|---|---|
| choices* | Choice[] | 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 | A unique ID for the chat response. | |
| model* | string | Model ID used to create chat completion. | |
| object* | string | The object type, which is always `"chat.completion"`. | |
| service_tier* | enum | The processing tier used for this request. | default | priority |
| citations | any | List of all the external pages used by the model to answer. | |
| output_files | any | Files generated during the response (e.g., by the code execution tool). Only populated when `code_execution_files_output` is included. | |
| 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/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}