CmdID / aws / aws bedrock-runtime
aws bedrock-runtime count-tokens
Returns the token count for a given inference request. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--inputThe input for which to count tokens.--model-idThe unique identifier or ARN of the foundation model to use for token counting.