How to check how many tokens are consumed by a call?
Understanding token consumption can help you better control costs. You can view it in the following ways:
1. View through API response body
In the standard API return JSON, seeusageFields:
"usage": {
"prompt_tokens": 15,
"completion_tokens": 20,
"total_tokens": 35
}
2. Official backend log
Log in to the MEYATU|API official console, and you can see the specific consumption quota and number of Tokens for each API Key in "Log" or "Quota Details".
3. Client plug-in display
If you are using software such as ChatBox or NextChat, the Token statistics of this conversation will usually be displayed directly in the conversation details interface or the status bar at the bottom.