Authorization: Bearer ********************
{ "model": "claude-3-opus", "stream": false, "messages": [ { "role": "user", "content": "Say test" } ], "max_tokens": 4096 }
curl --location --request POST 'https://cn2us02.opapi.win/v1/messages/count_tokens' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "claude-3-opus", "stream": false, "messages": [ { "role": "user", "content": "Say test" } ], "max_tokens": 4096 }'
{ "input_tokens": 9 }