Skip to main content
POST
/
v1
/
prompts
/
calculate-tokens
Get 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

Successful Response

tokens
integer
required