Skip to main content

Get token usage

POST 

/api/v2/agent/token-usage

Returns the number of tokens used in a text,if it returns -1 either property is null or empty, else it returns the number of tokens used.

Request

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

    text stringnullable
    encodingName stringnullable
    model stringnullable

Responses

Success

Loading...