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
Response
Account usage for the Account key owner.