For AI agents: the complete documentation index is available at https://aioproxy.dev/llms.txt, the full documentation bundle is available at https://aioproxy.dev/llms-full.txt, and this page is available as Markdown at https://aioproxy.dev/api/count-message-tokens.md.
  • English
  • Count message tokens POST /v1/messages/count_tokens

    Counts tokens for an Anthropic Messages request using the configured token-counting route.

    Parameters / Responses

    Parameters: conversation_id, max_tokens, messages, metadata, model, output_config, service_tier, session_id, speed, stream, system, temperature, thinking, tools

    Responses: 2XX application/json

    Loading API reference…