Skip to main content
GET
/
compute
/
credits
/
balance
Get credit balance
curl --request GET \
  --url https://compute.x402layer.cc/compute/credits/balance
{
  "wallet": "<string>",
  "balance": "150.00",
  "total_deposited": "200.00",
  "total_spent": "50.00"
}

Headers

X-API-Key
string

Compute/Grid API key (billed to prepaid credits). Omit to pay per request via x402 X-Payment.

Example:

"x402c_..."

Response

200 - application/json

Balance

wallet
string
balance
string
Example:

"150.00"

total_deposited
string
Example:

"200.00"

total_spent
string
Example:

"50.00"