Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Body

application/json
model
string
required

Model whose tokenizer should be used

Example:

"command-r-plus"

text
string
required

Text to tokenize (1-65536 characters)

Required string length: 1 - 65536

Response

Successful response

tokens
integer[]

Token IDs

token_strings
string[]

Token strings

meta
object

Metadata returned by the tokenize endpoint