GET

/v1/schemas/grok/chat/v1/tokenize-text

kind inputactivity chathash b6bfeeee…extracted Jul 6, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
8fef3a30eaf49596c4dfe70d5f01b85fc4063b25b5873e93874479ef8087f379
{
  "fetchedAt": 1783328713,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

3 properties · 0 required · 0 $defs
propertytypedescriptionconstraints
modelstringThe model to tokenize with.
textstringThe text content to be tokenized.
useranyOptional user identifier.

Validate a payload

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