GET

/v1/schemas/grok/chat/v1%2Fcomplete

kind inputactivity chathash 70a58556extracted Jul 6, 2026version currentsource upstream spec ↗

Request body

9 properties · 0 required · 1 $defs
propertytypedescriptionconstraints
max_tokens_to_sampleintegerThe maximum number of tokens to generate before stopping.format: int32
metadataMessageMetadataAn object describing metadata about the request.nullable
modelstringModel to use for completion.
promptstringPrompt for the model to perform completion on.
stop_sequencesany(Not supported by reasoning models) Up to 4 sequences where the API will stop generating further tokens.
streamany(Unsupported) If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
temperatureanyWhat sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.0 ≤ n ≤ 2 · format: float · default: 1
top_kany(Unsupported) When generating next tokens, randomly selecting the next token from the k most likely options.format: int32
top_panyAn alternative to sampling with `temperature`, called nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. It is generally reco…0 < n ≤ 1 · format: float · default: 1

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"grok","endpointId":"v1/complete","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}