Error
A valid request URL is required to generate request examples{
"tokens": [
123
],
"token_strings": [
"<string>"
],
"meta": {
"api_version": {
"version": "<string>"
}
}
}PydanticAI Integration
Tokenize text (PydanticAI - Cohere format)
Tokenizes text using Cohere v1 API format via PydanticAI.
POST
/
pydanticai
/
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

