Skip to main content
POST
Tokenization
Convert text input into token IDs.

Body

application/json
prompt
string
required

Input text prompt to tokenize.

Example:

"What is generative AI?"

model
string | null

Routes the request to a specific adapter.

Example:

"(adapter-route)"

Response

Successfully tokenized the text.

tokens
integer[]
required

A list of token IDs.

Last modified on June 9, 2026