Counts tokens using Anthropic-compatible format via LangChain.
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Model identifier (e.g., claude-3-opus-20240229)
"claude-3-opus-20240229"
Maximum tokens to generate
List of messages in the conversation
System prompt
Automatic caching directives for the whole request
Whether to stream the response
0 <= x <= 1MCP servers configuration (requires beta header)
Structured output format (requires beta header)
Successful response
Number of input tokens