Skip to main content
POST
/
bedrock
/
model
/
{modelId}
/
count-tokens
Error
A valid request URL is required to generate request examples
{
  "inputTokens": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Path Parameters

modelId
string
required

Bedrock model identifier (e.g. anthropic.claude-3-5-sonnet-20240620-v1:0).

Body

application/json
input
object
required

Response

Successful response

inputTokens
integer

Number of input tokens that would be billed for this request.