GET
/v1/schemas/grok/chat/v1%2Ftokenize-text
Accept:
Request body
3 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| model | string | The model to tokenize with. | |
| text | string | The text content to be tokenized. | |
| user | any | Optional user identifier. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"grok","endpointId":"v1/tokenize-text","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}