Although when I’m tracing the usage report via ‘/v1/usage’ API, I’m getting the user_id field as null. What could be the possible reason of this? If anyone can help me on resolving this, it would be really great. Thanks!
The reason for that is the “usage” api is not documented and is for providing information to the OpenAI account web site page by its own authentication.
It’s meant, I believe, to track “bad actors,” so that you can know which users are trying to get past moderation. OpenAI might ask for it if you lose your account due to multiple bad generations - as in it shows you’re serious about producing only “safe” content as per their terms. It’s not required, however.