Try Bifrost Enterprise free for 14 days. Explore now
A valid request URL is required to generate request examples{
"totalTokens": 123,
"cachedContentTokenCount": 123,
"promptTokensDetails": [
{
"modality": "<string>",
"tokenCount": 123
}
],
"cacheTokensDetails": [
{
"modality": "<string>",
"tokenCount": 123
}
]
}Counts tokens using Google Gemini API format.
A valid request URL is required to generate request examples{
"totalTokens": 123,
"cachedContentTokenCount": 123,
"promptTokensDetails": [
{
"modality": "<string>",
"tokenCount": 123
}
],
"cacheTokensDetails": [
{
"modality": "<string>",
"tokenCount": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Model name with action (e.g., gemini-pro:countTokens)
Successful response
Number of tokens that the model tokenizes the prompt into
Number of tokens in the cached part of the prompt
Modalities processed in the request input
Show child attributes
Modalities in the cached content
Show child attributes
Was this page helpful?