Skip to main content
POST
/
messages
/
count_tokens

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tfy-metadata
string

Optional metadata for the request

x-tfy-provider-name
string

Name of the provider

Body

application/json

Parameters for counting tokens.

The body is of type any.

Response

Token count returned successfully.