Proxy Bedrock Count Tokens

Changed on

Bedrock CountTokens — optional for Claude Code (/context), not a generation.

post/tokenwise/model/{model_id}/count-tokens

Request

  • Base URL
    https://api.ai21.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.ai21.com/tokenwise/model/{model_id}/count-tokens
  • Auth
    none declared

Path parameters

model_idstring required

Headers

X-AI21-Keystring

Response

Successful Response

unknown required

Changes