Anthropic-compatible token counting (drop-in)
Use when: caller uses the Anthropic SDK count_tokens flow (or an agentic client like Claude Code) against the Verlon drop-in endpoint
Drop-in replacement for POST https://api.anthropic.com/v1/messages/count_tokens. Returns an estimated input_tokens for the given system prompt, messages, and tools. The count is an estimate: gates route to arbitrary providers whose tokenizers differ, so exact provider token counts are only known at completion time.
Authorizations
Verlon API key (newly minted keys are prefixed sk-vrln-; legacy verlon_* and layer_* keys from prior prefix migrations continue to validate). Generated from the dashboard under Settings → API Keys, or via verlon key create in the CLI.
Response
Estimated token count: { input_tokens: number }.

