For AI agents: the complete documentation index is available at https://aioproxy.dev/zh/llms.txt, the full documentation bundle is available at https://aioproxy.dev/zh/llms-full.txt, and this page is available as Markdown at https://aioproxy.dev/zh/api/count-message-tokens.md.
  • 简体中文
  • 计算消息 Token POST /v1/messages/count_tokens

    通过已配置的 Token 计数路由计算 Anthropic Messages 请求的 Token。

    参数 / 响应

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

    响应: 2XX application/json

    Loading API reference…