Billing
Get the plan and credits left
The account’s Lusor plan and the credits it has left. Plan and credits belong to the account, so every workspace in it reads the same values. Credits are never reported below 0.
GET
/
v1
/
billing
/
plan
Get the plan and credits left
curl --request GET \
--url https://api.lusor.ai/v1/billing/plan \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/billing/plan"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"plan": "free",
"creditsRemaining": 1
}
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
Get the plan and credits left
curl --request GET \
--url https://api.lusor.ai/v1/billing/plan \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/billing/plan"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"plan": "free",
"creditsRemaining": 1
}
}{
"error": "<string>",
"message": "<string>"
}
