English
API Reference v2
cURL
curl --request POST \ --url https://paradigm.lighton.ai/api/v2/chat/document-analysis/token-count \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "model": "<string>" } '
{ "characters": 123, "tokens": 123, "max_model_len": 123 }
Get the token count for a given text and model.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request serializer for count token.
The text to count tokens
Model to use for token count
Length of the text in characters
Count of tokens for the text
Max model tokens for the model