Messages

Count message tokens

Not billed. Native count where available; availability failures can fall back to a local estimate.

post/messages/count_tokens

Request

  • Base URL: https://api.voidai.app/v1
  • URL: https://api.voidai.app/v1/messages/count_tokens
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Headers

anthropic-versionstring
anthropic-betastring

Request body

modelstring required

Exact model ID from GET /models. Endpoint support and account eligibility are required.

toolsobject[]
tool_choiceobject
thinkingobject

Response

Successful response.

input_tokensnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.