POST
/
v1
/
prompts
/
calculate-tokens
curl --request POST \
  --url https://api.pulze.ai/v1/prompts/calculate-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>"
}'
{
  "tokens": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
text
string
required

Response

200
application/json
Successful Response
tokens
integer
required