Skip to main content
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)
{
  "org_id": "<string>",
  "credit_balance_cents": 123,
  "pending_debit_balance_cents": 123,
  "will_invoice": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.parallel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <access_token>. This must be an account API access token minted via Parallel's OAuth device flow, not a standard API key. See the account API docs.

Response

200 - application/json

Successful Response

Balance response for service clients.

org_id
string
required

Organization ID

credit_balance_cents
number
required

Total available prepaid balance in cents (credits + prepaid commits). Always 0 when will_invoice is true.

pending_debit_balance_cents
number
required

Balance in cents currently held for inflight tasks plus charges not yet synced to the billing provider. Always 0 when will_invoice is true.

will_invoice
boolean
required

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.