I know I could do that using data.usage.total_tokens and counting dallE access but they I would still be missing the configured hard limit. Would need to hardcode that and update the code everytime I up or downgrade the limit
Like @sehrknusprig, I have a use case that would need such an API. My current project would at least require read access to current and historical usage, and usage limits.
@drewworkman3245’s suggestion is insufficient when monitoring your own costs while using tools developed by others or while using multiple tools with the same account.
Ideally, having API access to ‘Account’ would open up great opportunities for improving the user experience of free Apps that use OpenAI.
I searched for a way to submit this as a #FeatureRequest but only found community forum posts, not an official resource.
Does this functionality already exist
somewhere? If not, has anyone found a workaround?
Did I miss an official resource to submit feature requests?
Throwing my hat in the “requesting account usage data available via API” ring. We would like this available so we can monitor our usage and alert on being close to our spend limits.
Some use cases:
Periodically checking our usage limit and alerting if it goes above a certain ratio (current spend / limit > 0.70, say).
Checking per-project spend to see if it is increasing or decreasing in an unexpected way (first derivative over time). Or per API key. Or per service account.