v1

Tokenize text with the specified model

post/v1/tokenize-text

Request

  • Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
  • URL: https://docs.x.ai/v1/tokenize-text
  • Auth: HTTP bearer

Request body

modelstring

The model to tokenize with.

textstring

The text content to be tokenized.

userstring nullable

Optional user identifier.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.