Skip to main content

Tokenize texts

POST 

/v1/tokenize

By given a text input, create a tokenized output with token IDs.

Request

Body

    prompt stringrequired

    Input text prompt to tokenize.

Responses

Successfully tokenized the text.

Schema
    tokens integer[]

    A list of token IDs.

Loading...