Agent Proxy

Count Tokens

Local estimate (Claude Code calls this for context accounting). Free; auth still required.

post/anthropic/v1/messages/count_tokens

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/anthropic/v1/messages/count_tokens
  • Auth: one of:
    • API key in header x-api-key
    • OAuth 2 (client credentials, token URL https://api.muapi.ai/oauth/token)

Query parameters

team_idinteger nullable

Headers

x-api-keystring
x-embed-codestring nullable
x-agent-embed-codestring nullable
x-whitelabel-studiostring nullable
authorizationstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.