Get account usage
curl --request GET \
--url https://developer.creao.ai/v1/account/usage \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/account/usage';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/account/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "pro",
"credits": {
"available": 1234.56,
"used_24h": 18.2
},
"requests_24h": 42,
"hourly_cap_exceeded": false
}{
"error": "AUTHENTICATION_REQUIRED"
}{
"error": "RATE_LIMITED"
}Account
Get account usage
Read the calling account’s credit balance and 24h API spend.
GET
/
v1
/
account
/
usage
Get account usage
curl --request GET \
--url https://developer.creao.ai/v1/account/usage \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/account/usage';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/account/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "pro",
"credits": {
"available": 1234.56,
"used_24h": 18.2
},
"requests_24h": 42,
"hourly_cap_exceeded": false
}{
"error": "AUTHENTICATION_REQUIRED"
}{
"error": "RATE_LIMITED"
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Response
Account usage for the Account key owner.
CREAO plan slug for the Account key owner.
Show child attributes
Show child attributes
Developer API HTTP requests in the last 24 hours.
Required range:
x >= 0True when the account is blocked by the hourly spend cap even if credits.available is still greater than zero.