Hanzo
OpenapiAi

Implements POST /v1/messages/count_tokens.

Implements POST /v1/messages/count_tokens.

POST /v1/messages/count_tokens

Addresshttps://api.hanzo.ai/v1/messages/count_tokens
MethodPOST
Operationpost_messages_count_tokens
AuthAuthorization: Bearer $HANZO_API_KEY

Implements POST /v1/messages/count_tokens. Claude Code calls it before a request; it returns {"input_tokens": N} for the given model + messages + tools.

Request

The document declares no body for POST /v1/messages/count_tokens. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask the MCP door's describe for post_messages_count_tokens, which answers from the running route.

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo messages count_tokens

AI API · All Hanzo APIs · Interactive reference

How is this guide?

On this page