Up until today or yesterday, the query below worked for usage. I know there have been elevated error rates, which supposedly have now been resolved. Standard queries work, but usage doesn’t. Does anyone know if this is a change or just part of the incident?
curl https://api.openai.com/v1/usage?date=2023-05-22 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {API+_KEY}"
2 Likes
Welcome to the dev community…
The note on the bottom left was a nice addition, I think, to let us know…
[noice]
Has that ever been a valid endpoint? I’ve always just calculated usage on my end…
There was a general outage today, but I think they might be blocking the vi/usage endpoint? Is it in the docs or did someone discover that it worked?
1 Like
I have created a similar post a couple of hours ago.
I’m having the same problem! It worked yesterday but it has been giving me the below error since:
{
"error": {
"message": "Usage is temporarily unavailable, please try again soon.",
"type": "invalid_request_error",
"param": null,
"code": "usage_unavailable"
}
}
Seems to be unrelated to yesterday’s outage, but still an issue. Hoping it gets resolved.