Error
A valid request URL is required to generate request examples{
"tokens": [
123
],
"token_strings": [
"<string>"
],
"meta": {
"api_version": {
"version": "<string>"
}
}
}LiteLLM Integration
Tokenize text (LiteLLM - Cohere format)
Tokenizes text using Cohere-compatible format via LiteLLM.
POST
/
litellm
/
cohere
/
v1
/
tokenize
Error
A valid request URL is required to generate request examples{
"tokens": [
123
],
"token_strings": [
"<string>"
],
"meta": {
"api_version": {
"version": "<string>"
}
}
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
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 whose tokenizer should be used
Example:
"command-r-plus"
Text to tokenize (1-65536 characters)
Required string length:
1 - 65536Was this page helpful?
⌘I

