Anthropic analytics query

Hello everyone! I am building an agent using langchain, using Anthropic’s 3.5 Haiku. I want to get the analytics of the model, such as number of input tokens, output tokens, cost per token, etc. When I fetch the number of input and output tokens from t…


This content originally appeared on DEV Community and was authored by Sudha Nippani

Hello everyone! I am building an agent using langchain, using Anthropic's 3.5 Haiku. I want to get the analytics of the model, such as number of input tokens, output tokens, cost per token, etc. When I fetch the number of input and output tokens from the json that is returned from the llm, there is a big difference in these numbers and the numbers which are displayed on the anthropic dashboard. I do not understand why and how to get an accurate number. Could anyone please share their insights regarding this problem?

Thankyou


This content originally appeared on DEV Community and was authored by Sudha Nippani


Print Share Comment Cite Upload Translate Updates
APA

Sudha Nippani | Sciencx (2025-06-24T10:35:24+00:00) Anthropic analytics query. Retrieved from https://www.scien.cx/2025/06/24/anthropic-analytics-query/

MLA
" » Anthropic analytics query." Sudha Nippani | Sciencx - Tuesday June 24, 2025, https://www.scien.cx/2025/06/24/anthropic-analytics-query/
HARVARD
Sudha Nippani | Sciencx Tuesday June 24, 2025 » Anthropic analytics query., viewed ,<https://www.scien.cx/2025/06/24/anthropic-analytics-query/>
VANCOUVER
Sudha Nippani | Sciencx - » Anthropic analytics query. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/06/24/anthropic-analytics-query/
CHICAGO
" » Anthropic analytics query." Sudha Nippani | Sciencx - Accessed . https://www.scien.cx/2025/06/24/anthropic-analytics-query/
IEEE
" » Anthropic analytics query." Sudha Nippani | Sciencx [Online]. Available: https://www.scien.cx/2025/06/24/anthropic-analytics-query/. [Accessed: ]
rf:citation
» Anthropic analytics query | Sudha Nippani | Sciencx | https://www.scien.cx/2025/06/24/anthropic-analytics-query/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.