Anthropic Messages
Count input tokens
Returns an estimated input token count for a message payload without generating a response. Useful for budget checks before sending expensive prompts.
post/v1/messages/count_tokens
Request
- Base URLhttps://api.abliteration.ai
- Auth
- HTTP bearer
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Token count
Changes
No recorded changes to this operation across all 1 revision of this API.