Account & Usage
Get balance
Read your current prepaid USD balance, shared across API keys.
GET
/
balance
Get balance
curl --request GET \
--url https://api.nomask.ai/v1/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nomask.ai/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomask.ai/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "balance",
"usd": 18.734512
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Authorizations
Create a NoMask API key at https://nomask.ai/api/keys. Keep it private; enter only your own key when sending a request.
⌘I
Get balance
curl --request GET \
--url https://api.nomask.ai/v1/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nomask.ai/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomask.ai/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "balance",
"usd": 18.734512
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}