I have created a SaaS that uses Claude AI to generate text for users but I need a way to track their usage. I want the tokens used to be added to their total. Thank you!
Ask Claude ?
Kidding.
You should create a number field ont the user datatype to save the total numberToken used.
Each time a request is made, I think you can get back the number used, and add it to the field like
This user total token number + x
Would you happen to know exactly how I would create the workflow? I’ve tried making changes to user and counting how many words were used but I keep getting this error this is my workflow
The service Claude API - MarketOvergrowthYouTube.ai just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:
{“type”:“error”,“error”:{“type”:“invalid_request_error”,“message”:“The request body is not valid JSON: unexpected character: line 7 column 268 (char 439)”}}
The action is okay
Can you show action 1 details?
Hi,
there are also services available to track AI provider’s usage.
For example (not tested): Monitor your OpenAI usage with Grafana Cloud | Grafana Labs
Best,
jupxi