Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request POST \ --url http://localhost:8080/cohere/v1/tokenize \ --header 'Content-Type: application/json' \ --data ' { "model": "command-r-plus", "text": "<string>" } '
{ "tokens": [ 123 ], "token_strings": [ "<string>" ], "meta": { "api_version": { "version": "<string>" } } }
Tokenizes text using Cohere v1 API format.
Model whose tokenizer should be used
"command-r-plus"
Text to tokenize (1-65536 characters)
1 - 65536
Successful response
Token IDs
Token strings
Metadata returned by the tokenize endpoint
Show child attributes
Was this page helpful?