Get Balance
import requests
url = "https://api.parallel.ai/account/service/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.parallel.ai/account/service/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.parallel.ai/account/service/v1/balance")
.header("Authorization", "Bearer <token>")
.asString();curl --request GET \
--url https://api.parallel.ai/account/service/v1/balance \
--header 'Authorization: Bearer <token>'{
"org_id": "<string>",
"credit_balance_cents": 123,
"pending_debit_balance_cents": 123,
"will_invoice": true
}Balance
Get Balance
Get the authenticated organization’s prepaid credit balance
GET
/
service
/
v1
/
balance
Get Balance
import requests
url = "https://api.parallel.ai/account/service/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.parallel.ai/account/service/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.parallel.ai/account/service/v1/balance")
.header("Authorization", "Bearer <token>")
.asString();curl --request GET \
--url https://api.parallel.ai/account/service/v1/balance \
--header 'Authorization: Bearer <token>'{
"org_id": "<string>",
"credit_balance_cents": 123,
"pending_debit_balance_cents": 123,
"will_invoice": true
}Authorizations
Send Authorization: Bearer <access_token>. This must be an account API access token minted via a supported Parallel OAuth grant, not a standard API key. See the account API docs.
Response
200 - application/json
Successful Response
Balance response for service clients.
Organization ID
Total available prepaid balance in cents (credits + prepaid commits). Always 0 when will_invoice is true.
Balance in cents currently held for inflight tasks plus charges not yet synced to the billing provider. Always 0 when will_invoice is true.
True if this organization is billed by invoice (postpaid) rather than from a prepaid credit balance. Invoice-only orgs cannot add balance via this API.