cURL
curl --request POST \ --url https://api.app.shinzo.ai/spotlight/anthropic/v1/messages/count_tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "messages": [ {} ] } '
Count tokens for a request without sending it to the model.
curl -X POST https://api.app.shinzo.ai/spotlight/anthropic/v1/messages/count_tokens \ -H "Authorization: Bearer <jwt_token>" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-4-20250514", "messages": [ {"role": "user", "content": "What is the capital of France?"} ] }'
{ "input_tokens": 14 }
200
400
401
403